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

Defining Height in Center Area

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-02-2011, 12:57 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Defining Height in Center Area

Ok, I'm tired of banging my head against the wall...

How would I extend the height of the center area so that it reaches the bottom of the page on pages where there is little content? For instance, when you click on an empty cart, it only uses about 10% of the screen height (depending what you have in your left, and/or right bar). I want to fill the rest of the page with the background color of the center area (only).
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #2  
Old 05-05-2011, 01:23 AM
  DrQuietus's Avatar 
DrQuietus DrQuietus is offline
 

Advanced Member
  
Join Date: Dec 2005
Posts: 81
 

Default Re: Defining Height in Center Area

You signature says 4.2 and 4.1 - Is that what version you are asking about? The below is most helpful for 4.4


This could be very easy, but I would need to see what you are talking about to help. If you know the minimum height you would like the specific CSS block, then on the CSS file just add:
Code:
.whatever { min-height: 600px }
However, you might need to learn about the faux-column CSS technique, or you might simply need a <div class="clearing">&nbsp;</div> above or below the closing </div> of the element you are trying to stretch.
__________________
Dave Jones
dave@industrialwebworks.net
Mostly 4.7.2 - 4.7.5
Reply With Quote
  #3  
Old 05-05-2011, 04:44 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Defining Height in Center Area

I wish it was easy.

I'm working with version 4.4.2 and have tried what you suggest... without success. What I finally ended up doing was putting an image of the color I wanted and the width I needed in the left-bar and changing the body background to the same color as the content. I know, kind of a roundabout way to get what I needed, but it works.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
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 05:26 AM.

   

 
X-Cart forums © 2001-2020