LP640 Posted October 31, 2012 Share Posted October 31, 2012 I'm having an issue with bars showing on the bottom of some images on my website. Also, when I apply a shadow to an image, the bar appears at the bottom. Anyone know what could be causing this to happen? Code for image: p.backgroundTop{position:relative;z-index:-1;background:url('images/backgroundTop.png');margin-top:-10px;margin-right:-8px;margin-left:-8px;} Code for shadow: p.workImage_8_thumb{position:absolute;z-index:1;margin-top:340px;margin-left:300px;overflow:auto;box-shadow: 10px 10px 5px #888888;} Thanks. Link to comment Share on other sites More sharing options...
ShadowMage Posted October 31, 2012 Share Posted October 31, 2012 This is because images are, by default, inline elements. Inline elements leave a bit of space below them for "hanging letters" like g, p, or q. You can fix this by setting their display to block (I think inline-block will also work) or by floating them. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now