Previous Message
Next Message

Re: [css-d] points, pixels and <.br />

Sent by Holly Marie on 18 November 2002 22:10


From: "Karin Christensen"

| I'm still learning by trial and error how to use css, but am having a
lot of
| fun with it.  Someone stated a short time ago that it is better to use
| percent, em, or pixels to define a font size and not to use pt.  Why
is
| this?

percent and em allow a user to change the size of the font on their
browser.
pixel sets the font a specific size
pt is a size unit use for print. [monitors and screens are different
because they size differently between os and display, pt is fixed to
print sizing]

percent may be more favored with some because ems may be buggy in some
old browser applications. Some feel percent offers a better sizing
display.

You will find a lot of discussions about this topic at various design
sites. And depending on what you are doing, you will have good arguments
for using whichever it is you wish to use.

For usability/accessibility reasons, relative sizing is better in the
long run and it allows users the ability to zoom or greatly enlarge page
text. [relative sizing is ems, percents, and relative words like small,
large, etc...]

Todd Fahrner has some interesting discussions on CSS and Font use[dated,
but good reads]
http://style.cleverchimp.com/

| The other question is why are most using the forward slash after the
br
| within the tag <.br />?  I also see this done with hr.


BR , HR, IMG,  META
and a few form tags and others have no closing tags in HTML.
If someone writes or authors their markup with X HTML, they need to
close all these tags.
So that tag without the colors becomes the opener and closing tag by
placing a space and an endslash after the element.
The space is used so older technology disregards that slash. XHTML
parsing trims white space and reads the slash.

More on differences between XHTML and HTML on this page which I think is
written very well.
http://www.w3.org/TR/xhtml1/#diffs

the break tag has no punctuation and would be <br /> if that displays
well in email. [smile]

holly



_______________________________________________
css-discuss [EMAIL-REMOVED]]
http://two.pairlist.net/mailman/listinfo/css-discuss
Sponsored by www.westciv.com - CSS resources | software | learning
Previous Message
Next Message

Possibly related: