|
| |
|
|
Rin
Posts: 7 Joined: 10/24/2008 From: The end of the line Status: offline
|
float:left changes width of div - 10/24/2008 5:10:12
Hello everyone! I've gotten myself stuck, and I was hoping somebody here could help me. I have a page who's 'main' section of the body is divided into 2 parts, the content on the left, and a side bar on the right (common layout). However, I cannot get the sidebar to sit next to the content unless the side bar comes before the content in the HTML; which I would like to avoid for accessibility reasons. The only other option I am aware of is to have the content section floated as well. I have tried this, but when I add float:left to the style sheet the div floats, but the width of the div also changes. I only have access to FF at the moment, so I don't know how it is behaving in other browsers. Also, using FireBug, I have cut out all of the extra rules from parent tags, and it doesn't have any effect on the problem. So there is my problem, and my question is: Is there a way to counter this, without setting a specific width for the div's? heres a link if you need it (it's no where near finished): http://www.afbu.org/theme.html
|
|
|
|
Rin
Posts: 7 Joined: 10/24/2008 From: The end of the line Status: offline
|
RE: float:left changes width of div - 10/24/2008 10:09:10
Thank you, I thought it defaulted to 100% of it's parent, and based on that I was trying to use margins to set make space for them to sit side by side.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|