• 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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).

    Thread Starter quercusrobur

    (@quercusrobur)

    Thats great and works a treat! Thanks for your help

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding background colour to a text widget’ is closed to new replies.