WordPress.org

Ready to get started?Download WordPress

Forums

Change Background Color for Multiple Paragraphs (3 posts)

  1. Photog
    Member
    Posted 2 years ago #

    I want to create a magazine sidebar-like feature in a blog article and want to have the background for that sidebar a different colour from the rest of the article.

    I know it can be done, and how to do it, on a paragraph by paragraph basis as on this site, http://peterstamp.com/. But I'm uncertain how to keep the background colour change to span paragraphs.

    Thanks.

  2. Jonas Grumby
    Member
    Posted 2 years ago #

    You would have to either get a plugin for inserting tables into posts or use the HTML editor and use CSS in the post to create two side-by-side divs. Give each div an ID or class and assign the background color to the sidebar div with CSS.

  3. Photog
    Member
    Posted 2 years ago #

    I have a tables plugin already installed. Hadn't thought of that.

    Inline CSS is the same way I created the different paragraph backgrounds for the site linked in my initial post. I can play around with that as well.

    Using a table may be the easist way though.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.