Jackie
Jackie

Reputation: 23577

Layering not working as expected

So I am trying to have two divs that are side by side, however, they always seem to overlap see... JFiddle

I tried messing with the z index but that didn't seem to help.

This should be easy anyone able to help me?

Upvotes: 0

Views: 31

Answers (2)

Palladium
Palladium

Reputation: 3763

Try float:left on both of them.

Upvotes: 1

Roddy of the Frozen Peas
Roddy of the Frozen Peas

Reputation: 15209

Add float:left; to #content #item2. See this jsfiddle.

Upvotes: 0

Related Questions