Patrick
Patrick

Reputation: 5592

Simple CSS height problem

I am trying to just create a basic layout, but i am having trouble to get it to auto-adjust the height. Something is wrong with the DIV-container since it's not adding the padding correctly to the top and bottom elements. It should be the size of the highest block, right now its the menu block.

Any ideas? Website

Upvotes: 0

Views: 120

Answers (3)

Vidar Vestnes
Vidar Vestnes

Reputation: 42994

Inspect your HTML by using Google Chrome or Firefox with the firebug addon. Is so easy to see where and where not there is correct padding, margins etc... Additional ye see all css for a selected element as well...

Btw. When you are using padding, are you sure the rows above and below are cleared ? Tried using margins instead?

Upvotes: 0

TheGeekYouNeed
TheGeekYouNeed

Reputation: 7539

in the container that holds your divs (the one whose height is not adjusting), use a css clear fix. Your container div will adjust once you use this method.

Upvotes: 3

Jeremy
Jeremy

Reputation: 22435

Add overflow: hidden; to the CSS for that particular <div>.

Upvotes: 0

Related Questions