Little is said in relation to setting font sizing and how it relates to other tags and layout and so forth. I never look at it too much until I learn that some ways are superior to others.
The em is the best method, I have usually used points by myself. So my problem is:
1) What method would you use for font measurement, div widths, margins and many others, and why
2) Does a single size type affect other pursuits in the website layout
Personally, I style with CSS since you should.
Regarding font sizes, MY PARTNER AND I use percentages, eg
font-size: 120%;
For div widths and many others sometimes I employ percentages, but largely I’d use pixels, for instance so
width: 800px;
margins along with padding, always pixels
underlay: 20px 0px 15px 0px; margin: 0px;
Why I merely do. It’s just the best way I learnt.
Essentially yeah, it’s a good option to set the base font-size with the document and next size either with percentages or ems (which boils right down to the same issue for fonts) with specific elements. There are still templates to examine, including Blueprint CSS, YUI Fonts, along with YAML.
Thus Shadow, would a person recommend a starting font in factors, pixels, or anything else
Pixels usually are a good program. I seem for you to recall IE has some difficulties with points, as inside only scales font dimensions specified in pixels as well as something. Regardless, that is current best practice’. All over again, those CSS frameworks really are a good starting point for considering best practice’ CSS.
Sure those are cool sites, but I couldn’t find the css file around the examples I noticed. I wasn’t receiving the file path proper or something.
Sometimes take advantage of percentages on some divs to layout your web blog, and pixels for others it can get messed upwards. But generally it’s not too bad. So I can use pixels for div layout, ems regarding font size, pixels for cushioning and margins plus percentages for line height but it shouldn’t efffect eath other.
I didn’t like to learn it every particular way. I merely looked at examples/tutorials and so on and just utilised what they would. Sure, I’ve done some experimentation but I generally stay with what I’ve learnt with the beginning (if this works ok). But it does work fine, so I stick to it.
So provided that it renders excellent in different windows and doesn’t affect other stuff on this page then that shouldn’t matter what one does, although some methods become more specific than others. It just is determined by what you including, I guess.
Thanks guys, it’s just been form of a grey area personally, and some of the things I’ve examine are alldifferent. I guess simply do what works in this instance. Although that method doesn’t work for everything……. for instance tables for format…. it works although it’s not the right way!
Glad as a help.
Like your inquire into the tables – so true, but so many people get it drastically wrong!