Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / attribute images on same row can't work it out!

attribute images on same row can't work it out!

Locked

Views: 727

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
14 May 2010, 2:41 PM
#2
kobra avatar

kobra

Black Belt

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

Re: attribute images on same row can't work it out!

Start by cleaning up the stylesheet.css as you have several conflicting directives for .attribImg

.attribImg {float: right; clear: right; width: 320px;}

.attribImg{
float:right;
padding-right:120px;
padding-left:120px;
}

#logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
	float: left;
	}


.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;
	}

.attribImg {
	width: 20%;
	margin: 0.3em 0em;
}
14 May 2010, 3:10 PM
#3
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: attribute images on same row can't work it out!

thanks for getting back to me, where you have highlighted in red are those all the parts i should remove? I'm not too sure what to remove and what to keep if you could ellaborate I would really appreciate it.

Thank you

14 May 2010, 3:20 PM
#4
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: attribute images on same row can't work it out!

ok, i removed;
.attribImg {float: right; clear: right; width: 320px;}

.attribImg{
float:right;
padding-right:120px;
padding-left:120px;
}

and now the images appear to be on the same line but overlapping

i couldnt find;

.attribImg {
width: 20%;
margin: 0.3em 0em;
}

do i need to adjust something here?

14 May 2010, 3:33 PM
#5
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: attribute images on same row can't work it out!

ah, i think its because the margin is in the way, its squashing the images up, how can I move them down a bit so they come just under their attribute drop down? and also line up to the left so they are aligned with the option names of the drop downs.

14 May 2010, 4:09 PM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

Re: attribute images on same row can't work it out!

Su,
Edit the stylesheet.css

Change this:
.back {
float:left;}

To this:
.back {
}

14 May 2010, 4:33 PM
#7
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Re: attribute images on same row can't work it out!

ok done thank you! its put the images next to eachother but now the option names are above their dropdowns and I wanted them level with their atribute values text field or dropdown as they were before, how can i fix this now?