Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS not changing face or size of font

Status
Not open for further replies.

gwar2k1

Programmer
Apr 17, 2003
387
GB
Hey, everything is ok, besides the face and size of the font on my pages. I initially only had these attributes in the body tag but then i added them to the table too:

<style>
body {
margin: 0;
background-color: #000000;
scrollbar-face-color: #000000;
scrollbar-arrow-color: #FFFFFF;
scrollbar-track-color: #000000;
scrollbar-shadow-color: #000000;
scrollbar-highlight-color: #000000;
scrollbar-3dlight-color: #000000;
scrollbar-darkshadow-color: #000000;
font-face: Arial;
text-size: 8pt;
color: #ffffff;
}
a {
text-decoration: none;
}
a:link,a:visited {
color: #c0c0c0;
}
a:active {
color: #ffffff;
}
table {
font-face: Arial;
text-size: 8pt;
color: #ffffff;
}
</style>


~*Gwar3k1*~
&quot;To the pressure, everything's just like: an illusion. I'll be losing you before long...&quot;
 
try adding a td tag

td {
font-face: Arial;
text-size: 8pt;
color: #ffffff;
}


I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
didnt worky =( i also tried font-size instead of text size =(

~*Gwar3k1*~
&quot;To the pressure, everything's just like: an illusion. I'll be losing you before long...&quot;
 
in the body style text-size: 8pt; is not valid CSS so is probably throwing errors up and some styles past that may be ignored.


font-size: 8pt; is correct




Chris.

Indifference will be the downfall of mankind, but who cares?
 
yeah but it still didnt / doesnt work =(

~*Gwar3k1*~
&quot;To the pressure, everything's just like: an illusion. I'll be losing you before long...&quot;
 
wyrd! just to test the css try a font tag:

Code:
<html>
<head>
<style>
.red {
      color: #CC0000;
   }
</style>
</head>
<body>
<table><tr><td><font class=&quot;red&quot;>TEST</font></td></tr></table>
</body>
</html>

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
its majically started to work without any mod. ... maybe its just my random computer

thanks any way

~*Gwar3k1*~
&quot;To the pressure, everything's just like: an illusion. I'll be losing you before long...&quot;
 
I have known some browsers (namely IE 5 on the Mac) to be remarkably stubborn when it comes to refreshing CSS information.
If you find that changes you have made to your CSS don't seem to be working then quit the browser and reopen it.
 
Yeah i've also had problems with IE 5.5 (on windows 2k) and the refreshing of linked CSS stylesheets. :(

If the change you made doesn't seem to have been reflected in the page after you do a full refresh (in IE try ctrl + F5), close & reopen a new IE and then reload the page.

Its a pain .. any other tips about it would be welcome (IE 6 seems to work fine with ctrl + F5 though)


Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top