0
Welcome Guest! Login
0 items Join Now

How to change the background color of Articles?

    • JEM's Avatar
    • JEM
    • Preeminent Rocketeer
    • Posts: 17917
    • Thanks: 4

    How to change the background color of Articles?

    Posted 16 years 9 months ago
    • I'm using J1.5 and Joomla Content Editor....

      Here's what I want to do:

      6 articles - Blog Category Layout - 1 article per row - 6 rows.

      Articles 1,3,5 have the 'standard' white background.

      Articles 2,4,6 have a light green background

      So, the article colors alternate white / green.

      I've done this in a single article using tables but need separate articles this time.

      When I tried to do it using JCE, I was surprised to find that you can only highlight text, not change the color of the entire background.

      On Jooml.org, someone suggested:


      Add the following lines to template_css.css

      .bgc {
      bgcolor: #D3E4A0; <<< (the color I want)
      }

      and edit HTML like this:
      <div class="bgc">your content here</div>

      Tried that and it didn't work...

      So, I am wondering...

      Did I place the info in the correct css file?

      Did I edit the article correctly in JCE / HTML view?

      How is it done....?
    • Last Edit: 16 years 9 months ago by .
    • Thanks,
      jim

Time to create page: 0.047 seconds