logo       

Fwd: Styling the br element?: msg#01110

Subject: Fwd: Styling the br element?
> How much styling can one do with the br element?  I'm sure this has been
> asked before, but I can't find any answers. And really the reason I ask
> this is because I don't fully understand the properties of the br
> element, so where can I find info on the br element's default browser
> render properties?

BR is an empty element - it renders as a linebreak. All you can change
in your example is line-height for the address element to put
whitespace between the lines.

CSS always allows you to style what is INSIDE the element you define,
which is why in order to do anything to your example you'd need to add
elements around the different parts of code.

If you use clever elements and class names, you do even more:

<address class="vcard">
       <span class="organization-name">Someone's College</span>
       <span class="street-address>800 West University Parkway</span>
       <span class="locality">Sometown, Somestate 12345</span>
</address>

You can then define .adr span {display:block;} and go nuts. In case
you wonder about the class names: http://microformats.org/wiki/hcard

--
Chris Heilmann
Book: http://www.beginningjavascript.com
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
______________________________________________________________________
css-discuss [css-d-FPEHb7Xf0XVf4fvhJAioeSCwEArCW2h5@xxxxxxxxxxxxxxxx]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/



<Prev in Thread] Current Thread [Next in Thread>