Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Trouble with HTML & CSS


Drummerpete
 Share

Recommended Posts

I usually never have a problem with web design, but this is making me angry. XD

Here's a snippet of the code:
```
div#container
{
  width: 898px;
  background: #FFFFFF url("images/contentbg.gif") repeat-x;
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
  border-right: 1px solid #000000;
  margin: 50px auto 0 auto;
  padding: 10px 10px;
}

div#menu
{
  width: 178px;
  margin: 0 20px 0 0;
}

div#content
{
  width: 500px;
  padding: 0 10px;
}
```
Now, here's the problem.
I want the menu & content side by side within the container.

As the code is, menu & content **are** in container.

When I add
float: left;
to menu, content moves over to the left BEHIND Menu.
Then, when I add float: left; to content, the both go side by side OUTSIDE container.

I really hope someone understands what I just said.
I also hope someone understands why the hell that's happening, because I don't.
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
 Share

×
×
  • Create New...