Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

auto height for columns...

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-22-2005, 04:07 PM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default auto height for columns...

My shop has a three column layout, which I have designed in a way that all the three columns have exaclty the same height on the homepage.

Navigating through the shop changes the content of the center column and therefore also stretches his height, while the height of left and right columns are vertically stretching according to their content. Which mostly of the time result in three columns with three different heights.

What I'm looking for is a way that the left and right columns auto stretch their heights to match the height of the center column, even if there's nothing at the bottom of both columns.

A example you can find here:

http://7dana.com/index.php


As you can see in this example the left (menu) column matches the height of the right (content) column, even if there's nothing at the bottom.
I'm looking for something simular, but then for a left and right column which match a center column.

I really hope somebody can help me out with this!
Many thanks in advance!!
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #2  
Old 05-23-2005, 07:21 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default

Jerrad, the heights of the left and right columns already match the height of the center column. Just add some background color to left and right side and you will gain the same effect.

Add this code to left and right columns(<TD ):
Code:
class"leftcolumn" class"rightcolumn"
add to skin1.css:
Code:
.leftcolumn{ BACKGROUND-COLOR: #cccccc;} .rightcolumn{ BACKGROUND-COLOR: #cccccc; }
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #3  
Old 05-23-2005, 11:26 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default

I knew it had to be something that difficult...

Thanks alot for helping Zaja, and for showing me that I'm more stupid then
I already thought...
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:53 PM.

   

 
X-Cart forums © 2001-2020