playaz Posted April 25, 2006 Share Posted April 25, 2006 Hi,Can anyone show me how I use CSS to style an image with two borders - basically I wantthe 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 More sharing options...
moberemk Posted April 25, 2006 Share Posted April 25, 2006 Just wrap the image in a containing div and style the image with one border and the div with another. Link to comment https://forums.phpfreaks.com/topic/8359-css-and-borders-on-images/#findComment-30563 Share on other sites More sharing options...
playaz Posted April 25, 2006 Author Share Posted April 25, 2006 [!--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 :) Link to comment https://forums.phpfreaks.com/topic/8359-css-and-borders-on-images/#findComment-30599 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.