Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Attribute Images Misaligned

Attribute Images Misaligned

Views: 741

Results 1 to 7 of 7
13 Jul 2012, 8:10 AM
#1
khmom2007 avatar

khmom2007

New Zenner

Join Date:
Jul 2012
Posts:
3
Plugin Contributions:
0

Attribute Images Misaligned

How can I get the top three pictures in the line with the other five? Thanks in advance...

13 Jul 2012, 9:27 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Attribute Images Misaligned

We'll need a link to the site.

13 Jul 2012, 11:54 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Attribute Images Misaligned

Yes... a link will let us manipulate your CSS.

It COULD be that you need a small edit in your tpl_product_info_display.php file

EDIT - SORRY, wrong advice given... will post correction shortly

20 years a Zencart User

13 Jul 2012, 11:58 AM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Attribute Images Misaligned

If you have a CUSTOM over-ride file for tpl_product_info_display.php, then you could try this:

(If you don't have an over-ride file yet, just copy the CORE file into your custom template's override folder)

FIND:

<!--bof Attributes Module -->
<?php
  if ($pr_attr->fields['total'] > 0) {
?>
<?php
/**
 * display the product atributes
 */
  require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
<?php
  }
?>
<!--eof Attributes Module -->

MAKE THE INDICATED EDIT

<br class="clearBoth" />

<!--bof Attributes Module -->
<?php
  if ($pr_attr->fields['total'] > 0) {
?>
<?php
/**
 * display the product atributes
 */
  require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
<?php
  }
?>
<!--eof Attributes Module -->

20 years a Zencart User

22 Jul 2012, 6:06 AM
#5
khmom2007 avatar

khmom2007

New Zenner

Join Date:
Jul 2012
Posts:
3
Plugin Contributions:
0

Re: Attribute Images Misaligned

schoolboy:

If you have a CUSTOM over-ride file for tpl_product_info_display.php, then you could try this:

(If you don't have an over-ride file yet, just copy the CORE file into your custom template's override folder)

FIND:

<!--bof Attributes Module --> <?php if ($pr_attr->fields['total'] > 0) { ?> <?php /** * display the product atributes */ require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?> <?php } ?> <!--eof Attributes Module -->
> 
> MAKE THE INDICATED EDIT
> ```php
<br class="clearBoth" />

<!--bof Attributes Module -->
<?php
  if ($pr_attr->fields['total'] > 0) {
?>
<?php
/**
 * display the product atributes
 */
  require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
<?php
  }
?>
<!--eof Attributes Module -->

Did this and it did not work.

Here is a link. http://www.mylittlelulubee.com/index.php?main_page=product_info&cPath=1_80&products_id=185

22 Jul 2012, 10:24 AM
#6
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: Attribute Images Misaligned

In your stylesheet.css line 48

Change this

.wrapperAttribsOptions {
margin: 0.3em 0;
}

to

.wrapperAttribsOptions {
margin: 1.5em 0;
}

or

.wrapperAttribsOptions {
margin: 15px 0;
}

your can use higher values than 1.5 and 15 if you want.

20 Sep 2012, 6:17 PM
#7
khmom2007 avatar

khmom2007

New Zenner

Join Date:
Jul 2012
Posts:
3
Plugin Contributions:
0

Re: Attribute Images Misaligned

keneso:

In your stylesheet.css line 48

Change this

.wrapperAttribsOptions {
margin: 0.3em 0;
}

to

.wrapperAttribsOptions {
margin: 1.5em 0;
}

or

.wrapperAttribsOptions {
margin: 15px 0;
}

your can use higher values than 1.5 and 15 if you want.

THANKS, that worked well. Again Thanks!!!!