Re: [PHP-DB] css

2006-02-10 Thread Kim Briggs
On 2/9/06, JeRRy [EMAIL PROTECTED] wrote:

 Hi everyone,

   I have created this website in PHP and mySQL at
 http://www.bps-testntag.com/ but have come accross an error I was not
 aware of before.

   Now I am using stylesheets and I have been surfing the net for about 90
 minutes and yet to find a solution, so thought I'd post here, could be basic
 but i can't find it online anywhere.  Get alot of forum refrences but no
 solution.

   Here is the code below before I continue:

   style type=text/css
   html {
 background : url(images/background3.jpg);
 }
 body {
 margin : 0;
 padding : 0 1px;
 border : 0;
 height : 100px;
 background : url(images/background3.jpg);


...

  Now I have been told NOT to use px but use % for meassurements because
 this is relient on resolution/screen_size.

   HOWEVER what does 1px equal in %?

   Some have said 30px equals 3% and some say 30px equals 30%.  30px and
 30% don't seem right, I changed my CSS for this and it pushes everything
 only slightly to the RIGHT.  But removes the menu altogether.

   Can anyone offer some help here?

   Also if a table is made like this:

   table width=300 height=400  Is that default % or px or what?  What is
 the best method to use that will work in people using screens of 600* and
 1024* and both be able to view the site cleanly and easily?

   I will continue to surf.

   J


Hi J,

If there was an exact equal to pixels and %, then  it really wouldn't
matter which you used.  The percentage is percentage of  a  table, screen
size, etc.  If you say

table width=50%

You are saying to make the table 50% of the screen width.  Different people
have different # of pixels in their width.  This is where the difference
comes in.  [Here is where people tell you not to use tables to lay out
stuff, put it in the CSS].

The default numbers are pixels (I don't know if this behavior can be
changed).

cheers,
--
http://kimbriggs.com


[PHP-DB] css

2006-02-09 Thread JeRRy
Hi everyone,
   
  I have created this website in PHP and mySQL at http://www.bps-testntag.com/ 
but have come accross an error I was not aware of before.
   
  Now I am using stylesheets and I have been surfing the net for about 90 
minutes and yet to find a solution, so thought I'd post here, could be basic 
but i can't find it online anywhere.  Get alot of forum refrences but no 
solution.
   
  Here is the code below before I continue:
   
  style type=text/css
  html {
background : url(images/background3.jpg); 
} 
body {
margin : 0; 
padding : 0 1px; 
border : 0; 
height : 100px; 
background : url(images/background3.jpg); 
} 
body {
font-family : arial, serif; 
font-size : 16px; 
} 
#page {
margin : 310px 0 50px 250px; 
display : block; 
width : 500px; 
border : 1 solid #000; 
background : url(images/background3.jpg); 
padding : 10px; 
} 
#page .right {
font-size : 30px; 
float : right; 
} 
#menu {
display : block; 
top : 110px; 
left : 20px; 
width : 130px; 
position : fixed; 
border : 0; 
padding : 10px; 
text-align : center; 
font-weight : bold; 
color : #fff; 
} 
* html #menu {
position : absolute; 
} 
#menu a:visited, #menu a {
display : block; 
width : 120px; 
height : 20px; 
margin : 0 auto; 
border-top : 0 solid #fff; 
border-bottom : 0 solid #000; 
text-align : center; 
text-decoration : none; 
line-height : 20px; 
color : #000; 
} 
#menu a:hover {
background : #aaa; 
color : #fff; 
} 
.clear {
clear : both; 
} 
p:first-letter {
font-size : 25px; 
color : #cc; 
} 
#fixpic {
display : block; 
width : 108px; 
height : 145px; 
position : fixed; 
bottom : 0; 
left : 0; 
} 
* html #fixpic {
position : absolute; 
} 
#adsie {
position : absolute; 
top : 10px; 
right : 30px; 
} 
/style

  Now I have been told NOT to use px but use % for meassurements because 
this is relient on resolution/screen_size.  
   
  HOWEVER what does 1px equal in %?
   
  Some have said 30px equals 3% and some say 30px equals 30%.  30px and 30% 
don't seem right, I changed my CSS for this and it pushes everything only 
slightly to the RIGHT.  But removes the menu altogether.
   
  Can anyone offer some help here?
   
  Also if a table is made like this:
   
  table width=300 height=400  Is that default % or px or what?  What is the 
best method to use that will work in people using screens of 600* and 1024* and 
both be able to view the site cleanly and easily?
   
  I will continue to surf.
   
  J


[PHP-DB] css #2

2006-02-09 Thread JeRRy
Okay I did some more surfing, on a VERY popular website used by neally a 
million users.  I checked their CSS and they use px and pt meassurements.  So 
maybe that is not my issue than.  Maybe I don't have an issue to worry about?
   
  What are people's thoughts on this, all the input the better here as I am 
creating a website that will be viewed by alot of people so want it readable by 
the majority.  I know screen res of 600* is very old and few would use it, the 
site appears pretty big with it but things appears just about where it should.  
However when you try and view the copyright notice it cuts the last line out, 
what causes this?  Would It be useful to add to breaks at the end?
   
  J
   
   
   
   
   
   
   
   
   
   
   
   
   
  Hi everyone,
   
  I have created this website in PHP and mySQL at http://www.bps-testntag.com/ 
but have come accross an error I was not aware of before.
   
  Now I am using stylesheets and I have been surfing the net for about 90 
minutes and yet to find a solution, so thought I'd post here, could be basic 
but i can't find it online anywhere.  Get alot of forum refrences but no 
solution.
   
  Here is the code below before I continue:
   
  style type=text/css
  html {
background : url(images/background3.jpg); 
} 
body {
margin : 0; 
padding : 0 1px; 
border : 0; 
height : 100px; 
background : url(images/background3.jpg); 
} 
body {
font-family : arial, serif; 
font-size : 16px; 
} 
#page {
margin : 310px 0 50px 250px; 
display : block; 
width : 500px; 
border : 1 solid #000; 
background : url(images/background3.jpg); 
padding : 10px; 
} 
#page .right {
font-size : 30px; 
float : right; 
} 
#menu {
display : block; 
top : 110px; 
left : 20px; 
width : 130px; 
position : fixed; 
border : 0; 
padding : 10px; 
text-align : center; 
font-weight : bold; 
color : #fff; 
} 
* html #menu {
position : absolute; 
} 
#menu a:visited, #menu a {
display : block; 
width : 120px; 
height : 20px; 
margin : 0 auto; 
border-top : 0 solid #fff; 
border-bottom : 0 solid #000; 
text-align : center; 
text-decoration : none; 
line-height : 20px; 
color : #000; 
} 
#menu a:hover {
background : #aaa; 
color : #fff; 
} 
.clear {
clear : both; 
} 
p:first-letter {
font-size : 25px; 
color : #cc; 
} 
#fixpic {
display : block; 
width : 108px; 
height : 145px; 
position : fixed; 
bottom : 0; 
left : 0; 
} 
* html #fixpic {
position : absolute; 
} 
#adsie {
position : absolute; 
top : 10px; 
right : 30px; 
} 
/style

  Now I have been told NOT to use px but use % for meassurements because 
this is relient on resolution/screen_size.  
   
  HOWEVER what does 1px equal in %?
   
  Some have said 30px equals 3% and some say 30px equals 30%.  30px and 30% 
don't seem right, I changed my CSS for this and it pushes everything only 
slightly to the RIGHT.  But removes the menu altogether.
   
  Can anyone offer some help here?
   
  Also if a table is made like this:
   
  table width=300 height=400  Is that default % or px or what?  What is the 
best method to use that will work in people using screens of 600* and 1024* and 
both be able to view the site cleanly and easily?
   
  I will continue to surf.
   
  J


Re: [PHP-DB] css #2

2006-02-09 Thread Adrian Bruce

Jerry

Not a php related question at all for starters but anywayi think you 
need to read up on CSS layout's if the site is properly structure using 
CSS then you will not have much to worry about regarding different 
resolutions.  Ever heard of floats?


google will show you the light!

Ade

JeRRy wrote:


Okay I did some more surfing, on a VERY popular website used by neally a 
million users.  I checked their CSS and they use px and pt meassurements.  So 
maybe that is not my issue than.  Maybe I don't have an issue to worry about?
  
 What are people's thoughts on this, all the input the better here as I am creating a website that will be viewed by alot of people so want it readable by the majority.  I know screen res of 600* is very old and few would use it, the site appears pretty big with it but things appears just about where it should.  However when you try and view the copyright notice it cuts the last line out, what causes this?  Would It be useful to add to breaks at the end?
  
 J
  
  
  
  
  
  
  
  
  
  
  
  
  
 Hi everyone,
  
 I have created this website in PHP and mySQL at http://www.bps-testntag.com/ but have come accross an error I was not aware of before.
  
 Now I am using stylesheets and I have been surfing the net for about 90 minutes and yet to find a solution, so thought I'd post here, could be basic but i can't find it online anywhere.  Get alot of forum refrences but no solution.
  
 Here is the code below before I continue:
  
 style type=text/css

 html {
background : url(images/background3.jpg); 
} 
body {
margin : 0; 
padding : 0 1px; 
border : 0; 
height : 100px; 
background : url(images/background3.jpg); 
} 
body {
font-family : arial, serif; 
font-size : 16px; 
} 
#page {
margin : 310px 0 50px 250px; 
display : block; 
width : 500px; 
border : 1 solid #000; 
background : url(images/background3.jpg); 
padding : 10px; 
} 
#page .right {
font-size : 30px; 
float : right; 
} 
#menu {
display : block; 
top : 110px; 
left : 20px; 
width : 130px; 
position : fixed; 
border : 0; 
padding : 10px; 
text-align : center; 
font-weight : bold; 
color : #fff; 
} 
* html #menu {
position : absolute; 
} 
#menu a:visited, #menu a {
display : block; 
width : 120px; 
height : 20px; 
margin : 0 auto; 
border-top : 0 solid #fff; 
border-bottom : 0 solid #000; 
text-align : center; 
text-decoration : none; 
line-height : 20px; 
color : #000; 
} 
#menu a:hover {
background : #aaa; 
color : #fff; 
} 
.clear {
clear : both; 
} 
p:first-letter {
font-size : 25px; 
color : #cc; 
} 
#fixpic {
display : block; 
width : 108px; 
height : 145px; 
position : fixed; 
bottom : 0; 
left : 0; 
} 
* html #fixpic {
position : absolute; 
} 
#adsie {
position : absolute; 
top : 10px; 
right : 30px; 
} 
/style


 Now I have been told NOT to use px but use % for meassurements because this is relient on resolution/screen_size.  
  
 HOWEVER what does 1px equal in %?
  
 Some have said 30px equals 3% and some say 30px equals 30%.  30px and 30% don't seem right, I changed my CSS for this and it pushes everything only slightly to the RIGHT.  But removes the menu altogether.
  
 Can anyone offer some help here?
  
 Also if a table is made like this:
  
 table width=300 height=400  Is that default % or px or what?  What is the best method to use that will work in people using screens of 600* and 1024* and both be able to view the site cleanly and easily?
  
 I will continue to surf.
  
 J


 



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] css #2

2006-02-09 Thread JeRRy
Hi,
   
  Honesty, no I have not ever heard of floats  ... Well I have as in 
horse-floats but not for web-pages, I will search it up very soon.
   
  Thanks!
   
  Jerry

Adrian Bruce [EMAIL PROTECTED] wrote:
  Jerry

Not a php related question at all for starters but anywayi think you 
need to read up on CSS layout's if the site is properly structure using 
CSS then you will not have much to worry about regarding different 
resolutions. Ever heard of floats?

google will show you the light!

Ade

JeRRy wrote:

Okay I did some more surfing, on a VERY popular website used by neally a 
million users. I checked their CSS and they use px and pt meassurements. So 
maybe that is not my issue than. Maybe I don't have an issue to worry about?
 
 What are people's thoughts on this, all the input the better here as I am 
 creating a website that will be viewed by alot of people so want it readable 
 by the majority. I know screen res of 600* is very old and few would use it, 
 the site appears pretty big with it but things appears just about where it 
 should. However when you try and view the copyright notice it cuts the last 
 line out, what causes this? Would It be useful to add to breaks at the end?
 
 J
 
 
 
 
 
 
 
 
 
 
 
 
 
 Hi everyone,
 
 I have created this website in PHP and mySQL at http://www.bps-testntag.com/ 
 but have come accross an error I was not aware of before.
 
 Now I am using stylesheets and I have been surfing the net for about 90 
 minutes and yet to find a solution, so thought I'd post here, could be basic 
 but i can't find it online anywhere. Get alot of forum refrences but no 
 solution.
 
 Here is the code below before I continue:
 
   
  html {
background : url(images/background3.jpg); 
} 
body {
margin : 0; 
padding : 0 1px; 
border : 0; 
height : 100px; 
background : url(images/background3.jpg); 
} 
body {
font-family : arial, serif; 
font-size : 16px; 
} 
#page {
margin : 310px 0 50px 250px; 
display : block; 
width : 500px; 
border : 1 solid #000; 
background : url(images/background3.jpg); 
padding : 10px; 
} 
#page .right {
font-size : 30px; 
float : right; 
} 
#menu {
display : block; 
top : 110px; 
left : 20px; 
width : 130px; 
position : fixed; 
border : 0; 
padding : 10px; 
text-align : center; 
font-weight : bold; 
color : #fff; 
} 
* html #menu {
position : absolute; 
} 
#menu a:visited, #menu a {
display : block; 
width : 120px; 
height : 20px; 
margin : 0 auto; 
border-top : 0 solid #fff; 
border-bottom : 0 solid #000; 
text-align : center; 
text-decoration : none; 
line-height : 20px; 
color : #000; 
} 
#menu a:hover {
background : #aaa; 
color : #fff; 
} 
.clear {
clear : both; 
} 
p:first-letter {
font-size : 25px; 
color : #cc; 
} 
#fixpic {
display : block; 
width : 108px; 
height : 145px; 
position : fixed; 
bottom : 0; 
left : 0; 
} 
* html #fixpic {
position : absolute; 
} 
#adsie {
position : absolute; 
top : 10px; 
right : 30px; 
} 
  

 Now I have been told NOT to use px but use % for meassurements because 
 this is relient on resolution/screen_size. 
 
 HOWEVER what does 1px equal in %?
 
 Some have said 30px equals 3% and some say 30px equals 30%. 30px and 30% 
 don't seem right, I changed my CSS for this and it pushes everything only 
 slightly to the RIGHT. But removes the menu altogether.
 
 Can anyone offer some help here?
 
 Also if a table is made like this:
 
   Is that default % or px or what? What is the best method to use that will 
 work in people using screens of 600* and 1024* and both be able to view the 
 site cleanly and easily?
 
 I will continue to surf.
 
 J

 

  
  

RE: [PHP-DB] CSS versus Includes

2001-04-02 Thread richarda
 BDY.RTF

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


RE: [PHP-DB] CSS versus Includes

2001-04-02 Thread Rubanowicz, Lisa

Hi there,
you can also do it this way using Javascript
script
if (navigator.appName == "Netscape") {
StyleSheet = "netstyle.css"
} else {
StyleSheet = "iestyle.css"
}
/script

scriptdocument.write('link rel=stylesheet type="text/css" href="'
+StyleSheet + '"')/script

All the Best
Lisa

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 11:31 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] CSS versus Includes


One of the benefits to including a css (as opposed to LINK REL...) is
that you can pre-process the CSS file with PHP.

e.g.

my_css.phtml:

STYLE
!--
P ( color: ? echo $MyPHPColorSetting ? };
--
/STYLE

or even more useful:

if ($Browser='IE')
{
  include "ie.css";
}

else
{
  include "other.css";
}

Hope this helps.
  _  

~ Richard Allsebrook ~
Applications Developer and Webmaster
Easysoft Limited, Thorp Arch Grange, Thorp Arch, Wetherby, LS23 7BA, UK
http://www.easysoft.com http://www.easysoft.com  -
http://www.cinema.com http://www.cinema.com 
"A computer lets you make more mistakes faster than any invention in
human history - with the possible exceptions of handguns and tequila."

  _  

 



-Original Message-
From: mbraynard [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 31, 2001 12:45 AM
To: php-db
Cc: mbraynard
Subject: FW: [PHP-DB] CSS versus Includes


I have found that includes work just about as well. Any suggestions on
going
with one or the other?





RE: [PHP-DB] CSS versus Includes

2001-04-02 Thread richarda
 BDY.RTF

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


RE: [PHP-DB] CSS versus Includes

2001-04-01 Thread Matt Braynard

When I asked the question, what I meant was should I use the includes to
hold page style details or a CSS file. And someone who understood that this
was not an apples and oranges situation but one of approach answered that
Netscape was not fully supportive of CSS and suggested includes may be the
way to go.


 -Original Message-
From:   Patrick Dunford [mailto:[EMAIL PROTECTED]]
Sent:   Sunday, April 01, 2001 6:58 PM
To: [EMAIL PROTECTED]
Subject:RE: [PHP-DB] CSS versus Includes

On 31 Mar 2001 13:19:45 -0800 AD in php.db, Michael Geier said:

this post is about apples and oranges...

CSS (Cascading Style Sheets) have nothing to do with includes.
They only have to do with formatting elements on a web page.
They can be written inside the document, or can referenced
externally via a LINK tag.

Includes can be anything from a configuration file, a block of
text, or a header or footer statement that works across multiple
pages, so you don't have to duplicate code.

Including a CSS :)


--
===
Patrick Dunford, Christchurch, NZ - http://pdunford.godzone.net.nz/

   Now to him who is able to do immeasurably more than all we ask
or imagine, according to his power that is at work within us,   to
him be glory in the church and in Christ Jesus throughout all
generations, for ever and ever! Amen.
-- Ephesians 3:20-21
http://www.heartlight.org/cgi-shl/todaysverse.cgi?day=20010331
===
Created by Mail2Sig - http://pdunford.godzone.net.nz/software/mail2sig/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] CSS versus Includes

2001-04-01 Thread Boclair


"Matt Braynard" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
| When I asked the question, what I meant was should I use the
includes to
| hold page style details or a CSS file. And someone who understood
that this
| was not an apples and oranges situation but one of approach answered
that
| Netscape was not fully supportive of CSS and suggested includes may
be the
| way to go.

Whether you link to an external stylesheet, embed a style block or
declare the styles in-line is a matter for author management of the
CSS property declarations.  The use of includes or scripting  the
actual link, block or inline styling in the document does not matter a
wit.

Importantly, if the styling is included, the interpretation is still
done by the client browser.  Whether includes or in-document coding
are used, the restrictions and bugs and failure to parse, where
invalid markup or styling is involved, still apply.

What I do notice, however, with some Nav4x browsers, that escaping the
quotes on class names in printf() causes these browsers to sometimes
escape the whole class declaration.
eg.

printf('tr
td class=\'id\' align=\'right\'%s/td
td class=\'lname\'%s/td
td class=\'fname\'%s/td
td class=\'logon\'%s/td
td class=\'logoff\'%s/td
/tr
', $myrow['id'], $myrow['lname'],  $myrow['fname'],$myrow['logon'],
$myrow['logoff']);

The solution for some documents is to write as such
td class=id align=right%s/td

How this will affect xml documents I am not sure

Also with tables, if the data is being extracted from a database, as
above, and the data in a particular field row is null, the td cell
styling background will collapse with Nav4x browsers.  This might be
solved by a conditional statement inserting some content where the
database row/field content is null, or constructing the database table
with pseudo content, such as nbsp; as the default for fields likely
to have null content.

Sorry, but my experience is that oranges are oranges and apples and
apples are apples.  Nice thought!  but I do not think you can get out
of browser non-compliance by using PHP.

Tim Morris



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] CSS versus Includes

2001-03-30 Thread Matt Braynard

I have found that includes work just about as well. Any suggestions on going
with one or the other?



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]