• I’m trying to figure out how to get a white border around my photos so my wrapped text doesn’t bump right up against the image. I set the font to white for the image but now a solid black line is displaying instead of white. Any ideas? Thanks. Also, if there’s someplace I can put this permanently in my CSS file that would be of help as well. I’m a newbie to PHP and the whole WordPress thing so the clearer the instructions, the better for me. Thx so much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Would drop shadows be any good ?
    https://www.tamba2.org.uk/wordpress/graphicalcss/align/index.html
    I use them with an image every day on my blog right now.
    https://www.tamba2.org.uk/T2/

    Just use margins to do that

    img.alignright {padding: 4px; margin: 0 0 0 7px; float: right;}

    That’s what I use, where I defined the imge with class=”alignright” so the margin on it is on the left, and vice versa for an image placed ont he left
    img.alignright {margin: 0 7px 0 0; float: left;}
    That’s just what I use, Im not entirely sure if that’s what your asking for

    Thread Starter sahdoggiemom

    (@sahdoggiemom)

    Actually, that would be good…and add some visual fun to the photos. I’ll have to dig around my CSS in the morning. Thanks so much! If anyone can still shed some light on the basic border thing though, just so I know for future reference, please advise away. Thx!

    Sure the basic border is for the css is:
    .image{
    border-color: white;
    border-width: 4px;
    }

    Of course you can change it around, pick your border width, and more variations.

    Just kidding, you can add the style tag in there…looks like you’ve got it working more the way you intended…if you still want the text to be away from there, add in an extra margin attribute, and you can have both the border and the spacing.

    Thread Starter sahdoggiemom

    (@sahdoggiemom)

    Yeah, I actually went a different route until I could play with the CSS a bit more. The problem I was having with everyone’s suggestions was that no matter what color border I picked, it always showed up as a black border…annoying to say the least.
    Thx for everyone’s help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Borders around photos’ is closed to new replies.