Log in

View Full Version : Issue styling an li element



?foru
07-03-2014, 04:43 PM
I need to add a "margin-top" style to the "Follow Us!" text


<li id="social-widget-2" class="widget Social_Widget"><h2 class="widgettitle">Follow Us!</h2>

I've tried many different combos, but I must be overlooking something. I tried with h2 styles as well and no luck.


#social-widget-2 .Social_Widget {margin-top:20px;}

Thank you!

Beverleyh
07-03-2014, 06:48 PM
Try
#social-widget-2 .widgettitle { margin-top:20px; }
Or maybe a top-padding on the li instead
#social-widget-2 { padding-top:20px; }
Other CSS on the page might be interfering though so you might need to provide the link to the actual page.