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

what css code do I modify

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-27-2012, 10:50 AM
 
Mike SSI Mike SSI is offline
 

Advanced Member
  
Join Date: Feb 2011
Posts: 86
 

Default what css code do I modify

I'm using the light and lucid template (i.e. 2-columns with left menu bar). I want to modify this design so that the header and footer have a 100% width while the content area has an exact width and is centered.

Anyone know what css code needs to be modified to make this happen?
__________________
X-Cart Gold 4.7.5
Reply With Quote
  #2  
Old 09-27-2012, 11:55 AM
  Toora Designs's Avatar 
Toora Designs Toora Designs is offline
 

eXpert
  
Join Date: Aug 2011
Location: California USA
Posts: 281
 

Default Re: what css code do I modify

if you want to make header and footer width 100% you will have to play with many file, I would suggest using firebug and webmaster mode you can accomplish what you are trying to do.
__________________
If you need professional help on your x-cart site or any website.
Feel free to PM me or Skype me to discuss your project.
Reply With Quote
  #3  
Old 09-27-2012, 12:29 PM
 
Mike SSI Mike SSI is offline
 

Advanced Member
  
Join Date: Feb 2011
Posts: 86
 

Default Re: what css code do I modify

I can make the header and footer 100%. That's actually easy. Just need to take out the width factor in #page-container located in the altskin.css file.
Quote:
#page-container {
border: 0 none;
margin: 0 auto;
text-align: left;
/* width: 960px; */
float: none;
}

But doing this makes the content (the stuff in between the header and footer) 100% also. Seems like it would be easy to just give the in between stuff a width factor of 960px. But because these templates use floats, relative position, and bizarre padding, I can't come up with the right combination.
__________________
X-Cart Gold 4.7.5
Reply With Quote
  #4  
Old 09-27-2012, 12:46 PM
  Toora Designs's Avatar 
Toora Designs Toora Designs is offline
 

eXpert
  
Join Date: Aug 2011
Location: California USA
Posts: 281
 

Default Re: what css code do I modify

can you PM me your store link? or you can just post it here
__________________
If you need professional help on your x-cart site or any website.
Feel free to PM me or Skype me to discuss your project.
Reply With Quote
  #5  
Old 09-27-2012, 12:48 PM
 
Mike SSI Mike SSI is offline
 

Advanced Member
  
Join Date: Feb 2011
Posts: 86
 

Default Re: what css code do I modify

Can't do that. Top secret. But thanks anyway.
__________________
X-Cart Gold 4.7.5
Reply With Quote
  #6  
Old 09-27-2012, 12:53 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: what css code do I modify

I usually turn off the floats and absolute positioning and remove some of the extra divs, then your main container can be centered using margin:0 auto with a width.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #7  
Old 09-27-2012, 12:58 PM
 
Mike SSI Mike SSI is offline
 

Advanced Member
  
Join Date: Feb 2011
Posts: 86
 

Default Re: what css code do I modify

Yep. That's the route I'm going. But haven't found the lucky combination of id/class in which to disable floats and what not. I was hoping someone could tell me which specific class/id to focus on.
__________________
X-Cart Gold 4.7.5
Reply With Quote
  #8  
Old 09-27-2012, 01:52 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: what css code do I modify

Playing with the demo with Firebug here are the changes I made:

Code:
#page-container { width: auto; } #content-container { float: none; width: 960px; margin: 0 auto; }
It's hard to tell about margins and such with the demo header in place but this should point you in the right direction. Firebug will help you track down which changes to make.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #9  
Old 10-01-2012, 11:38 AM
 
Mike SSI Mike SSI is offline
 

Advanced Member
  
Join Date: Feb 2011
Posts: 86
 

Default Re: what css code do I modify

Cherie,
Thank you. Those css modifications appear to be exactly what I needed.
__________________
X-Cart Gold 4.7.5
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 06:14 AM.

   

 
X-Cart forums © 2001-2020