Add Padding to Sidebar Widget Content but Not The Title
-
It seems to me that there is no existing way to wrap HTML tags around just the widget content. Does anyone have a suggestion as to how to wrap only the content of a sidebar widget in an HTML tag and not the whole widget?
Basically, I have this:
<div class="widget"> <h3>Widget Title</h3> Widget Content </div>
And what I want is this:
<div class="widget"> <h3>Widget Title</h3> <div class="widget-content">Widget Content</div> </div>
Is this even possible?
I ask because the widget div has 0 padding. The H3 (title) of the widget has 0 padding. The title looks good but the content looks bad without padding. But I can’t add padding to just the content–I have to add it to the entire widget div. But when I do that it adds padding around the title as well. How can I have padding on just the widget content, without putting it on the entire widget?
- The topic ‘Add Padding to Sidebar Widget Content but Not The Title’ is closed to new replies.