Print Subscribe to Everyone's Blog about Web Design and your Online Business
Print Subscribe to Everyone's Blog about Web Design and your Online Business

Web Design and your Online Business

Welcome to Everyone's blog where you'll find me musing about anything related to online business and web design. One of my favorite pastimes is interviewing other people in the industry about how they deal with the challenges of designing pages for their clients. You will hear about everything from how to attract people to your site to making the page behave for any browser, new or old. If you've got an idea for a blog, or for a radio show on Blog Talk Radio, please drop me a line at blogtalk@everyones.com or just leave a comment here!

Second Interview with John Gallant Part Three – Font Sizing

Myra Rhodes - Sunday, September 19, 2010

In John Gallant’s opinion, font sizing is the most intense subject in web design. The focus of this portion of my Blog Talk Radio interview with John is to discover how you can set up font sizing on a site that you can maintain later on without going crazy. The reason for this ‘crazy making’, according to John is because sometimes too many people have their hands on the design of a page and they are changing font sizes for their particular portion of the page instead of having a more organized approach.

To begin this topic, John discusses the differences between sizing using pixels, percentages and ems. If you have absolute font sizing in, for instance, pixels, you ‘tell an element’ to be so many pixels tall and you would then have to set it up for all of your different font sizes.

Relative sizing, however works in a totally different way. Relative font sizing starts out with the root element, really the HTML element which has a default size, normally 16 pixels. If you don’t do anything, then that is the size of the text on the page.

So to globally resize the text, you would set your body size. You could set it in ems or in percentages. John normally uses percentages, mainly because his clients understand percentages better than ems.

To keep your font sizing in check, John recommends that you start out with a ‘strict organizational scheme’. To begin you would put a percentage on the body element for your global control. Then you should try to avoid putting font sizing on any of the intermediate elements.

So, say you put 110% on the body element, so now the body text might be approximately 18 pixels tall. Then you decide that you want the paragraphs in one of the columns to be a lot smaller. So you go to the column element and give it a size of 60%. But if you do a lot of stepping up and stepping down in percentages, things can get out of control. I think this is what John calls, ‘crazy making’.

Next, John explains the difference between using ems and percentages with dimensions (heights and widths of elements). A percentage width says, ‘how big is my parent element? I’m going to be, say 50% of that width.’ An em width, on the other hand says, ok, how big is ‘my text’? It tries to calculate how big a capital M is at its particular font size, say 50 ems and it sets the width of the element to 50 ems wide. It’s not perfect, says John. However, the advantage of using ems for widths and heights is that, if someone increases their text size, the em value for that element is going to change and the width of the element is going to change in proportion. So if the text gets longer, the element will get wider to accommodate it without having to wrap more often. The only danger with this is that you may run out of room on the page for the element.

John warns about a common mistake that people make with regard to applying percentages to margins. Suppose you have a left margin on a div and the div was 100 pixels wide. If you give it a 10% left margin, you might think that the margin is going to be 10 pixels. But that’s not what happens. Instead, it makes the margin a percentage of its parent.

To explain why he does not recommend using pixels for font sizing, John describes how the web actually evolved from print media where the reader has no control over the size of the text. Of course, people in the printing industry would not want users to be able to change the appearance of the text on the page. Therefore, many web designers would size in pixels in order to take control away from the user.  This gets into the various different types of style sheets. John does not go into great detail about those here. However it is covered in his webinar on “CSS Explaining the Cascade” (See below for more details).

If you’d like to listen to the interview in its entirety and for a list of the links that John refers please go to: http://www.blogtalkradio.com/everyones/2010/06/14/css-junkie-john-gallant-second-interview .

Comments
xodbbNJFRE commented on 06-Oct-2012 02:35 PM
valium online 1 mg valium effects - valium high description
BqWHhBNnXZ commented on 06-Oct-2012 02:54 PM
how to buy xanax online legally xanax 30mg - symptoms of xanax overdose in dogs
hdbgXlozSx commented on 06-Oct-2012 03:48 PM
purchase valium valium 10 mg in 2 ml - valium recreational dose
vItPlKOzoW commented on 06-Oct-2012 04:03 PM
buy xanax xanax pills what do they do - generic xanax vs brand
hBncotMIjy commented on 06-Oct-2012 04:23 PM
buy diazepam valium 063 - valium normal dose
hDYTeUatbY commented on 06-Oct-2012 04:57 PM
xanax depression xanax vs clonazepam - xanax que es
EpKbYwkLCm commented on 06-Oct-2012 05:08 PM
buy valium online buy valium uk 2012 - many valium pills get high
JUkNHpSxLf commented on 06-Oct-2012 06:30 PM
order xanax online para que sirve el alprazolam 0.5mg - xanax sublingual
zvLMKIHQRP commented on 06-Oct-2012 06:37 PM
no prescription xanax xanax quotes - list generic names xanax
YRRCOfXauF commented on 06-Oct-2012 07:03 PM
buy xanax valium online florida what is valium dosage - valium online no prescription uk
lLuztAkvLy commented on 06-Oct-2012 07:18 PM
cheapest xanax xanax prescription - xanax generic pill identification
LQnLKtTrDu commented on 06-Oct-2012 07:54 PM
buy diazepam online diazepam dosage muscle relaxant - can i buy diazepam online
mhcXXshFPf commented on 06-Oct-2012 08:42 PM
buy valium methadone valium drug interactions - order cheap valium
hJfNgTubBj commented on 06-Oct-2012 09:26 PM
buy valium online lorazepam vs xanax vs valium - how to buy valium online legally
rjbUAwgBmP commented on 06-Oct-2012 09:32 PM
xanax for sale xanax over the counter - xanax withdrawal buspar
DPyHlchXGx commented on 06-Oct-2012 09:38 PM
buy xanax buy xanax online mexico - xanax side effects forum
qAAEIhcEDn commented on 06-Oct-2012 09:58 PM
buy xanax online xanax 1mg dose - prozac and xanax for anxiety
HvooqDPNYu commented on 06-Oct-2012 11:34 PM
buy valium online is buying valium online illegal - what does generic valium look like pill
OqijAAUewq commented on 06-Oct-2012 11:43 PM
buy valium online ways get high valium - medication for valium withdrawal
GOrbJsUlpT commented on 07-Oct-2012 12:14 AM
xanax buy how much xanax and alcohol is safe - 2mg xanax cheap
fwIqfqbWZr commented on 07-Oct-2012 12:48 AM
sniffing diazepam uses diazepam dogs - buy diazepam from europe
sSakRdBoEK commented on 07-Oct-2012 12:53 AM
buy xanax xanax xr reviews - buy xanax online canada no prescription
DNwpZSWWVZ commented on 07-Oct-2012 01:04 AM
generic xanax buy .25mg xanax - xanax schedule 2 drug
RwTimQzzGL commented on 07-Oct-2012 01:34 AM
valium purchase high off valium - buy valium online no prescription in australia
ceamNkiIVb commented on 07-Oct-2012 02:12 AM
diazepam drug valium side effects chest pain - buy valium online no prescription mastercard

Post a Comment




Captcha Image

Trackback Link
http://everyones.com/BlogRetrieve.aspx?BlogID=7400&PostID=164838&A=Trackback
Trackbacks
Post has no trackbacks.


Newsletter Sign-Up




Subscribe me to your newsletter.