Jump to content

Bar on bottom of some images


LP640

Recommended Posts

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? post-105675-0-53395000-1351697105_thumb.png Code for image: p.backgroundTop{position:relative;z-index:-1;background:url('images/backgroundTop.png');margin-top:-10px;margin-right:-8px;margin-left:-8px;} post-105675-0-60551800-1351697104_thumb.png 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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...