PDA

View Full Version : Please Help: RE: Seperating cms from sidebar


FatalCure
03-10-2011, 06:37 PM
Hey guys, wondering if someone can give me a little help as I am not that great with html etc and vb4 makes this much more difficult with it's grid system etc.

Basically I want to give my news/cms/forum area a background color, but I don't want this to include the sidebar area. I've drawn an image in paint to help you guys understand.

Figure 1 is what I have atm.
Figure 2 is what I want.
Figure 3 is what I have managed to accomplish by giving the body_wrapper div a background color but I don't want it to extend all the way across to the sidebar if that makes sense.

http://img4.imageshack.us/img4/4950/vbulletin.png

I realise I will probably need to add a new div, basically encapsulating that area of the page but I am having trouble working out where to add this code. If someone could please show me what to edit I would very much appreciate it.

Lynne
03-10-2011, 06:45 PM
Link? It really depends on the grid classes being used. This may work, but it depends on the classes being used in the grid:
.yui-u.yui-panel {background: pink;}

FatalCure
03-10-2011, 07:31 PM
<a href="http://www" target="_blank">www</a>

Lynne
03-10-2011, 08:44 PM
Very odd. That CSS works just fine on my 4.1.2 test site and we have the exact same html.

Hmmm, mine works cuz I have a second list item there. Go to your grid, find this line:
<div class="yui-u yui-panel">
<ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]</ul>
Change to:
<div class="yui-u yui-panel">
<ul class="list_no_decoration widget_list" id="widgetlist_column1">$column[1]<li>&nbsp;</li></ul>

FatalCure
03-10-2011, 09:07 PM
Cheers, that solved it.