2 Votes Vote

Div Ignoring Right Margin

Posted by topdog 784 days ago Questions| div ignoring margin All
see http://www.learningoutdoors.org

I have a div named logo with these attributes:

CODE
div#logo {
  float: left;
  width: 100%;
  height: 202px;
  background: url(../images/logo_bg.jpg) 0 0 repeat-x;
  margin-left: 14px;
  margin-right: 14px;
}


The div is extending all the way to the right boundary of the page rather than ending inside the enclosing div as intended, and is ignoring the margin-right setting I have in place.

Help!
Discuss Bury


Who Voted for this Question