Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS Image Borders

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31589
    tylerty97
    Member

    Hi, I’m new here and I had a CSS question. On some websites there is an image border around and image and I was wondering how this is is. Like, does anyone have the code?

    Example: http://www.blog.spoongraphics.co.uk/tutorials/how-to-create-a-sophisticated-business-card-design

    Thanks!

    #61010
    TheDoc
    Member

    That particular website is using the following code for those borders:

    #content #main .post p img {
    display: block; margin: 0 auto 15px auto; padding: 3px;
    border: 6px solid #f2e6d1;
    -webkit-border-image: url(images/border-image.png) 6 repeat;
    -moz-border-image: url(images/border-image.png) 6 repeat;
    border-image: url(images/border-image.png) 6 repeat;
    }

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.