CSS question... for those who know CSS

Bluevoodu

Site Founder
Maybe another PLiknon question :)

Anyway.... I am going through the book :"Eric Meyer on CSS."

They declare 2 CSS statements... and I am wondering what the difference is.... Its related to the font department.

Code:
td#content p {font: 85% Arial, Helvetica, Verdana, sans-serif;}

And

Code:
td#rightside td {font-size: 66%; padding: 1px;}

ok... just focusing on the font aspects.... I see #1 that they are declaring the font types for the paragraph in the table.  BUT it says font is 85% without declaring it as font-size.  whereas #2 declares font-size as 66% and it uses the standard fonts that are declared for the page (hence there are no declared fonts in the statement.

SO... are the 85% and the 66% the same thing...... same thing as "font-sizes"  ..... they both mean "font sizes?"

I take it that the statment works without fully declaring the font size... as font-size?
I have see the same thing with font: 85% bold blah, blah, blah
and font-weight: bold..... does that work the same way?

last question... does font-size at 66% mean that it displays at 66% of the original size according to how the page is shown on the browser... and how the person's screen resolution is? SO that is is pretty much the same between every screen resolution.... ?

†B†V† :hat
 
I think on the first one, it's using it to declare all of the font at once. It has 85% and then the font-familys in the same thing.

On the 2nd one it just does the font-size as a seperate thing.. that's what I think but I've never seen it used like that before either

And on the size, I think it takes 65% of the actualy font size of the moniter, since the text probably is shaped differently with different moniter settings, and you can change the size of the font in your internet settings. I wouldn't think it would really matter though.
 
:lol

yeah... I wondered if it really made a difference... but honestly, it does..... I saw the results... but I couldn't tell if it actually shrunk the font or not.... my resolution is pretty friggin high :lol thats why.

†B†V† :hat
 
Back
Top