Home Forums Weaver Xtreme Theme Header Widget CSS

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #73346
    ROBIN
    Participant

    I am trying to add margin and or padding to the first and third header widgets on this site.

    https://loveandlightadoptions.com/welcome/

    I have used the F12 inspect option but I can’t find the exact name of each widget.  I imagine I would do

    something similar to this:

    .Widget name here { margin: 50px 4px 8px 4px !important; }  if I am off base please let me know.

    I would appreciate any help you can give me.

    Thank you in advance.

     

     

    #73347
    Weaver
    Keymaster

    Try

    #header-widget-area .widget-1
    #header-widget-area .widget-2

    If you add more, they increase the number.

     

    Sometimes it is easier to simply look at the HTML output of the page.

    #73348
    scrambler
    Moderator

    If you look under header, you see the header-inside container, then the header-widget-area container, and in there arge the three widgets with an aside tag

    #custom_html-2

    #widget_sp_image-2

    #widget_sp_image-3

    So if you want to add these margin to the first and last, the rule would look like

    #custom_html-2, #widget_sp_image-3 {margin: 50px 4px 8px 4px !important;}

    BUT that would, screw up the layout, as the margin are not part of the width, so the widget would drop on two lines

    So you should use padding instead and you should not need important

    #custom_html-2, #widget_sp_image-3 {padding: 50px 4px 8px 4px;} 

    #73349
    ROBIN
    Participant

    That worked like magic.  Thank you!

    #73350
    scrambler
    Moderator

    Not magic, CSS

    🙂

     

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.