Jump to content

out of control width


chadmichael

Recommended Posts

I've got a couple of divs, a content and navigation column, floated left and right in a container div. On explorer, my stuff gets super wide, far wider than the content itself. A horizonatal scroll bar appears and I must go way to the right to find the end of the stuff. Note, the content doesn't go nearly as far as the blocks themselves do. Anyone have any ideas? I'll try to mock up some code that duplicates the problem; I'm unable to post the actual code right now. Sorry.

Link to comment
Share on other sites

Have a container or wrapper div that surrounds everything. Then float your stuff in there.

#wrapper{width:400px;margin:0;padding:0;border:1px solid #666;}#item{float:left;width:100px;background-color:#9c9;margin:0;padding:0;}#item{float:right:width:100px;background-color:#c9c;margin:0;padding:0;}

It would be a lot easier to see what you have so I can see what might be causing the problem. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...