OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
aligning div's within a div header
This page's ID:
11106
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
I have a header div, and 2 div's within it. I want the first to be aligned to the left side, and the right aligned to the right. Or, at least have an affect where it's like the first and second are in different <td> tags if I were using a table to lay this out. It only seems to affect the bolded text. If I add/remove the #headeraddress style, it will move the bolded text to the right or back under the logo (while the rest of the text stays in place) If I add "border:1px solid #cccccc;" to the style #headeraddress it will create a border around each line of text, instead of one box. Since the div has the style, shouldn't there be just one box that has a border? Here's the source:[code]<div id="header"> <div id="logo"> <img src="images/logo.gif" alt="logo" width="305" height="71" /> </div> <div id="headeraddress"> <b>some text</b> <br />E-mail: <a href="#">company</a> <br />address info <br />address info </div> </div>[/code]and this style:[code]#logo { display:inline; } #headeraddress { display:inline; }[/code]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »