/    Sign up×
Community /Pin to ProfileBookmark

What I Do? What Is A Right Font In Em Or %

Hello, As i ve defined font in body so that it ll reflect around the site, but it is nt working .And every time i ve to define font size for almost every tag . like i ve defind for p tag ul tag or etc. how can i solve this problem.

IF I REMOVE FONT SIZE FROM P TAG IT IS SHOWING ME THEN IT SHOWS ME SMALLER FONT .

body {
text-align: center;
background-color:#E9E9E9;
color:#6B6C6C;
font-size:64%;
font-family:Verdana, Arial, Helvetica, sans-serif;
margin:0;
padding:0 0 25px;
}

P{font-size:1.2em; line-height: 1.7em; margin-top:10px; margin-bottom:6px; color:#6B6C6C; text-align:justify;}

WHAT I DO? WHAT IS A RIGHT FONT IN EM OR %

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@FangOct 19.2007 — % in the body and em for other elements.
If i remove font size from p tag it is showing me then it shows me smaller font[/QUOTE]That is normal as the p font-size defined is > 1

Elements that can cause 'problems' are tables form elements and headings.All Other elements should be correct in relation to the body.
Copy linkTweet thisAlerts:
@WebJoelOct 19.2007 — Defining font-size in "em" allows users to manually 'resize' font-sizes if they wish. With the appropriate mouse gestures, this can be 'tap the center-wheel and roll' maybe, to make the font-sizes larger or smaller. This is a good thing.

Stating the font-size first in a percent then re-state to an em-size, helps to maintain the math.. I am not 100% certain of how this is actually implemented, but if you state "font-size:64%" (or somewhere around that percent), and then re-state the font-size as "1.0em;", you make the 1.0em equal approx. 10px. "one em = 10px" is a good standard. I am almost certain that I'm leaving out an explanatory step here. This can be notable on H-tags.

I usually re-size to "font-size:100%" and then, re-state the font to the desired em-size. This helps all-browser font size rendering, -but this approach is still not quite perfect and I'm sure it is because I am not doing something correctly.

I prefer font-sizes in "em" value for the ability of the user to re-size, if desired. It is and can be necessary to state font-sizes for every or nearly every element, so if that is the problem, -we all do it.
Copy linkTweet thisAlerts:
@Major_PayneOct 20.2007 — Here's a chart that converts points to pixels (and ems and %). It's an approximation, which will depend on font, browser and OS, but it's a good starting point.

Ron
×

Success!

Help @lohumihem 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 5.23,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...