On 9/23/10 7:42 AM, Mark Finney wrote:
Slightly confused though - setting the width does solve the problem by fixing the width of the containing division so the p only stretches that far but that removes the point of floating that div in the first place. What I want (if it is possible) is to achieve a solution that allows me to right-align items (like the link in the example). Mark
Dunno. Try [your inline markup deleted]: markup <div> <p>Some paragraph</p> <a href="#">Interesting Link</a> <table> <thead> <tr> .... css <style type="text/css"> html, body { background : #fff; color : #000; margin : 0; } body { font : 100%/1.4 arial, sans-serif; } p {text-align : left;} a {position: absolute; top: 0; right:0; } div {float: left; position: relative;} </style> Best, ~d -- :: desktop and mobile :: http://chelseacreekstudio.com/ ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/