Forum Moderators: not2easy

Message Too Old, No Replies

CSS and PHP Question

CSS and PHP Question

         

photocroatia

4:14 am on Mar 6, 2005 (gmt 0)

10+ Year Member



Just a quick question, please.

I am using CSS to control font size etc, the problem I have is that the body font size doesn't seem to be working when I run my site, in the designer it works , but when I run my page the size of the default font is smaller, why would this be the case, what is the problme.

Any advice is appreciated, thank you.

body {
font-size: 10pt;
font-family: Arial;
color: #FFFFFF;
margin-top:0cm;
background: #6A7D96;
}

ergophobe

5:22 am on Mar 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



When you say "designer" do you mean topstyle or dreamweaver or something like that? It could well be that whatever you are designing in uses a different rendering agent.

MWpro

7:17 am on Mar 6, 2005 (gmt 0)

10+ Year Member



Although it is probably not affecting it, the pt unit is not a proper unit for font size on the web (read this thread [webmasterworld.com] for more information).

If your site uses a lot of tables, that might be the problem. Try declaring it like this:

body, td {
font-size: 10pt;
font-family: Arial;
color: #FFFFFF;
margin-top:0cm;
background: #6A7D96;
}