How do I remove the left padding in this layout?
My site, www.whatsthatbug.com, is a wordpress blog. I have combed through all of the CSS, and I cannot figure out how to get rid of the extra space on the left side of the page. Any su开发者_StackOverflow中文版ggestions would be most welcome.
Here's your problem:
body div#wrapper {
margin: 1em 0px 0px 7em;
}
Your wrapper has a left margin of 7em. Try the code below:
body div#wrapper {
margin: 1em 0px 0px 0px;
}
thethimble is right: it's the 7em left margin on #wrapper.
How to find this yourself: get Firebug, then you can hover over elements and see their attributes. In the CSS tab, you'll be able to edit CSS values live and see their effect on the page.
You have body div#wrapper{margin : 1em 0 0 7em}
. The 7em is assigning a left margin to the page is #wrapper is the encompassing div.
精彩评论