Home › Forums › Weaver Xtreme Theme › Header Widget CSS
- This topic has 4 replies, 3 voices, and was last updated 1 month ago by
scrambler.
-
AuthorPosts
-
August 26, 2023 at 15:41 UTC - Views: 20 #73346
ROBIN
ParticipantI 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.
August 26, 2023 at 17:29 UTC - Views: 15 #73347Weaver
KeymasterTry
#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.
August 26, 2023 at 17:33 UTC - Views: 12 #73348scrambler
ModeratorIf 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;}
August 26, 2023 at 17:45 UTC - Views: 9 #73349ROBIN
ParticipantThat worked like magic. Thank you!
August 26, 2023 at 21:15 UTC - Views: 6 #73350scrambler
ModeratorNot magic, CSS
🙂
-
AuthorPosts
- You must be logged in to reply to this topic.