/    Sign up×
Community /Pin to ProfileBookmark

Hi

I´m a little comfused about those style sheets. How do I make sure that the font size in px is e.g. font size “2” in HTML, or font size 10 in word? Is this right “font-size: 13px”

Also does a style sheet take long to load for at low internet connection?

Thanks guys
Jesper

to post a comment
CSS

7 Comments(s)

Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYNov 16.2005 — font-size: 13px;

That's right, although you might wanna give it a variable font-size (xx-small, x-small, small, normal, large, x-large, xx-large) or in percent

a style sheet doesn't take much time to load if you keep the file-size low,

you could style a whole site with a 5kB style sheet, which wouldnt take any time to load, even on modem
Copy linkTweet thisAlerts:
@lakman4authorNov 16.2005 — Thanks, cheers for the quick reply. this is a great forum. So on this one e.g.

a:visited {

font-family: Arial;

font-size: 13px;

color: #8da7c0;

text-decoration: none;

and I would like to make it small, how do I put in the small stuff in the above code.

cheers

Jesper
Copy linkTweet thisAlerts:
@lakman4authorNov 16.2005 — another question, does it work in all browsers?
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYNov 16.2005 — <i>
</i>a:visited {
font-family: Arial[B], Verdana, sans;[/B]
font-size: [B]small[/B];
color: #8da7c0;
text-decoration: none;
}

I'd advice to put more than 1 font, just in case the user doesnt have the first one installed, and usually a font family, in that case in put "sans".

and, yes, it will work in all browsers
Copy linkTweet thisAlerts:
@lakman4authorNov 16.2005 — Thanks for the reply LiLcRaZyFuZzY
Copy linkTweet thisAlerts:
@ofirNov 17.2005 — "sans" is not enough !

you have to write : "sans-serif" to get it write
Copy linkTweet thisAlerts:
@LiLcRaZyFuZzYNov 17.2005 — exactly, "sans-serif" or "serif"
×

Success!

Help @lakman4 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...