9three Posted April 28, 2009 Share Posted April 28, 2009 Hey, I'm having an issue where extra space is added to my background image. http://i261.photobucket.com/albums/ii69/yhernandez305/example.jpg I don't know why, I did not set a margin or padding to the lower part. HTML: <div class="pollframe"> <img src="images/pollTop.jpg" width="225" height="19" /> <div class="content"> Poll </div> <img src="images/pollBottom.jpg" width="225" height="3" /> </div> CSS #misc .pollframe { width: 225px; margin: 0px; padding: 0px; background: url(../images/pollFrame.jpg) repeat-y; } #misc .content { width: 215px; margin: 0px 0px 0px 2px; padding: 20px; color: #5e5e5e; background: url(../images/pollBG.jpg) no-repeat; } Also, if you notice the background of pollframe continues a little further down by about 2 pixels. I don't know why as there is no space for it to continue, the DIV ends where the image is. Anyone, please? Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted April 29, 2009 Share Posted April 29, 2009 EDITED CSS CODE #misc .pollframe { width: 225px; margin: 0px; padding: 0px; background: url(../images/pollFrame.jpg) repeat-y; } #misc .content { width: 215px; margin: 0px 0px 0px 2px; --> margin: 0; padding: 20px; --> padding: 20px 0 0 0; color: #5e5e5e; background: url(../images/pollBG.jpg) no-repeat; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.