WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Image border size and color change

[Resolved] Image border size and color change

  • 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;
    }
    Satman1

    @satman1

    Thanks very much!!

    Satman1

    @satman1

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

    It goes in your stylesheet.css file.

    mosalan

    @mosalan

    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?

    Satman1

    @satman1

    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 ‘[Resolved] Image border size and color change’ is closed to new replies.
Skip to toolbar