PDA

View Full Version : CSS Madness - Help sought


Guest210212002
01-18-2006, 11:03 PM
I present you guys three images:

First, my navbar:

http://www.sevenstring.org/support/font.jpg

The font in question is the one I'm using for my navigation links. (Site Features, etc). I'm using the following plain old HTML for them:

<font size="1px" color="#FFFFFF"><b>Site Policy</b></font>

Now, as I do my best to be a good, compliant fellow, I'm trying to move more towards CSS classes so that Mac Users, Firefox Users and AnyBrowserOtherThanIE Users all see my site the same, glorious way.

So, in my handy HTML editor, I produce the following:

<span style="color:white;font:bold 10px verdana">Site Policy</span>

Which looks exactly like the picture above.

Editor:
http://www.sevenstring.org/support/font2.jpg

Result: Yay!
http://www.sevenstring.org/support/font3.jpg

"Gravy", I think, I'll just add some CSS and use span classes.

So I toss this into the Main CSS:


.testmarkup
{
color: #ffffff;
font: bold 10pt verdana;
Text-Decoration: none;
}


Assign it to my admin navbar link that nobody sees but me using:

<span class="testmarkup">Unused</span>

And, no sooner than I can say "Why, damn you, why!!", I get the following:

http://www.sevenstring.org/support/font4.jpg

Thus my problem. Before I concede the point that I'll be 30 in less than 4 months and could be going senile before my time.. What am I missing here?

Much thanks to any insight offered.

KTBleeding
01-18-2006, 11:57 PM
Try this:


.testmarkup {
color: #FFF;
font-weight: bold;
font-size: 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
text-decoration: none;
}



EDIT:

I think I just noticed where your main problem is..

When you were doing the spans, you had the font set to 10px.. when you put it in the style it was set for 10pt.

Perhaps just changing that back to 10px is the answer to the problem.

Guest210212002
01-19-2006, 12:13 AM
Huzzah! Thank you man!

I really am senile after all. :D

KTBleeding
01-19-2006, 12:15 AM
No problem. :)

CSS is my baby.. I love her..
I'm currently developing an entire CSS / table-less (except for tabular data) skin for my future site.. Very exciting.. if you're a nerd like me.

Guest210212002
01-19-2006, 04:59 PM
I know the feeling, I'm excited about it too. :D

I long for the day when there's a completely table-less, 100% CSS vBulletin release.