quercusrobur
Member
Posted 3 years ago #
Hi can anyone advise as to what html code I need to insert into a text box widget in order to add a background colour? I'm creating a site using 'panorama' theme and would like the background of the text box to be the same light grey as the 'links' widget, see http://www.ordinarylives.org.uk/wordpress/
Many thanks, Graham
hi 'ye mighty oak'
add this to the style.css (at the end):
.textwidget {background-color:#f2f2f2 ;padding:10px 10px 10px 10px; margin-left:88px;}
explanation:
padding:10px 10px 10px 10px; - clears some space around the textwidget content - sequence of the numbers refer to: top right bottom left - you can adjust the colors if you like.
margin-left:88px; was needed to prevent the textwidgets and their background color to squeeze out under the article if the post is shorter than the sidebar ( see this on your homepage right now, last entry in textwidgets).
quercusrobur
Member
Posted 3 years ago #
Thats great and works a treat! Thanks for your help