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

Alignment problems dialog.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-30-2008, 09:04 AM
 
KeithXtreme KeithXtreme is offline
 

Advanced Member
  
Join Date: Mar 2008
Location: Oklahoma
Posts: 46
 

Default Alignment problems dialog.tpl

I am having some issues with alignment, dealing with the dialog.tpl...I think that is where the problem is.
Here is the URL: http://www.xrschassisinc.com/home.php?shopkey=xtreme

First, I have an over background for the site. Then I have a background for just the center. The site is a fixed width and height.

No matter what I try, I cannot get the center product boxes, either featured...product listing or product detail to push into or pad into the center back ground....

And no matter what, like on the featured. or porducts page I cannot remove a 10px border from the dialog.tpl

I have done the CSS changes balinor suggested with the dialogn and css sheet.....

Any help?
__________________
http://www.chopworx.com
Gold Version 4.1.11
Fancy Categories
Shipper Per Product
Featured Products
Gallery V3
Store Manager
Reply With Quote
  #2  
Old 03-30-2008, 09:38 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Alignment problems dialog.tpl

Hi KeithXtreme,

Quote:
Originally Posted by KeithXtreme
No matter what I try, I cannot get the center product boxes, either featured...product listing or product detail to push into or pad into the center back ground....

Sorry, I'm a little unclear by this, is it possible to elaborate? Or post a piccie up with the effect you want?

Quote:
Originally Posted by KeithXtreme
And no matter what, like on the featured. or porducts page I cannot remove a 10px border from the dialog.tpl

The 10px border you refer to maybe from the main table that has applied cellspacing="10" to it. This applies to both featured products and product-listed pages
__________________
Doms
kube v4.1.9
Reply With Quote
  #3  
Old 03-30-2008, 09:49 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Alignment problems dialog.tpl

For the div that we surrounded featured products with earlier you can remove cellspacing like so...

.DialogBoxOff .DialogBox TABLE {
border-spacing:0;
}

But it's better to manually rid that cellspacing within the .tpl's tables as this cannot be applied to product-listed pages as they aren't defined uniquely for css to work with.
__________________
Doms
kube v4.1.9
Reply With Quote
  #4  
Old 03-30-2008, 09:52 AM
 
KeithXtreme KeithXtreme is offline
 

Advanced Member
  
Join Date: Mar 2008
Location: Oklahoma
Posts: 46
 

Default Re: Alignment problems dialog.tpl

That cell spacing controls how close each one of the boxes are to each other....even with it out it still have that edge...

I uploaded 3 jpgs and marked them in red where the problem is...... On the right side the product box always wants to go to the edge of the center backround, when I give it padding ti does nothing....
Attached Thumbnails
Click image for larger version

Name:	Picture-2.jpg
Views:	275
Size:	47.1 KB
ID:	857  Click image for larger version

Name:	Picture-3.jpg
Views:	284
Size:	43.9 KB
ID:	858  Click image for larger version

Name:	Picture-4.jpg
Views:	284
Size:	44.2 KB
ID:	859  
__________________
http://www.chopworx.com
Gold Version 4.1.11
Fancy Categories
Shipper Per Product
Featured Products
Gallery V3
Store Manager
Reply With Quote
  #5  
Old 03-30-2008, 09:57 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Alignment problems dialog.tpl

Cheers for that. Disregard my previous posts then. I'll have a looksee.
__________________
Doms
kube v4.1.9
Reply With Quote
  #6  
Old 03-30-2008, 09:59 AM
 
KeithXtreme KeithXtreme is offline
 

Advanced Member
  
Join Date: Mar 2008
Location: Oklahoma
Posts: 46
 

Default Re: Alignment problems dialog.tpl

Quote:
Originally Posted by kube
For the div that we surrounded featured products with earlier you can remove cellspacing like so...

.DialogBoxOff .DialogBox TABLE {
border-spacing:0;
}

But it's better to manually rid that cellspacing within the .tpl's tables as this cannot be applied to product-listed pages as they aren't defined uniquely for css to work with.

That also took out the spacing between the product boxes........I want the Home page to look like all the boxes, menus.....etc all have 10px around them...

but first just everything to line up in the center background would be great......
__________________
http://www.chopworx.com
Gold Version 4.1.11
Fancy Categories
Shipper Per Product
Featured Products
Gallery V3
Store Manager
Reply With Quote
  #7  
Old 03-30-2008, 10:07 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Alignment problems dialog.tpl

Think I located the overflowing prob...

In skin1/customer/home.tpl locate something similar to this...

<!-- main area -->
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="VertMenuLeftColumn">

and change the width from percent to pixels (in this I changed it to 870)...

<!-- main area -->
<table width="870" cellpadding="0" cellspacing="0">
<tr>
<td class="VertMenuLeftColumn">

Hope this helps.
__________________
Doms
kube v4.1.9
Reply With Quote
  #8  
Old 03-30-2008, 10:11 AM
 
KeithXtreme KeithXtreme is offline
 

Advanced Member
  
Join Date: Mar 2008
Location: Oklahoma
Posts: 46
 

Default Re: Alignment problems dialog.tpl

Thats working, I will have to test later wife is yelling at me.....LOL
__________________
http://www.chopworx.com
Gold Version 4.1.11
Fancy Categories
Shipper Per Product
Featured Products
Gallery V3
Store Manager
Reply With Quote
  #9  
Old 03-30-2008, 10:12 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Alignment problems dialog.tpl

hehe ;D
__________________
Doms
kube v4.1.9
Reply With Quote
  #10  
Old 03-30-2008, 10:20 AM
  kube's Avatar 
kube kube is offline
 

X-Adept
  
Join Date: Sep 2005
Location: London: a small place East of Wales
Posts: 529
 

Default Re: Alignment problems dialog.tpl

Just another note: There maybe a few other instances where the main table needs absolute widths too. One I noticed was the 'printable version' button table/row.

And leave as much room as possible for the breadcrumbs for when the location line gets very long. It wraps ugly otherwise.

Hope this helps.
__________________
Doms
kube v4.1.9
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:03 AM.

   

 
X-Cart forums © 2001-2020