Add border to Widget Image

Home Forums Ample Free Add border to Widget Image

This topic contains 3 replies, has 2 voices, and was last updated by  ashishsthanp 2 weeks, 5 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1323188

    zonhisham
    Participant

    Hi,
    My site is at https://ybuholdings.com/wp/

    I would like to add a border to that image on the right sidebar (and possibly to some other pages as well). How am I suppose to do that? Please advise. TIA.

    #1323354

    ashishsthanp
    Moderator

    Hello, @zonhisham

    You can add following code inside Appearance > Customize > Additional CSS :

    
    #secondary .widget img {
      border: 1px solid;
      padding: 5px;
    }
    

    Regards,
    ThemeGrill Support Team.

    #1323550

    zonhisham
    Participant

    Hi @ashishsthanp

    Thanks for the help, it works !

    I was also thinking of aligning the image center and add a line to your code like so:

    #secondary .widget img {
      border: 1px solid;
      padding: 5px;
      <strong>align: center;</strong>
    }

    But that doesnt work. What did I do wrong?

    #1323654

    ashishsthanp
    Moderator

    @zonhisham

    Add the following code to Additional CSS:

    #secondary .widget {
      text-align: center;
    }

    Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.