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
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| |
| |||
|
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;}
Code: #contentbox {margin:0 290px 0 25px;}
#sidebar {position:absolute; top:0; left:auto; right:25px; width:250px;}
|
| |||
|
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 |
| ||||
|
Bizarrely (is that a word?) easy! The size of articles as you call it is the "contentbox" Quote:
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:
__________________ 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 |
| |||
|
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. |
| ||||
|
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 |
| ||||
| 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 |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
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 |




Linear Mode

