Jump to content

CSS and borders on images


playaz

Recommended Posts

Hi,
Can anyone show me how I use CSS to style an image with two borders - basically I want
the inner border to be white and the outer border to be grey. Or alternatively have a single border which is grey which is 'pushed outwards' using the padding element to make it appear to have a white inner border.

If this doesnt make any sense let me know and i'll upload an image of what I am trying to acheive.

Thanks in advance
Link to comment
https://forums.phpfreaks.com/topic/8359-css-and-borders-on-images/
Share on other sites

[!--quoteo(post=368454:date=Apr 25 2006, 03:23 PM:name=moberemk)--][div class=\'quotetop\']QUOTE(moberemk @ Apr 25 2006, 03:23 PM) [snapback]368454[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Just wrap the image in a containing div and style the image with one border and the div with another.
[/quote]
Cheers dude!!

Can't believe how simple that was yet I couldnt figure it out, thanks again :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.