OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Right Align a Block Element within another Block Element
This page's ID:
22827
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Forget about absolute positioning - use float. This works - [code]<html> <head> <title>test</title> <style type="text/css"> #TEST { border: 1px solid black; width: 400px; height: 300px; margin:5px; padding:5px; } #TEST2 { float:right; border: 1px solid black; width: 100px; margin:5px; padding:5px; } </style> </head> <body> <div id="TEST"> <div id="TEST2">testing</div> <p>Text text text text text text text text text text text text text text text text text text text text text text text</p> </div> </body> </html> [/code] Just make sure the floated div is first.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »