WordPress.org

Forums

border under multiple images css (4 posts)

  1. charlietech
    Member
    Posted 2 years ago #

    I want to put a border under an image on my site. matter of fact I want to put a border under about 6-9 images on a page. I need about 60 pages of the same thing. what is the quickest way to do that through css ?

  2. President McCheese
    Member
    Posted 2 years ago #

    Add a css class to the image tag -
    <img class="bottom-border">

    Add the css class to style.css -

    img.border-bottom{
    border-bottom: 2px solid white;
    }

    Or all images -

    img{
    border-bottom: 2px solid white !important;
    }
  3. charlietech
    Member
    Posted 2 years ago #

    Thanks, How can i put a border on a single image without using css?

  4. alchymyth
    Forum Moderator
    Posted 2 years ago #

    How can i put a border on a single image without using css

    edit the image in the post/page
    -> advanced settings
    -> in the 'styles' field, enter for example:
    border: 1px solid #333

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.