Jump to content

Archived

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

playaz

CSS and borders on images

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

Share this post


Link to post
Share on other sites
Just wrap the image in a containing div and style the image with one border and the div with another.

Share this post


Link to post
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 :)

Share this post


Link to post
Share on other sites

×

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.