
Widgets are great, that is a sure thing. But sometimes, they can be annoying, for exemple when they don’t look the way you want or need. The most common problem seems to be adding a line break between widgets. Here’s how to do it.

Widgets are great, that is a sure thing. But sometimes, they can be annoying, for exemple when they don’t look the way you want or need. The most common problem seems to be adding a line break between widgets. Here’s how to do it.
To add a line break between sidebar widgets, simply open your style.css file and append the following code:
.widget{
margin-bottom:25px;
}
Easy, isn't it? Note that it is possible to add a linre break to a specific widget only. You'll need its css id for that.
19 Responses
Thanks for sharing. It’s an easy and useful recipe.
thanks, I really like these short tweaks…
Easy and needed as always.
Thank you
Short and sweet. Gets the job done.
I am lucky my theme is programed to create a gap between every new widgets. But its nice to know that it can be done easily too. For newbie it will be very helpful.
Nice css tip
.. Short and functional …
Instead of “px” as the unit of measure, using “1em” would more closely simulate a line break, as it would be more compatible with the general font size.
Often times you may need to clear a float a widget may be inheriting.
So you may want to use
clear:left;I don’t know about that. I mean it’s a nice tip however there is such thing like too many widgets and I guess you reach that point when you need to use lines to separate one from another…
Short and useful tip. Yet I love this blog. I’ll subbscribe to your rss to get all updates.
Didn’t really help.. My widgets still appear cluttered..
This is perfect as the widgets seem to run together at times.
Or use the Text widget to put a <br /> between widgets.
Trackbacks: