Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / CSS Help - simple I'm sure but not for me!

CSS Help - simple I'm sure but not for me!

Locked

Views: 5,096

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
10 Nov 2008, 8:18 AM
#1
esugrue avatar

esugrue

Zen Follower

Join Date:
Jun 2004
Posts:
182
Plugin Contributions:
0

CSS Help - simple I'm sure but not for me!

Hi!
I have taken over a website and need to update it for a client. Unfortunately and I know this is my fault, I'm still not good at CSS I'm afraid. (Not Zencart just a website, although the cart portion is ZC)

Anyway at the moment it is 2 columns, left and the main body. I want to add a 3rd right hand column (like the LHC).

Each page uses <?php require_once('inc/bottom.php'); ?>
to insert the bottom footer as well as the LHC.

bottom.php contains:

<div class="sidebar"> <p align="center"><img src="pageimg/image.jpg" border="0" /></a></p></div>

which makes up the LHC sidebar.

In the CSS the class `sidebar' says:
.sidebar { width:250px; float:left; margin:0 20px; }

So I want this sidebar on the right as well (different content etc).

I tried to add .rsidebar and change float:left to float:right but as I said that probably meant nothing as all it did was repeat the sidebar 2x on the left.

Is there a CSS class I can use that will make it appear on the RHS of the page and if so what?

Then I could just edit the bottom.php file and be done!

Thanks if anyone can help!

Ernie

10 Nov 2008, 8:40 AM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,799
Plugin Contributions:
15

Re: CSS Help - simple I'm sure but not for me!

http://www.manisheriar.com/holygrail/index.htm has some good info.

Remember that it's not just the css, but also the proper nesting of divs in wrappers.

12 Nov 2008, 1:05 AM
#3
ribbonsbaskets0 avatar

ribbonsbaskets0

New Zenner

Join Date:
Nov 2008
Location:
Seattle, WA
Posts:
52
Plugin Contributions:
0

Re: CSS Help - simple I'm sure but not for me!

Wish I could help, did you activate the righ bar in admin. I think it can be enabled and disabled from there. Not sure if that helps.

12 Nov 2008, 1:14 AM
#4
esugrue avatar

esugrue

Zen Follower

Join Date:
Jun 2004
Posts:
182
Plugin Contributions:
0

Re: CSS Help - simple I'm sure but not for me!

Hi!

Thanks for your help everyone - I think that website listed may help as the demo is pretty much what I'm trying to achieve!

Thanks
Ernie