How to style a text box widget in the sidebar
-
I would like your advice on how to style a text-widget in the sidebar. I would like to add a border around the text box and a background-graphic. My problem is that I cant figure out how to style the entire box. I have tried with the code below – but it doesnt seem very clever.
How would you add a black CSS-border around the box?
How would you add an background-graphic to the box-content?<div id=”sidebar”>
<h2>Tekstboks et nyt fors?g</h2>
<div class=”textwidget”>Text inside text-widget</div>
</div>.textwidget {color: red; background: green;}
#sidebar h2 {color: orange; background: green;}Thanks in advance.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to style a text box widget in the sidebar’ is closed to new replies.