(Sheesh, why do y'all keep sending replies to both me AND the list? I'm bailing out duplicate mails like a man in a sinking rowboat ;)
jeffrey morin wrote: >> When you set a link to display: block, it becomes a block element. Block >> elements by default take on the full width of their containing element. So >> now, >> the text within the link is free to slide across to the right. > > > but when you put text-align : right on a paragraph it works. and > that text may not take up the entire width of the block right? > > sorry if these are simple questions. i'm not quite grasping it Well, each line of text in a paragraph sits in an anonymous "line box". Each line box can be shorter than the width of the containing block. If you use center or right align, the line boxes slide over to the center or to the right. Inline elements "shrinkwrap" -- their width and height are set to the size of what they contain and nothing more. So if the width of a link equals the text inside it, the text has nowhere to go if you try to re-align it. There's no spare space anywhere. If you convert a link from display: inline (the default) to display: block, it now has spare space inside of it, within which you can move the text about. ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- 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/