Forums / Templates, Stylesheets, Page Layout / Can anyone tell me why this shows up this way?

Can anyone tell me why this shows up this way?

Locked

Started by humbll on 2 Feb 2007, 5:26 PM · Views: 3,085

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
2 Feb 2007, 5:26 PM
#1
humbll avatar

humbll

Zen Follower

Join Date:
Jan 2007
Location:
USA
Posts:
219
Plugin Contributions:
0

Can anyone tell me why this shows up this way?

Grasshopper, **GOT BOOK?** - I don't, and I am constantly in here begging for help and **Donating to Zen Cart** in feeble attempts to bribe the developers for help. **Get your copy today**** and avoid my fate!**

2 Feb 2007, 9:06 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Can anyone tell me why this shows up this way?

This is in tpl_product_info_display.php and then a bit of css

Zen-Venom Get Bitten

2 Feb 2007, 10:49 PM
#3
humbll avatar

humbll

Zen Follower

Join Date:
Jan 2007
Location:
USA
Posts:
219
Plugin Contributions:
0

Re: Can anyone tell me why this shows up this way?

kobra:

This is in tpl_product_info_display.php and then a bit of css

Ok, i know nothing about css, so could someone please elaborate? i know it can't be that difficult for someone who is familiar with this stuff...

Grasshopper, **GOT BOOK?** - I don't, and I am constantly in here begging for help and **Donating to Zen Cart** in feeble attempts to bribe the developers for help. **Get your copy today**** and avoid my fate!**

3 Feb 2007, 12:07 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Can anyone tell me why this shows up this way?

http://www.w3schools.com/

Post a url for assistance as many of us will not even post if there is not a site to see live.
pics only show the problem and do not lead to the solution

Zen-Venom Get Bitten

3 Feb 2007, 2:52 AM
#5
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Can anyone tell me why this shows up this way?

humbll:

Ok, i know nothing about css, so could someone please elaborate? i know it can't be that difficult for someone who is familiar with this stuff...

Yep, I'd have to see the 'real' page to help.

3 Feb 2007, 6:34 AM
#6
humbll avatar

humbll

Zen Follower

Join Date:
Jan 2007
Location:
USA
Posts:
219
Plugin Contributions:
0

Re: Can anyone tell me why this shows up this way?

kobra:

http://www.w3schools.com/

Post a url for assistance as many of us will not even post if there is not a site to see live.
pics only show the problem and do not lead to the solution

Sorry about that, here is the link:
http://www.rda-enterprises.com/catalog/index.php?main_page=product_info&cPath=1_69&products_id=197

Grasshopper, **GOT BOOK?** - I don't, and I am constantly in here begging for help and **Donating to Zen Cart** in feeble attempts to bribe the developers for help. **Get your copy today**** and avoid my fate!**

3 Feb 2007, 4:39 PM
#7
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Can anyone tell me why this shows up this way?

humbll:

Sorry about that, here is the link:
http://www.rda-enterprises.com/catalog/index.php?main_page=product_info&cPath=1_69&products_id=197

Ok, to remove some of the spacing, without having to do any rearranging in the template, you can change ".wrapperAttribsOptions" in your stylesheet to this:

.wrapperAttribsOptions {
margin: 0;
}

Then change "#cartAdd" to this:

#cartAdd {
float: right;
text-align: center;
margin: 0;
border: 1px solid #000000;
padding: 1em;
}

Changing the "padding:1em;" to "padding:0" will remove even more space, however then you lose the padding for the cart box, however if you also remove the border:1px solid #000000; it would look fine.

4 Feb 2007, 5:24 PM
#8
humbll avatar

humbll

Zen Follower

Join Date:
Jan 2007
Location:
USA
Posts:
219
Plugin Contributions:
0

Re: Can anyone tell me why this shows up this way?

jettrue:

Ok, to remove some of the spacing, without having to do any rearranging in the template, you can change ".wrapperAttribsOptions" in your stylesheet to this:

.wrapperAttribsOptions {
margin: 0;
}

Then change "#cartAdd" to this:

#cartAdd {
float: right;
text-align: center;
margin: 0;
border: 1px solid #000000;
padding: 1em;
}

Changing the "padding:1em;" to "padding:0" will remove even more space, however then you lose the padding for the cart box, however if you also remove the border:1px solid #000000; it would look fine.

Ok I did all of that to /htdocs/catalog/includes/templates/RDA_zen/css/stylesheet.css
and it had absolutely no effect whatsoever. Did i modify the wrong file?

Grasshopper, **GOT BOOK?** - I don't, and I am constantly in here begging for help and **Donating to Zen Cart** in feeble attempts to bribe the developers for help. **Get your copy today**** and avoid my fate!**

4 Feb 2007, 6:26 PM
#9
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Can anyone tell me why this shows up this way?

humbll:

Ok I did all of that to /htdocs/catalog/includes/templates/RDA_zen/css/stylesheet.css
and it had absolutely no effect whatsoever. Did i modify the wrong file?

You have to actually REPLACE the #cartAdd and .wrapperAttribsOptions that are already there. Right now you have both the old and the new, so its using the old.

4 Feb 2007, 10:29 PM
#10
humbll avatar

humbll

Zen Follower

Join Date:
Jan 2007
Location:
USA
Posts:
219
Plugin Contributions:
0

Re: Can anyone tell me why this shows up this way?

jettrue:

You have to actually REPLACE the #cartAdd and .wrapperAttribsOptions that are already there. Right now you have both the old and the new, so its using the old.

I did exactly what you said, here is the first section:

font-size: 0.9em;
}
/Shopping Cart Display/
#cartAdd {
float: right;
text-align: center;
margin: 0;
border: 1px solid #000000;
padding: 0;
}

.tableHeading TH {
border-bottom: 1px solid #cccccc;
}
.tableHeading, #cartSubTotal {
background-color: #e9e9e9;
}
#cartSubTotal {
border-top: 1px solid #cccccc;
font-weight: bold;
text-align: right;
line-height: 2.2em;
padding-right: 2.5em;
}
.tableRow, .tableHeading, #cartSubTotal {
height: 2.2em;
}
.cartProductDisplay, .cartUnitDisplay, .cartTotalDisplay, .cartRemoveItemDisplay, .cartQuantityUpdate, .cartQuantity, #cartInstructionsDisplay, .cartTotalsDisplay {
padding: 0.5em 0em;
}
.cartUnitDisplay, .cartTotalDisplay {
text-align: right;
padding-right: 0.2em;
}
#scUpdateQuantity {
width: 2em;
}
.cartQuantity {
width: 4.7em;
}
.cartNewItem {
color: #33CC33;
position: relative; /do not remove-fixes stupid IEbug/
}
.cartOldItem {
color: #660099;
position: relative; /do not remove-fixes stupid IEbug/
}
.cartBoxTotal {
text-align: right;
font-weight: bold;
}
.cartRemoveItemDisplay {
width: 3.5em;
}
#cartAttribsList { /* for Zen Cart version 1.3.0 - 1.3.0.2 */
margin-left: 1em;
}

.cartAttribsList { //* for Zen Cart versions 1.3.5+ */
margin-left: 1em;
}
#mediaManager {

HERE IS THE SECOND SECTION:

}
.wrapperAttribsOptions {
margin: 0;
}

/navigation/
.navNextPrevCounter {
margin: 0em;
font-size: 0.9em;
}
.navNextPrevList {
display: inline;
white-space: nowrap;
margin: 0;
padding: 0.5em 0em;
list-style-type: none;
}
#navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
margin: 0em;
background-color: #E5EDF5;
font-weight: bold;
color: #ffffff;
height: 1%;
width: 100%;
}
#navMain ul, #navSupp ul, #navCatTabs ul {
margin: 0;
padding: 0.5em 0em;
list-style-type: none;
text-align: center;
line-height: 1.5e

HERE IS THE ENTIRE CONTENTS OF THE STYLESHEET.CSS:

/**

  • Main CSS Stylesheet
  • @package templateSystem
  • @copyright Copyright 2003-2005 Zen Cart Development Team
  • @copyright Portions Copyright 2003 osCommerce
  • @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  • @version $Id: stylesheet.css 3215 2006-03-20 06:05:55Z birdbrain $
    */
    body {
    margin: 0;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 62.5%;
    color: #000000;
    background-color: #e5edf5;
    }
    a img {border: none; }
    a:link, #navEZPagesTOC ul li a {
    color: #3300FF;
    text-decoration: none;
    }

a:visited {
color: #3300FF;
text-decoration: none;
}
a:hover, #navEZPagesTOC ul li a:hover, #navMain ul li a:hover, #navSupp ul li a:hover, #navCatTabs ul li a:hover {
color: #FF0000;
}
a:active {
color: #0000FF;
}
h1 {
font-size: 1.5em;
}
h2 {
font-size: 1.4em;
}
h3 {
font-size: 1.3em;
}
h4, h5, h6, LABEL, h4.optionName, LEGEND, ADDRESS, .sideBoxContent, .larger{
font-size: 1.1em;
}
.biggerText {
font-size: 1.2em;
}
h1, h2, h3, h4, h5, h6 {
margin: 0.3em 3px;
}
CODE {
font-family: arial, verdana, helvetica, sans-serif;
font-size: 1em;
}
FORM, SELECT, INPUT {
display: inline;
font-size: 1em;
margin: 0.1em;
}
TEXTAREA {
margin: auto;
display:block;
width: 98%;
}
input:focus, select:focus, textarea:focus {
background: #F0F8FF;
}
FIELDSET {
padding: 0.5em;
margin: 0.5em 0em;
border: 1px solid #cccccc;
}
LEGEND {
font-weight: bold;
padding: 0.3em;
}
LABEL, h4.optionName {
line-height: 1.5em;
padding: 0.2em;
}
LABEL.checkboxLabel, LABEL.radioButtonLabel {
margin: 0.5em 0.3em;
}
.centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
float: left;
}
LABEL.inputLabel {
width: 11em;
float: left;
}
LABEL.inputLabelPayment {
width: 15em;
float: left;
}
LABEL.selectLabel, LABEL.switchedLabel, LABEL.uploadsLabel {
width: 12em;
float: left;
}
P, ADDRESS {
padding: 0.5em;
}
ADDRESS {
font-style: normal;
}
.clearBoth {
clear: both;
}
HR {
height: 1px;
margin-top: 0.5em;
border: none;
border-bottom: 1px solid #9a9a9a;
}
/warnings, errors, messages/
.messageStackWarning, .messageStackError, .messageStackSuccess, .messageStackCaution {
line-height: 1.8em;
padding: 0.2em;
border: 1px solid #000000;
}
.messageStackWarning, .messageStackError {
background-color: #ff0000;
color: #ffffff;
}
.messageStackSuccess {
background-color: #99FF99;
color: #000000;
}
.messageStackCaution {
background-color: #FFFF66;
color: #000000;
}
/wrappers - page or section containers/
#mainWrapper {
background-color: #e5edf5;
text-align: left;
width: 75%;
vertical-align: top;
}
#headerWrapper, #contentMainWrapper, #cartBoxListWrapper, #ezPageBoxList, #cartBoxListWrapper ul, #ezPageBoxList ul, #mainWrapper, #popupAdditionalImage, #popupImage {
margin: 0em;
padding: 0em;
}
#logoWrapper {
width:100%;
height:105px;
background-image:url(../images/header_bg.jpg);
background-repeat:no-repeat;
background-position:center;
text-align:center;
padding-top:5px;
}
#navColumnOneWrapper, #navColumnTwoWrapper, #mainWrapper {
margin: auto;
}
#taglineWrapper {
width:100%;
}

#tagline {
color:#000000;
font-size: 2em;
text-align: center;
padding:5px 450px 0 0;
}
#sendSpendWrapper {
border: 1px solid #cacaca;
float: right;
margin: 0em 0em 1em 1em;
}
.floatingBox, #accountLinksWrapper, #sendSpendWrapper, #checkoutShipto, #checkoutBillto, #navEZPagesTOCWrapper {
margin: 0;
width: 47%;
}
.wrapperAttribsOptions {
margin: 0;
}

/navigation/
.navNextPrevCounter {
margin: 0em;
font-size: 0.9em;
}
.navNextPrevList {
display: inline;
white-space: nowrap;
margin: 0;
padding: 0.5em 0em;
list-style-type: none;
}
#navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
margin: 0em;
background-color: #E5EDF5;
font-weight: bold;
color: #ffffff;
height: 1%;
width: 100%;
}
#navMain ul, #navSupp ul, #navCatTabs ul {
margin: 0;
padding: 0.5em 0em;
list-style-type: none;
text-align: center;
line-height: 1.5em;
}
#navMain ul li, #navSupp ul li, #navCatTabs ul li {
display: inline;
}
#navMain ul li a, #navSupp ul li a, #navCatTabs ul li a {
text-decoration: none;
padding: 0em 0.5em;
margin: 0;
color: #3300ff;
white-space: nowrap;
}
#navEZPagesTOCWrapper {
font-weight: bold;
float: right;
height: 1%;
border: 1px solid #000000;
}
#navEZPagesTOC ul {
margin: 0;
padding: 0.5em 0em;
list-style-type: none;
line-height: 1.5em;
}
#navEZPagesTOC ul li {
white-space: nowrap;
}
#navEZPagesTOC ul li a {
padding: 0em 0.5em;
margin: 0;
}
#navCategoryIcon, .buttonRow, #indexProductListCatDescription {
margin: 0.5em;
}
#navMainSearch {
float: right;
}
#navBreadCrumb {
margin-top:16px;
font-size: 0.95em;
font-weight: bold;
padding: 0.5em 0 0.5em 1.5em;
}
#navEZPagesTop {
background-image:url(../images/link_cap_right.gif);
background-repeat:no-repeat;
background-position:bottom right;
font-size: 0.95em;
font-weight: bold;
margin: 0em;
padding: 0.5em 0 0.5em 1.5em;
}

#headerWrapper {
background-image:url(../images/link_cap_left.gif);
background-repeat:no-repeat;
background-position:bottom left;
}
#navColumnOne, #navColumnTwo {
background-color: #E5EDF5;
}

/The main content classes/
#contentColumnMain, #navColumnOne, #navColumnTwo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew, .alert {
vertical-align: top;
}
/.content,/ #productDescription, .shippingEstimatorWrapper {
/font-size: 1.2em;/
padding: 0.5em;
}
.alert {
color: #FF0000;
margin-left: 0.5em;
}
.important {
font-weight: bold;
}
.gvBal {
float: right;
}
.centerColumn, #bannerOne, #bannerTwo, #bannerThree, #bannerFour, #bannerFive, #bannerSix {
padding: 0.8em;
}
.smallText, #siteinfoLegal, #siteinfoCredits, #siteinfoStatus, #siteinfoIP {
font-size: 0.9em;
}
/Shopping Cart Display/
#cartAdd {
float: right;
text-align: center;
margin: 0;
border: 1px solid #000000;
padding: 0;
}

.tableHeading TH {
border-bottom: 1px solid #cccccc;
}
.tableHeading, #cartSubTotal {
background-color: #e9e9e9;
}
#cartSubTotal {
border-top: 1px solid #cccccc;
font-weight: bold;
text-align: right;
line-height: 2.2em;
padding-right: 2.5em;
}
.tableRow, .tableHeading, #cartSubTotal {
height: 2.2em;
}
.cartProductDisplay, .cartUnitDisplay, .cartTotalDisplay, .cartRemoveItemDisplay, .cartQuantityUpdate, .cartQuantity, #cartInstructionsDisplay, .cartTotalsDisplay {
padding: 0.5em 0em;
}
.cartUnitDisplay, .cartTotalDisplay {
text-align: right;
padding-right: 0.2em;
}
#scUpdateQuantity {
width: 2em;
}
.cartQuantity {
width: 4.7em;
}
.cartNewItem {
color: #33CC33;
position: relative; /do not remove-fixes stupid IEbug/
}
.cartOldItem {
color: #660099;
position: relative; /do not remove-fixes stupid IEbug/
}
.cartBoxTotal {
text-align: right;
font-weight: bold;
}
.cartRemoveItemDisplay {
width: 3.5em;
}
#cartAttribsList { /* for Zen Cart version 1.3.0 - 1.3.0.2 */
margin-left: 1em;
}

.cartAttribsList { //* for Zen Cart versions 1.3.5+ */
margin-left: 1em;
}
#mediaManager {
width: 50%;
margin: 0.2em;
padding: 0.5em;
}
.normalprice, .productSpecialPriceSale {
text-decoration: line-through;
}
.productSpecialPrice, .productSalePrice, .productSpecialPriceSale, .productPriceDiscount {
color: #ff0000;
}
#cartBoxListWrapper ul, #ezPageBoxList ul {
list-style-type: none;
}
#cartBoxListWrapper li, #ezPageBoxList li, .cartBoxTotal {
margin: 0;
padding: 0.2em 0em;
}
.totalBox {
width: 5.5em;
text-align: right;
padding: 0.2em;
}
.lineTitle, .amount {
text-align: right;
padding: 0.2em;
}
.amount {
width: 5.5em;
}
/Image Display/
#productMainImage, #reviewsInfoDefaultProductImage, #productReviewsDefaultProductImage, #reviewWriteMainImage {
margin: 0em 1em 1em 0em ;
}
#cartImage {
margin: 0.5em 1em;
}
/Attributes/
.attribImg {
width: 20%;
margin: 0.3em 0em;
}
/list box contents/
.centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew {
margin: 1em 0em;
}
/sideboxes/
h3.leftBoxHeading, h3.leftBoxHeading a, h3.leftBoxHeading label, h3.rightBoxHeading, h3.rightBoxHeading a, h3.rightBoxHeading label {
font-size: 1em;
color: #ffffff;
}

h3.leftBoxHeading a:hover, h3.rightBoxHeading a:hover{
color: #FFFF33;
text-decoration: none;
}
.leftBoxHeading, .rightBoxHeading {
margin: 0;
background-image:url(../images/sidebox_header_bg.gif);
background-repeat:no-repeat;
padding: 0.5em 0.2em;
}
.centerBoxWrapper {
margin: 0;
background-image:url(../images/title_cap_left.gif);
background-repeat:no-repeat;
background-position:top left;
}
.centerBoxHeading {
margin: 0;
height:32px;
background-image:url(../images/title_cap_right.gif);
background-repeat:no-repeat;
background-position:top right;
padding: 0.5em 0.2em;
}
.leftBoxContainer, .rightBoxContainer {
margin-top: 1.5em;
}
.sideBoxContent {
background-image:url(../images/sidebox_content_bg.gif);
background-repeat:no-repeat;
background-position:bottom;
padding: 0.8em;
}
.centeredContent, TH, #cartEmptyText, #cartBoxGVButton, #cartBoxEmpty, #cartBoxVoucherBalance, #navCatTabsWrapper, #navEZPageNextPrev, #bannerOne, #bannerTwo, #bannerThree, #bannerFour, #bannerFive, #bannerSix, #siteinfoLegal, #siteinfoCredits, #siteinfoStatus, #siteinfoIP, .center, .cartRemoveItemDisplay, .cartQuantityUpdate, .cartQuantity, .cartTotalsDisplay, #cartBoxGVBalance, .leftBoxHeading, .centerBoxHeading,.rightBoxHeading, .productListing-data, .accountQuantityDisplay, .ratingRow, LABEL#textAreaReviews, #productMainImage, #reviewsInfoDefaultProductImage, #productReviewsDefaultProductImage, #reviewWriteMainImage, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew, .gvBal, .attribImg {
text-align: center;
}
.productListing-data, .navSplitPagesResult {
padding: 10px 0;
}
#cartBoxEmpty, #cartBoxVoucherBalance {
font-weight: bold;
}
#bestsellers .wrapper {
margin: 0em 0em 0em 1.5em;
}
#bestsellers ol {
padding: 0;
margin-left: 1.1em;
}
#bestsellers li {
padding: 0;
margin: 0.3em 0em 0.3em 0em;
}
.orderHistList {
margin: 1em;
padding: 0.2em 0em;
}
#bannerboxHeading {
background-color: #0000CC;
}
#upProductsHeading {
text-align: left;
}
#upDateHeading {
text-align: right;
}
/misc/
.back {
float: left;
}
.forward {
float: right;
}
.bold {
font-weight: bold;
}
.rowOdd {
background-color: #E8E8E8;
height: 1.5em;
vertical-align: top;
}
.rowEven {
background-color: #F0F0F0;
height: 1.5em;
vertical-align: top;
}
.hiddenField {
display: none;
}
.visibleField {
display: inline;
}

CAPTION {
/display: none;/
}
#myAccountGen li, #myAccountNotify li {
margin: 0;
}
.accountTotalDisplay, .accountTaxDisplay {
width: 20%;
text-align: right;
/vertical-align: top/
}
.accountQuantityDisplay {
width: 10%;
vertical-align: top
}
TR.tableHeading {
background-color: #cacaca;
height: 2em;
}
#siteMapList {
width: 90%;
float: right;
}
.ratingRow {
margin: 1em 0em 1.5em 0em;
}
LABEL#textAreaReviews {
font-weight: normal;
margin: 1em 0em;
}
#popupShippingEstimator, #popupSearchHelp, #popupAdditionalImage, #popupImage, #popupCVVHelp, #popupCouponHelp, #popupAtrribsQuantityPricesHelp {
background-color: #ffffff;
}

Grasshopper, **GOT BOOK?** - I don't, and I am constantly in here begging for help and **Donating to Zen Cart** in feeble attempts to bribe the developers for help. **Get your copy today**** and avoid my fate!**

5 Feb 2007, 1:42 PM
#12
humbll avatar

humbll

Zen Follower

Join Date:
Jan 2007
Location:
USA
Posts:
219
Plugin Contributions:
0

Re: Can anyone tell me why this shows up this way?

jettrue:

Please delete stylsheet_OLD.css from the server.

OK now that made it change, still not perfect but much better! Thank you so much! I wonder why the old stylesheet would have an effect on it like that? one of those quirks of programming i guess...

again, many thanks...

Grasshopper, **GOT BOOK?** - I don't, and I am constantly in here begging for help and **Donating to Zen Cart** in feeble attempts to bribe the developers for help. **Get your copy today**** and avoid my fate!**

5 Feb 2007, 2:11 PM
#13
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Can anyone tell me why this shows up this way?

humbll:

OK now that made it change, still not perfect but much better! Thank you so much! I wonder why the old stylesheet would have an effect on it like that? one of those quirks of programming i guess...

again, many thanks...

No, not a quirk, the way zen cart works. If a stylesheet_*.css file is on the server in the correct folder, then zen cart will use it. That way, people can have more than one stylesheet.