Need help with image borders (css)
-
I am trying to add a custom CSS image border to certain images on a WordPress site I am building, however, I have run into a problem that I cannot solve.
When I add the border to my stylesheet, it seems to add the border to the whole paragraph that the images sits in, rather than just the image itself!
http://andrewgough.co.uk/test/interviews_hancock/
I have only selected certain images to have this border applied, and the style is:
.picborder { line-height: 110%; margin-top: 0px; margin-bottom: 12px; padding-top: 0px; padding-bottom: 0px; border: 25px solid #6c340b; }
I then apply this style to the images I want the border added to – but as you can see the border goes way past the image boundaries. What else is affecting the border size?
Thanks for any help.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Need help with image borders (css)’ is closed to new replies.