assigning a style to a single page: is it possible?

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"
Locked
bruco

assigning a style to a single page: is it possible?

Post by bruco »

I have made some trials, but I haven't understood if it is possible to assign different styles to different pages.
When in the styles page I do clic on the CSS icon of a style item I see the entire list of pages: does this mean that I can only globally assigna style to all the pages in my site?
jelle

Re: assigning a style to a single page: is it possible?

Post by jelle »

No, you assign one or more stylesheets to a template and you assign one template to a page. If you want your page to have a different stylesheet, you will have to use a different template.
The assigning of stylesheets to templates is many to many, so you can assign stylesheets to one particular template (yellowish button in the templates list) or you can assign templates to a particular stylesheet (same button in stylesheet list). The complete stylesheet that is served with a page made with a template, is made up by concatenating all stylesheet pieces into one big file.
Does that help?
bruco

Re: assigning a style to a single page: is it possible?

Post by bruco »

I will work around it. Thanks. If I have not success, I will come back and write again  :)
jelle

Re: assigning a style to a single page: is it possible?

Post by jelle »

There is nothing to 'work around'?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: assigning a style to a single page: is it possible?

Post by Dr.CSS »

It's,,, Template,, how many "boxes" in what order





{title} @ MultiInTech






{stylesheet}





= biggest box
  = next box inside "box"

  = next box w/ box in "page" box
   
       
         
   
    =end both boxes


  = next box w/ box in "page" box
     
       
        {cms_module module='menumanager' template='theme : CSSmenuhoriz1'      }
       
        =end both boxes


  = next box w/ box in "page" box
     
       
          {breadcrumbs delimiter='»' initial='1'} &nbsp
       
        =end both boxes

     

 
  = next box w/ box in "page" box
    = next box w/ box in "content" box

= next box w/ box in it inside "contentbox" box, no 's above
     
       
          {cms_module module="news" number="5" }
       
        =end both boxes


        = next box w/ box in it still inside "contentbox" box   
      = next box inside "mainblock" box
        {title}
        {content}
     
      =end both boxes

= next box w/ box in it still inside "contentbox" box
     
     
        nother Burb
        {content block='block1'}
     
      =end both boxes


= next box w/ box in it still inside "contentbox" box
      = this box has 2 boxes in it     
 
  ^ Top
  = end right49 box
          = start box
            {cms_selflink dir="previous"}

            {cms_selflink dir="next"}
          =end left49 box
        = end "flat" box


   
    = end "contentbox" box
  = end "content" box

    = end "page" box


= next box still inside "box"
 
      We welcome you with open arms and open hearts!  ©
  = end "footer:box



=finally end "box"





notice {stylesheet}
this tells the template what to do "to' and "with" the "boxes"

you can make 2 exact templates with diff. style sheets attached to change the look of the pages.

  HTH  mark
jelle

Re: assigning a style to a single page: is it possible?

Post by jelle »

Nice example, Mark!
Locked

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