Jump to content

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 :)
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.