0
Welcome Guest! Login
0 items Join Now

Change background color of an article - page suffix

  • Change background color of an article - page suffix

    Posted 15 years 9 months ago
    • I need to change background color of few articles (not the whole site), so I created page class suffix and assigned it to those articles, the background color changes but only behind the text and not the whole page I need to be able to change background color of the whole page, any ideas.

      This is what I did.

      table.contentpaneopen-black {
      width:100%;
      background:#000000;
      }

      assigned suffix -black to the article.
    • Last Edit: 15 years 9 months ago by Peter Osipof.
    • VirtueShop
  • Re: Change background color of an article - page suffix

    Posted 15 years 9 months ago
    • Could you outline what area of the site you want changing to black and I'll see if its possible with the suffix? Do you have a link as well?
    • James Spencer / Developer & Support / Hull, UK
  • Re: Change background color of an article - page suffix

    Posted 15 years 9 months ago
    • It's localhost don't have a live URL.
      Using page suffix this is how the page looks.

      This image is hidden for guests.
      Please log in or register to see it.


      I want it to look like this

      This image is hidden for guests.
      Please log in or register to see it.
    • VirtueShop
  • Re: Change background color of an article - page suffix

    Posted 15 years 9 months ago
    • Maybe use the following in template_css.css
      .contentpane-black {
      margin-left:-15px;
      margin-right:-15px;
      }
    • James Spencer / Developer & Support / Hull, UK
  • Re: Change background color of an article - page suffix

    Posted 15 years 9 months ago
    • The process is made slightly difficult due to the page class suffix not being applied to high enough levels in the HTML structure.

      Something like

      .contentpaneopen-black {
      margin-left:-15px;
      margin-right:-15px;
      background: #000;
      width: 100%;
      }
    • James Spencer / Developer & Support / Hull, UK
  • Re: Change background color of an article - page suffix

    Posted 15 years 9 months ago
    • Thank you James for trying that doesn't work, using margin just moves the frame left and downwards.
    • VirtueShop
  • Re: Change background color of an article - page suffix

    Posted 15 years 9 months ago
  • Re: Change background color of an article - page suffix

    Posted 15 years 9 months ago
  • Re: Change background color of an article - page suffix

    Posted 15 years 9 months ago
    • Cheers lol The page class suffix thing has been annoying me for a while now and I was surprised at the feedback in the thread :)
    • James Spencer / Developer & Support / Hull, UK

Time to create page: 0.044 seconds