Background for each block?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
LouriePieterse
New Member
New Member
Posts: 8
Joined: Tue Jun 26, 2007 10:04 am

Background for each block?

Post 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'}
 
       
   
   
 

 



dashlock

Re: Background for each block?

Post 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
LouriePieterse
New Member
New Member
Posts: 8
Joined: Tue Jun 26, 2007 10:04 am

Background for each block?!

Post 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}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Background for each block?

Post 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...
LouriePieterse
New Member
New Member
Posts: 8
Joined: Tue Jun 26, 2007 10:04 am

Re: Background for each block?

Post 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
Post Reply

Return to “Layout and Design (CSS & HTML)”