can i add rightsidebar in leftsidebar+1 column template???

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
nepsguy
Forum Members
Forum Members
Posts: 17
Joined: Mon Jan 07, 2008 8:44 am

can i add rightsidebar in leftsidebar+1 column template???

Post by nepsguy »

I am using leftsidebar+1 column template i want to add rightsidebar also. Please let me know how to add rightsidebar??
glennrichards
New Member
New Member
Posts: 4
Joined: Thu Feb 07, 2008 9:55 am

Re: can i add rightsidebar in leftsidebar+1 column template???

Post by glennrichards »

The following works for me:

Create 2 new divs in your stylesheet: 1 for the right column with float:right positioning, 1 for what will be a centre column.
Place these within the main div, right column first.

So CSS will look like:

div#rightblock {width: 18em; display: block; float: right; height: 1%;} /*you might want some margins?*/

div#centreblock {display: block; margin: 0 19.5em 0 0; height: 1%; }

And your template like:

{* Start Content Area *}
     
        your content
        your content
/*end of "main" div*/

Hope this does the trick.
Post Reply

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