Go Back   Pligg CMS Forum > Pligg Development > Pligg Templates > Template Support > Old Templates > "Mollio-Beat"

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-15-2007, 08:26 AM
New Pligger
 
Join Date: Dec 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation How can I modify the size of sidebar ?

Hi everybody,

I would like to modify the size of sidebar in order to insert a banner with a size of 250*200 but 250 as width is too big.

If I insert this banner , the template is modifying, This is why I would like to modify the size of sidebar and consequently reduce the width of articles.

How can I do it ?

Thanks to help me.

Romain
Reply With Quote
  #2 (permalink)  
Old 03-15-2007, 12:24 PM
Casual Pligger
 
Join Date: Feb 2007
Location: England
Posts: 45
Thanks: 7
Thanked 18 Times in 12 Posts
Change these lines of code in the main.css file:

Code:
#contentbox {margin:0 240px 0 25px;}
#sidebar {position:absolute; top:0; left:auto; right:25px; width:200px;}
To this:

Code:
#contentbox {margin:0 290px 0 25px;}
#sidebar {position:absolute; top:0; left:auto; right:25px; width:250px;}
Reply With Quote
  #3 (permalink)  
Old 03-15-2007, 02:12 PM
New Pligger
 
Join Date: Dec 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Great it works but there is a problem, the size of sidebar is modifying but the size of articles is not modifying so this creates a superimposition between them.

So how can I modify the size of articles ?

Thanks Simpatico

Rom
Reply With Quote
  #4 (permalink)  
Old 03-15-2007, 10:29 PM
beatniak's Avatar
Pligg Donor
 
Join Date: Apr 2006
Location: NL - 52.100863;5.108356
Posts: 310
Thanks: 14
Thanked 77 Times in 48 Posts
Bizarrely (is that a word?) easy! The size of articles as you call it is the "contentbox"
Quote:
#contentbox {margin:0 250px 0 25px}
margin values above are in these order: top right bottom left.

So the margin of the "size of articles" (aka contentbox) is:
top = 0px
right = 250px
bottom = 0px
left = 25px

Just add 50px to the right value (because sidebox also has 50px more width) and your site looks great again!

So it should look like this:
Quote:
#contentbox {margin:0 300px 0 25px}
__________________
Like my work? Donations are welcome if you would like to support my work!
Finger pliggin' good sites of mine: receptencocktail.nl / numarketing.nl / goboz.com
Reply With Quote
  #5 (permalink)  
Old 03-15-2007, 10:52 PM
Casual Pligger
 
Join Date: Feb 2007
Location: England
Posts: 45
Thanks: 7
Thanked 18 Times in 12 Posts
If you cut-and-pasted the lines of code I suggested and it still isn't working as expected, then a link to your site would come in handy. Have you made any other alterations?

I'm using a heavily modified version of Mollio-Beat and changing both the sidebar and contentbox values works fine.

Beatniak's post explains why the changes should work.
Reply With Quote
  #6 (permalink)  
Old 03-15-2007, 11:04 PM
beatniak's Avatar
Pligg Donor
 
Join Date: Apr 2006
Location: NL - 52.100863;5.108356
Posts: 310
Thanks: 14
Thanked 77 Times in 48 Posts
Like Simpatico (means sympathatic in italian, right?) says:

Always put a link to the dev/test site so other people can see what you mean. If simpatico's / my solution doesn't work, then something else is the problem that we can only solve by looking into your code.
__________________
Like my work? Donations are welcome if you would like to support my work!
Finger pliggin' good sites of mine: receptencocktail.nl / numarketing.nl / goboz.com
Reply With Quote
  #7 (permalink)  
Old 04-05-2007, 10:49 PM
spartacus's Avatar
Casual Pligger
 
Join Date: Mar 2007
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
New Sidebar Column

Hello

I am attempting to add a second sidebar using mollio-beat. I've adjusted the contentbox code from 240 to 440 to accommodate the new sidebar. I've essentially duplicated the sidebar.tpl file (naming it sidebar2.tpl) and then added this code where I think it should be located in the pligg.tpl file:

<div id="sidebar2">
{include file=$tpl_right_sidebar2.".tpl"}
</div><!-- sidebar end -->

I know I'm missing a step here somewhere. Help is greatly appreciated.

Visit www.poolies.tv/pligg
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Weekly tags to the sidebar Andtony Modification Tutorials 1 09-15-2008 06:25 PM
Sidebar Friends Module with messaging and activity AnAlienHolakres3 Modification Tutorials 31 02-09-2008 06:54 AM
how to change font size and color in Queued News in sidebar jitu "Mollio-Beat" 3 10-19-2007 07:16 AM
Css and background images in sidebar metaman "yget" 0 10-10-2007 10:04 PM
Recreate functionality of origianl sidebar in added sidebar trustnot "Digital Nature" 1 03-15-2007 10:15 AM


Search Engine Friendly URLs by vBSEO 3.2.0