Adding background colour to a text widget (3 posts)

  1. quercusrobur
    Posted 6 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

  2. Michael
    Forum Moderator
    Posted 6 years ago #

    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;}
    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).

  3. quercusrobur
    Posted 6 years ago #

    Thats great and works a treat! Thanks for your help

Topic Closed

This topic has been closed to new replies.

About this Topic