WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Image border size and color change (7 posts)

  1. Satman1
    Member
    Posted 3 years ago #

    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

  2. Saurus
    Member
    Posted 3 years ago #

    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;
    }
  3. Satman1
    Member
    Posted 3 years ago #

    Thanks very much!!

  4. Satman1
    Member
    Posted 3 years ago #

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

  5. Saurus
    Member
    Posted 3 years ago #

    It goes in your stylesheet.css file.

  6. mosalan
    Member
    Posted 3 years ago #

    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?

  7. Satman1
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.