Unstoppable Domains โ€” Get your daily AI drops report

Fonts in css

SpaceshipSpaceship
SpaceshipSpaceship
Spacemail by SpaceshipSpacemail by Spaceship
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
•••
Olitt โ€” high-converting AI websites, only from $1/moOlitt โ€” high-converting AI websites, only from $1/mo
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back