Jump to content

CSS and borders on images


Recommended Posts

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
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.
Cheers dude!!

Can't believe how simple that was yet I couldnt figure it out, thanks again :)
Link to comment
Share on other sites

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.

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.