WordPress.org

Ready to get started?Download WordPress

Forums

using images as borders around images? (3 posts)

  1. Bleak
    Member
    Posted 7 years ago #

    Hi,

    Im quite new at wordpress and I am trying add a function to my theme.
    but im not that great with css so i was hopeing someone here could help or point me in the right direction.

    My problem is that i would like to add a graphical boder to any images posted on my site (posts or pages) Right now i add the frame in photoshop but it could be cool is the theme would do this by adding a table or something to go around the images with a side, left, right and top frame. (I hope you can understand any of this :D) to see how it looks now using photoshop go here http://www.cauldronofblood.com/?p=1 now the question is how do I do this with in wordpress.

    cheers,

    - bleak

  2. muelheim
    Member
    Posted 7 years ago #

    If you areusing images of the same size the easiest way would be:
    change the size surrounding p and add your border-image as background:

    <p style="background: #460002 url(borderimage-url) no-repeat top right;width:400px;height:300px;">
    <img src="imageurl" style="margin:50px;width:300px;height:200px;"/>
    </p>

  3. Bleak
    Member
    Posted 7 years ago #

    hmm sounds good.. ill give it a try.

    Thanks for your reply. :)

Topic Closed

This topic has been closed to new replies.

About this Topic