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

Lucid (2 columns) width in 4.3

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-11-2010, 08:19 AM
  acidon's Avatar 
acidon acidon is offline
 

Senior Member
  
Join Date: Feb 2008
Posts: 139
 

Default Lucid (2 columns) width in 4.3

Hi everyone!

I am trying to set a fixed width 900px for my new 2-column lucid template, clean install.

Adding width: 900px; to page-container CSS did nothing

I tried to change width in both header and footer CSS from 100% to 900px, it adjusted their width correctly, however central part is still too wide.

Then I checked left-bar CSS and noticed it has a width set as 160px, however in reality it comes out at around 200px. I tried changing its width to something else yet it still stays at 200px


Anyone encountered similar obstacle?
__________________
Version 4.7.6 X-cart Gold
Reply With Quote
  #2  
Old 01-11-2010, 08:36 AM
  gizmo's Avatar 
gizmo gizmo is offline
 

X-Adept
  
Join Date: Jan 2005
Location: Crawley : UK
Posts: 618
 

Default Re: Lucid (2 columns) width in 4.3

You Mean Like This:

http://forum.x-cart.com/attachment.php?attachmentid=1807&stc=1&d=126323119 3

/* page container */
#page-container {
min-height: 100%;
position: relative;
width:960px;
margin:0 auto;
}

/* page layout */
#content-container {
clear: both;
float: left;
overflow: hidden;
position: relative;
width: 960px;
padding-bottom: 39px;
margin-top: 140px;
background-color: #ffffff;
border-left: 1px solid #E8E8E8; border-right: 1px solid #E8E8E8;
}

#header {
height: 140px;
position: absolute !important;
top: 0px;
left: 0px;
width: 960px;
border-left: 1px solid #E8E8E8; border-right: 1px solid #E8E8E8;
background:#FFF;
}

#footer {
height: 39px;
width: 960px;
position: absolute !important;
bottom: 0;
overflow: hidden;
float: left;
}

also:
altskin.css


#page-container {
border: 0px none;
margin: 0px auto;
text-align: left;
width: 960px;
float: none;
}

I have main above is set 960 change that to your needs and everything centred.
Attached Thumbnails
Click image for larger version

Name:	lucid_960.png
Views:	362
Size:	26.3 KB
ID:	1807  
__________________
Thank You - Alan
Don't be like me, and keep saying "Nearly did it" go do it!!
Version: 4.4.4 Gold -
Reply With Quote

The following user thanks gizmo for this useful post:
Bobby P. (03-04-2010)
  #3  
Old 01-11-2010, 08:42 AM
  gizmo's Avatar 
gizmo gizmo is offline
 

X-Adept
  
Join Date: Jan 2005
Location: Crawley : UK
Posts: 618
 

Default Re: Lucid (2 columns) width in 4.3

Forget to mention mine is 3 columns, But principal is the same with 2, for setting widths etc, just don't copy all my code as I have made custom edits to other areas.

I forgot this topic as well that may help > http://forum.x-cart.com/showthread.php?t=51504
__________________
Thank You - Alan
Don't be like me, and keep saying "Nearly did it" go do it!!
Version: 4.4.4 Gold -
Reply With Quote
  #4  
Old 01-11-2010, 08:43 AM
  gizmo's Avatar 
gizmo gizmo is offline
 

X-Adept
  
Join Date: Jan 2005
Location: Crawley : UK
Posts: 618
 

Default Re: Lucid (2 columns) width in 4.3

Quote:
Originally Posted by acidon
Hi everyone!

I am trying to set a fixed width 900px for my new 2-column lucid template, clean install.

Adding width: 900px; to page-container CSS did nothing

I tried to change width in both header and footer CSS from 100% to 900px, it adjusted their width correctly, however central part is still too wide.

Then I checked left-bar CSS and noticed it has a width set as 160px, however in reality it comes out at around 200px. I tried changing its width to something else yet it still stays at 200px


Anyone encountered similar obstacle?

also:
altskin.css


#page-container {
border: 0px none;
margin: 0px auto;
text-align: left;
width: 960px;
float: none;
}
__________________
Thank You - Alan
Don't be like me, and keep saying "Nearly did it" go do it!!
Version: 4.4.4 Gold -
Reply With Quote
  #5  
Old 01-11-2010, 08:59 AM
  acidon's Avatar 
acidon acidon is offline
 

Senior Member
  
Join Date: Feb 2008
Posts: 139
 

Default Re: Lucid (2 columns) width in 4.3

Ok, I changed the width from 100% to 900px in content-container CSS and it fixed the width for whole site now.

However, I am still not able to adjust the width of left-bar CSS. Is this because of the width of the modules included in this div?
__________________
Version 4.7.6 X-cart Gold
Reply With Quote
  #6  
Old 01-11-2010, 09:04 AM
  gizmo's Avatar 
gizmo gizmo is offline
 

X-Adept
  
Join Date: Jan 2005
Location: Crawley : UK
Posts: 618
 

Default Re: Lucid (2 columns) width in 4.3

altskin.css (line 36) #

#left-bar {
margin-left:0;
width:210px;
}

Also don't forget to check and edit, for IE > altskin.IE6/altskin.IE7 so that it's cross browser proof....
And check all areas of your site after final edits, as for me on 3 columns I had to do a few more tweaks here and there to be compatible with fixed width!
__________________
Thank You - Alan
Don't be like me, and keep saying "Nearly did it" go do it!!
Version: 4.4.4 Gold -
Reply With Quote

The following user thanks gizmo for this useful post:
xplorer (01-12-2010)
  #7  
Old 01-11-2010, 09:47 AM
  acidon's Avatar 
acidon acidon is offline
 

Senior Member
  
Join Date: Feb 2008
Posts: 139
 

Default Re: Lucid (2 columns) width in 4.3

Thx for quick replies , Gizmo, gonna check those in a bit
__________________
Version 4.7.6 X-cart Gold
Reply With Quote
  #8  
Old 01-13-2010, 11:57 AM
  acidon's Avatar 
acidon acidon is offline
 

Senior Member
  
Join Date: Feb 2008
Posts: 139
 

Default Re: Lucid (2 columns) width in 4.3

Ok everything is fine now, more info here:

http://forum.x-cart.com/showthread.php?t=51720
__________________
Version 4.7.6 X-cart Gold
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 12:20 AM.

   

 
X-Cart forums © 2001-2020