Zen Cart Logo

centerBoxHeading

Locked

Views: 1,227

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
13 Mar 2009, 5:13 PM
#1
alfa avatar

alfa

New Zenner

Join Date:
Oct 2008
Posts:
28
Plugin Contributions:
0

centerBoxHeading

I try to get 3 pictures in centerBoxHeading.
it works in IE but not in FF
All products move to the right in Firefox.

What do i needs to change.

Link
http://shop.se/zen/zengrund10/index.php?main_page=index&cPath=3_10

i have change in includes/modules/new_products.php

  if ($new_products->RecordCount() > 0) {
    if (isset($new_products_category_id) && $new_products_category_id != 0) {
      $category_title = zen_get_categories_name((int)$new_products_category_id);
      $title = '<div class="centerBoxHeadingLeft">p</div><h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . ($category_title != '' ? ' - ' . $category_title : '' ) . '</h2><div class="centerBoxHeadingRight">f</div>';
    } else {
      $title = '<div class="centerBoxHeadingLeft">p</div><h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . '</h2><div class="centerBoxHeadingRight">f</div>';
    }
    $zc_show_new_products = true;
  }
}

and in stylesheet.css i put in .centerBoxHeadingLeft and .centerBoxHeadingRight

.centerBoxHeadingLeft {
  	margin: 0em;
	background-color: #abbbd3;
	background-image: url(../images/tile_back.gif);
    float: left;
    width: 20px;
    height: 20px;
}

.centerBoxHeading {
  	margin: 0em;
	background-color: #abbbd3;
	background-image: url(../images/tile_back.gif);
    height: 20px;
    width: 300px;
    float: left;
}

.centerBoxHeadingRight {
  	margin: 0em;
	background-color: #abbbd3;
	background-image: url(../images/tile_back.gif);
    width: 20px;
    height: 20px;
    float: right;
}
14 Mar 2009, 3:40 PM
#3
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: centerBoxHeading

.centerBoxHeading {stylesheet.css (line 561)
background-color:#ABBBD3;
background-image:url(../images/tile_back.gif);
float:left; << remove this
height:20px;
margin:0;
width:372px;
}

i don't know what editor you used to modify your site , but centerbox headings contain letter "f" and "p" in right and left side

something might have been changed during modification