Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Eliminating wrap-arounds

Eliminating wrap-arounds

Views: 41,465

Results 81 to 100 of 166
5 Aug 2008, 8:58 PM
#81
monkeypeach avatar

monkeypeach

New Zenner

Join Date:
Jul 2008
Posts:
44
Plugin Contributions:
0

Eliminating wrap-arounds

Is there a way of controlling the height of the description box, so the add cart box will lie directly under it no matter how long the product description text is?

5 Aug 2008, 11:50 PM
#82
monkeypeach avatar

monkeypeach

New Zenner

Join Date:
Jul 2008
Posts:
44
Plugin Contributions:
0

Re: Eliminating wrap-arounds

Also just tested my site on IE browser and the layout is all over the place, and multiple images don't show. Anyone else have problems with IE?

6 Aug 2008, 12:27 AM
#84
monkeypeach avatar

monkeypeach

New Zenner

Join Date:
Jul 2008
Posts:
44
Plugin Contributions:
0

Re: Eliminating wrap-arounds

Yes.

I removed the css stylesheet, and everything was fine though. So there must me something wrong with it. Can you spot anything:

/beginning of Product Display code/
#productImageWrapper {
float: left;
width: 120px;
}

#productDescriptionWrapper {
width: 320px;
margin-left: 380px;
background-color: #FFFFF;
}

#productAdditionalImages .additionalImages a {
float: left;
margin-left: 10px;
}
/* end of Product Display code */

http://monkeypeach.co.uk/index.php?main_page=product_info&cPath=7&products_id=12

6 Aug 2008, 1:22 AM
#85
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Eliminating wrap-arounds

The stylesheet is there for your convenience, as an example.
It is clear from the instructions that you have to customize it.
It is just something that works on my site, it might not work in yours.
However, the selectors that you have to use are there, just play around with the values.

6 Aug 2008, 1:26 AM
#86
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Eliminating wrap-arounds

margin-left: 380px;

value in included stylesheet is 120px;
380 seems way overblown.

6 Aug 2008, 2:28 AM
#87
monkeypeach avatar

monkeypeach

New Zenner

Join Date:
Jul 2008
Posts:
44
Plugin Contributions:
0

Re: Eliminating wrap-arounds

I guess I'll have to use another way of getting the additional images under the main pic.

380 isn't overblown when you consider how small your main image is to mine. ;) It would overlap otherwise.

6 Aug 2008, 2:39 AM
#88
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Eliminating wrap-arounds

You can make a thumbnail of large image and a link to it, or use Lightbox as I do.
Try clicking on any main image in my site and you will see what I mean.

12 Aug 2008, 2:56 PM
#89
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Eliminating wrap-arounds

#productImageWrapper {
float: left;
width: 120px;
}

If you need 380px of margin to clear your main image, limiting the image wrapper to 120px is likely to cause problems.

13 Aug 2008, 2:59 PM
#90
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Eliminating wrap-arounds

gjh42:

#productimagewrapper {
float: Left;
width: 120px;
}

if you need 380px of margin to clear your main image, limiting the image wrapper to 120px is likely to cause problems.

welcome back!!

26 Sep 2008, 11:40 PM
#92
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Eliminating wrap-arounds

kpeer410:

Hi,

I installed this mod but my product description fall below the pics in IE how can I fix that. Here is the preview page:

http://localautonj.com/zencart/index.php?main_page=product_info&cPath=1_2&products_id=6
Try commenting out line 72 of tpl_product_info_display.php, like so:
/* <br class="clearBoth" /> */
Let me know the outcome, please.
There's another one on line 113, try that one too.

27 Sep 2008, 12:30 AM
#93
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Eliminating wrap-arounds

One more thing: I am pulling the class "clearboth" from the main stylesheet; if you tweaked the stylesheet, and the class isn't there, it won't work.
You might want to use HTML instead, like so:
<br clear="both" />

27 Sep 2008, 3:34 PM
#94
kpeer410 avatar

kpeer410

New Zenner

Join Date:
Sep 2008
Posts:
6
Plugin Contributions:
0

Re: Eliminating wrap-arounds

I commented out both lines and still the same.

27 Sep 2008, 4:47 PM
#95
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Eliminating wrap-arounds

kpeer410:

I commented out both lines and still the same.
The only thing that can cause that effect is the <br /> tag, discussed above.
Try using the html version, or reuploading the template to your site, maybe it got corrupt over ftp transfer.
Please post your main CSS, additional images CSS, and template you are using in a zip file here, so I might take a look.
Thanks.

27 Sep 2008, 5:03 PM
#96
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Eliminating wrap-arounds

I haven't used this Mod but in checking code for the page mentioned, I can see there are coding errors in the UL that should be corrected.

Incorrect

<ul><br /><li>Vehicle Make: Ford<br /><li>Vehicle Model: Explorer<br /><li> ...

Correct

<ul><li>Vehicle Make: Ford</li><li>Vehicle Model: Explorer</li><li> ...

After that, if IE is still giving you problems, see if you can make the width of your id="productDescription" DIV smaller. Right now it is 320px which might be too wide for IE. Try 300px and see what happens.

27 Sep 2008, 8:16 PM
#97
kpeer410 avatar

kpeer410

New Zenner

Join Date:
Sep 2008
Posts:
6
Plugin Contributions:
0

Re: Eliminating wrap-arounds

I think the problem is solved because I am drawing a brainfreeze on where to find id="productDescription" to adjust the px. So I went into the additional images sheet and adjust the 295px to 270px and that fixed it. But I would like to adjust the id="productDescription" px. What sheet is that on?

27 Sep 2008, 9:04 PM
#98
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Eliminating wrap-arounds

That is CSS coding so it should be in your 'stylesheet.css' file.
If not, insert it and add your own selective. (i.e. width:300px)

You still have errors with your UL code. All<li> need a closing </li>

27 Sep 2008, 11:10 PM
#99
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Eliminating wrap-arounds

Website Rob:

That is CSS coding so it should be in your 'stylesheet.css' file.
If not, insert it and add your own selective. (i.e. width:300px)

You still have errors with your UL code. All<li> need a closing </li>
Firefox is more forgiving of these errors than IE, that is one probable cause for different behaviors.
You can find
#productDescriptionWrapper {
width: 320px;
margin-left: 120px;
background-color: #f0e68c;
}
in your stylesheet_additional_images.css

27 Sep 2008, 11:35 PM
#100
ckosloff avatar

ckosloff

Totally Zenned

Join Date:
Feb 2007
Location:
South Florida, USA
Posts:
1,375
Plugin Contributions:
0

Re: Eliminating wrap-arounds

Also, you shouldn't put a <br /> inside a ul.
The li tag creates a line by itself.
Syntax is like so:

<ul> <li>blah</li> <li>blah</li> <li>blah</li> </ul>