Page 1 of 1

Background for each block?

Posted: Wed Jul 04, 2007 8:22 am
by LouriePieterse
Helo People

Sorry if my english is bad!
I want toe set a different background to each block on my site.
http://boerevryheid.co.za/cmsmadesimple/horiz/tuis.htm

For the header,"Kieslys",right block and the main content.
How do 'n do it?! ???

I include the code for my default template:
{cms_module module='VisitorStats'}



{sitename} - {title}



{stylesheet}{metadata}




 

   
{global_content name='PlaasOpskrif'}
     
     
      Vryheid en onafhanklikheid vir


      die Boerevolk deur middel van


      die Majuba Deklarasie


     
     
     

     
   


     
       
        {cms_module module='menumanager' template='flex3col : theme : CSSmenuhoriz1'  items="tuis, gesels-forum,nuwenuus,fondse,hulp,terugvoer,kontak"}
       
     
 

 
   

     
       
{global_content name="image"}
Soek Funksie
{google_search buttonText = "Soek Tuiste"}
Druk Formaat
{print showbutton="true"}
Bladsy Aanvrae


     


     
       
          Kieslys
        {menu template='newmenu'}



       
     

     

     
       
          {breadcrumbs delimiter='»' initial='1'}  
       
     
     
     
        {title}
        {content}
     
     
 
     
     
        {content block='block1title' oneline='true'}
        {content block='block1'}
     
     


     
         
                       
         

 
      {global_content name='footer1'}
 

 
  {global_content name='Posbestuur'}
 
       
   
   
 

 




Re: Background for each block?

Posted: Wed Jul 04, 2007 8:13 pm
by dashlock
Hello,
I am new to CMSMS and CSS, just installed 2 days ago, but I'm going to see if I can help.  Try this in the stylesheet, not the template.  Sorry I don't have more details, I just know what worked for me.

Add something like this for the div.

  background: #d8dff2 url(images/cms/anypic.gif) no-repeat 0px 0px;


Good luck

David

Background for each block?!

Posted: Thu Jul 05, 2007 7:31 am
by LouriePieterse
After a lot of hard "work" I figured it out. :)
My template use 6 stylesheets, the background and color settings is in the Color one.
So I changed that code:

Code: Select all

/*colors*/

body{background-color:#6A6A6A}
.h2head, #wrapper, .breadcrumbs,#flat{background-color: #f2f2f2;border-bottom: 1px solid #bfbfbf;border-top: 1px solid #d9d9d9}
#header h1{background: url(uploads/theme/logoMain.gif) no-repeat}
#hbox{background: url(uploads/theme/monument.jpg) no-repeat;}
h3{color: #595959}
div#page{background: url (uploads/images/thnis/bk-y.jpg)}
div#menu_horiz {background-color:#FFF}
div#main, div#content3, #contenthead{background-color:#FFF}
div#header{background-color:#CCCCCC;border-bottom: 3px solid #000000;border-top: 3px solid #000000;border-left: 3px solid #000000;border-right: 3px solid #000000}
div#menu2{background-color:#CCCCCC}
div#news{background-color:#CCCCCC}
div#footer{color: #333}
#flat{background-color:#FFF}

Re: Background for each block?

Posted: Thu Jul 05, 2007 7:48 pm
by Dr.CSS
Hello Woogie

Hows it going, I made that template...

If you need any more help you can email me, or I'll keep an eye out for any more of your posts...

Re: Background for each block?

Posted: Thu Jul 05, 2007 9:14 pm
by LouriePieterse
mark wrote: Hello Woogie

Hows it going, I made that template...

If you need any more help you can email me, or I'll keep an eye out for any more of your posts...
My site is almost finished!
I will tell all you wonderfulle people when you can come and look,
hopefully it would be tomorrow.

Thanks mark, I will contant you defenitly.

Greetings