Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Fonts in css

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

Albino

Munky DesignsEstablished Member
Impact
17
hey

im using css more and more now, but its a pain.

In firefox, it displays fine, in ie it doesnt. Ive read on w3 schools that the code im using works in ie v3 +, so ive no idea whats wrong. Pretty much, its the text size.

The code is:



Code:
font.maintext{
	color: #FFFFFF;
	font-size: small;
}
font.footertext{
	color: #FFFFFF;
	font-size: x-small;
}

in firefox, the text size is small and nice, in ie, it is the same size as firefox's medium, and the x-small is the same size as firefox's small.

Which is annoying. has anyone got any suggestions?

oh, and also, how do i set the font in css? ive tried font-family: Veranda; , font: Veranda; and font-face: Veranda;, but none worked.

cheers if anyone can help, theres NP$ in it for anyone that does :)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
i would suggest using px. or pt. for better font size

like if you want your font small i suggest using 10 px or 11 px
 
0
•••
Or you could use a percentage.

For instance font-size:75% etc.
 
0
•••
That's Verdana and not Veranda :) BTW, it's recommended to define a generic font family in case the desired font is not installed on the user's computer.

Code:
font-family: Verdana, sans-serif;

Oh and please use pixels for size.
 
0
•••
i use pixels in my css... it works on all broswers :D
i haven't used precentage before... so just use pixels :)
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back