4 replies [Last post]
Anonymous
Anonymous's picture
Guru
calgary,alberta
calgary,alberta

So, here I am updating a poorly coded tables based layout. The css that is used on the page is only to change the text.

Here are a few lines from the css (which is in the head of every page and not a separate file): .bodytextb {font-family: Arial, Helvetica, sans-serif; line-height: 22px; color: #005596; text-decoration: none; font-size: 15}
.bodyblue {font-family: Arial, Helvetica, sans-serif; color: #005596; text-decoration: none; font-size: 11}
.body10 {font-family: Arial, Helvetica, sans-serif; color: #000000; text-decoration: none; font-size: 10}
Shock

The font-size is defined by a number only. So, do browsers identify that as px or pt or what? Anyone know?

Katie
Katie's picture
Offline
Enthusiast
Seattle, WA
Last seen: 4 years 50 weeks ago
Seattle, WA
Timezone: GMT-8
Joined: 2006-08-06
Posts: 357
Points: 2

I created a mockup with

I created a mockup with those classes on some paragraphs, and then inspected in Firefox them using both Firebug and the Web Dev Toolbar's DOM inspector. Both agree that the font-sizes are 15px, 11px and 10px.

I hope this is helpful.

Blog: Pew Pew Laser Blog
Online File Storage: DropBox
Daily Deals on Local Activities: Groupon

Triumph (not verified)
Anonymous's picture
Guru

Katie wrote:I created a

Katie wrote:
I created a mockup with those classes on some paragraphs, and then inspected in Firefox them using both Firebug and the Web Dev Toolbar's DOM inspector. Both agree that the font-sizes are 15px, 11px and 10px.

I hope this is helpful.
It is. Thank you. I should have done the same as you did but I didn't have all of the browsers available at the time. I wonder if IE makes the same distinction. I suppose I could tell by trying to change the text size. If it doesn't change in IE then it must be px. Tongue

Thanks for the information.

Triumph (not verified)
Anonymous's picture
Guru

Triumph wrote:... I suppose

Triumph wrote:
... I suppose I could tell by trying to change the text size. If it doesn't change in IE then it must be px. Tongue

IE also treats it as px. Smile

Katie
Katie's picture
Offline
Enthusiast
Seattle, WA
Last seen: 4 years 50 weeks ago
Seattle, WA
Timezone: GMT-8
Joined: 2006-08-06
Posts: 357
Points: 2

Good to know. Glad I could

Good to know. Glad I could be helpful. Smile

Blog: Pew Pew Laser Blog
Online File Storage: DropBox
Daily Deals on Local Activities: Groupon