View Full Version : Ding dong, my CSS is dead.


mocha
03-18-2003, 03:10 AM
Hi,

I haved used CSS before with no problems, but for whatever reason I seem to be having issues this time. With the font and font size. I am utterly baffled, but then again I may very well have no idea what I am doing...

Here is my code:

<!--
A:link { text-decoration: none ; color:#DD76D6 }
A:visited { text-decoration: none ; color:#A836A4 }
A:hover { text-decoration: line-through; color: #F94DF3 }

body

{font-family: verdana;
color: #413D3D ;
font-size: 12px;

scrollbar-face-color : #EEC6ED;
scrollbar-highlight-color : #F9D9F8;
scrollbar-3dlight-color : #EFA3EC;
scrollbar-shadow-color : #C185BF;
scrollbar-darkshadow-color : #C185BF;
scrollbar-track-color : #EEC6ED;
scrollbar-arrow-color : #EB8BE8}

-->

Though I have tried to request Verdana at 12 px, I seem to be getting Arial (I think) at a larger size. Everything else seems to be working okay.

Is there anyway I can fix this?

Thanks,
mocha

epolady
03-18-2003, 03:47 AM
It's working fine for me..... :\

mocha
03-18-2003, 08:11 PM
Thanks for the affirmation. I have used CSS similarly before, and it worked fine.

After a little messing around, I managed to fix the font, but the font size is still virtually unchangable. No matter what size I put in, the text always appears in the same size.

And yet, if I used the font size tags in the body I can get the right size.

Perhaps it is my computer that is dead?

mocha

epolady
03-18-2003, 08:32 PM
How are you using it?

Are you using an External CSSheet? or Inputing into each html page?

Celeris
03-18-2003, 09:06 PM
Your internet settings could be the problem with that. If you have Internet Explorer, go to Tools > Internet Options... > Accessibility. Uncheck all three of those boxes if they are checked.

mocha
03-23-2003, 03:41 AM
Unfortunately, I am still stuck. My Internet settings are okay, and I have tried both imputting into the page as well as an external CSSheet. No luck. :(

My theory is that it has something to do with the tables I am using. When I use my CSS on a page without tables, it works perfectly. With tables, the font size is hideously wrong. What I don't understand is why. ;)

Anyone have any ideas? Could it be the location of the CSS? As far as I know it can only go under the HEAD tags...

TIA

lefty
03-23-2003, 03:49 AM
tables are silly little things - for some reason, css doesn't like them unless you tell it that they're there! Try this:

body, td

{font-family: verdana;
color: #413D3D ;
font-size: 12px;
(etc etc)

the td will tell the stuff to go in table cells as well. That should fix it. :)

mocha
03-23-2003, 05:24 AM
My hero!

All that agony for a two-letter fix. ;) Horrah, it works!

Thank you!

lefty
03-23-2003, 05:49 AM
hehe HTML is funny like that. You're welcome :D

Xiphias
03-26-2003, 02:44 AM
Oh, I was having the same trouble awhile back and I finally gave up on my tables layout, just because of that! Thanks lefty, that's hefty.