/    Sign up×
Community /Pin to ProfileBookmark

Adding Doctype Affects Font Size

Hi,

I’m trying to start using a doctype on my pages, but I’ve found that both html4.01 strict and transitional both cause all of the text on my pages to become microscopically small. ? The page in question validates except for the fact that it’s missing the doctype.

I’m using percentages for font sizes, so is there something I need to be aware of when it comes to doctypes and font rendering?

Thanks for any tips!

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@pacerierAug 08.2006 — ? arg im no good with doctypes, but you may try declaring font-size using px instead
Copy linkTweet thisAlerts:
@jen518authorAug 08.2006 — Hi pacerier,

I'm using percentages so that the text can be resized by the user. Using pixels in css doesn't allow for that.

Thanks anyway ...
Copy linkTweet thisAlerts:
@KravvitzAug 08.2006 — Please show us your code.

I prefer using EMs instead of percentages.

[url=http://www.bigbaer.com/css_tutorials/css_font_size.htm]CSS Font Size Explained[/url]

[url=http://www.clagnut.com/blog/348/]How to size text using ems[/url]

[url=http://www.clagnut.com/blog/348/#c2559]A comment from the above article that you should read as well.[/url]

http://www.thenoodleincident.com/tutorials/typography/
×

Success!

Help @jen518 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.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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