Support » Fixing WordPress » Image border size and color change

  • Resolved Satman1

    (@satman1)


    Hi, i’ll be honest, i have no css knowledge yet but i am learning.I am on the style sheet on wordpress trying to give my images a grey thick border as at the moment i have a thin black one.I have looked at the css, i dont know which part to change.Please help.Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Adding the following to your CSS will give you a solid gray border of 4 pixels. If you want it wider – just adjust pixel number until it’s where you want it.

    img {
    border: 4px solid #CCC;
    }

    Thanks very much!!

    Where do i insert this, i cant find the correct place

    It goes in your stylesheet.css file.

    Good question…good answer…now, I am wondering, if i want a border not just around the picture, but around the picture and caption, how do I do that? And how do I get text to flow around the picture, instead of breaking around it top and bottom?

    Where in the stylesheet.css do i insert this code above? I can see several places where it says border and i’ve tried changing them but i dont think i’ve tried the right place.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Image border size and color change’ is closed to new replies.