Zen Cart Logo
Forums / General Questions / image too large

image too large

Locked

Views: 1,292

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
19 Dec 2008, 12:54 AM
#1
skiteris avatar

skiteris

New Zenner

Join Date:
Dec 2008
Posts:
19
Plugin Contributions:
0

image too large

Currently i have a image that seems to be bigger than its allocated space
http://www.herbalteathenaturalway.com/zen-cart-v1.3.8a-full-fileset-12112007/ The size of this image should
be 326 by 296. I have inserted the script from by stylesheet_tm. The image comes under .banner_header
{ background:url(../images/header_banner.jpg) right top repeat-y;}
Could anyone tell me what needs to be changed in this scipt so my image can neatly fit on the right side
of my website.

.fill_top_2 { background:url(../images/fill_top_2.gif) 0 0 repeat-x #FFFFFF;}
.fill_header_2 { background:url(../images/fill_2.gif) 0 0 repeat-y;}
.fill_header_right_2 { background:url(../images/fill_right_2.gif) right top repeat-y;}
.bg_header_2 { background:url(../images/bg_header_2.gif) 0 0 no-repeat;}
.bg_header_right_2 { background:url(../images/bg_header_right_2.gif) right top no-repeat; width:100%; min-height:403px; height:auto !important; height:403px;}
.banner_header { background:url(../images/bg_lap.jpg) 19px 0 no-repeat; min-height:354px; height:auto !important; height:354px; text-align:right;}
.banner_two { padding:29px 35px 0 0;}
.banner_header { background:url(../images/header_banner.jpg) right top repeat-y;}

19 Dec 2008, 11:47 AM
#2
skiteris avatar

skiteris

New Zenner

Join Date:
Dec 2008
Posts:
19
Plugin Contributions:
0

Re: image too large

Currently i have a image that seems to be bigger than its allocated space
http://www.herbalteathenaturalway.com/zen-cart-v1.3.8a-full-fileset-12112007/ The size of this image should
be 326 by 296. I have inserted the script from by stylesheet_tm. The image comes under .banner_header
{ background:url(../images/header_banner.jpg) right top repeat-y;}
Could anyone tell me what needs to be changed in this scipt so my image can neatly fit on the right side
of my website.

.fill_top_2 { background:url(../images/fill_top_2.gif) 0 0 repeat-x #FFFFFF;}
.fill_header_2 { background:url(../images/fill_2.gif) 0 0 repeat-y;}
.fill_header_right_2 { background:url(../images/fill_right_2.gif) right top repeat-y;}
.bg_header_2 { background:url(../images/bg_header_2.gif) 0 0 no-repeat;}
.bg_header_right_2 { background:url(../images/bg_header_right_2.gif) right top no-repeat; width:100%; min-height:403px; height:auto !important; height:403px;}
.banner_header { background:url(../images/bg_lap.jpg) 19px 0 no-repeat; min-height:354px; height:auto !important; height:354px; text-align:right;}
.banner_two { padding:29px 35px 0 0;}
.banner_header { background:url(../images/header_banner.jpg) right top repeat-y;}

20 Dec 2008, 11:49 AM
#3
steve_1 avatar

steve_1

Zen Follower

Join Date:
Sep 2008
Location:
London UK
Posts:
100
Plugin Contributions:
0

Re: image too large

wow .. with so many nested div tags going to be almost impossible

i do notice you have in your above code

.banner_header { background:url(../images/bg_lap.jpg) 19px 0 no-repeat; min-height:354px; height:auto !important; height:354px; text-align:right;}

and

.banner_header { background:url(../images/header_banner.jpg) right top repeat-y;}

why are you defining 2 images for same css

also, why the repeat-y .... that causes it to repeat the image vertically

20 Dec 2008, 12:50 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: image too large

Agree with Steve, the vertical expansion isn't really explansion at all, it's repetition.

The image isn't expanded horizontally either. Rather it's that one of those many, many divs is causing the page width to expand, and your image is aligned to the right edge, causing it to look as though it's overflowing, when all it's really doing is nesting up against an invisible edge. But working out which div is causing the overflow is way more complicated than it should be because of all that div soup.

20 Dec 2008, 12:59 PM
#5
skiteris avatar

skiteris

New Zenner

Join Date:
Dec 2008
Posts:
19
Plugin Contributions:
0

Re: image too large

-Steve-:

wow .. with so many nested div tags going to be almost impossible

i do notice you have in your above code

.banner_header { background:url(../images/bg_lap.jpg) 19px 0 no-repeat; min-height:354px; height:auto !important; height:354px; text-align:right;}

> and
> ```
.banner_header { background:url(../images/header_banner.jpg) right top repeat-y;}

why are you defining 2 images for same css

also, why the repeat-y .... that causes it to repeat the image vertically

I made up the reapeat- y and also the banner header title. In the template 20740 there is an actual image in that position but i cannot seem to enable it?

20 Dec 2008, 1:01 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: image too large

It sounds as though you have some questions for your template vendor.

20 Dec 2008, 10:36 PM
#7
tony_sar avatar

tony_sar

Totally Zenned

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

Re: image too large

Looking at your stylesheet..
there are two identical rules has been set in same CSS .. thats the
banner_header calss. line 75 and 77

the second rule will apply to your Site meaning will over ride the first one .

you may comment out the second banner_header class and see if that to some degree solve your problem since first rule is defining dimension of your banner.

21 Dec 2008, 2:46 AM
#8
skiteris avatar

skiteris

New Zenner

Join Date:
Dec 2008
Posts:
19
Plugin Contributions:
0

Re: image too large

Can you see the image that starts with LOWEST PRICES OF THE SEASON on template 20740 osc3.template-help.com/zencart_20740/
Why cant i see his on my website? What am i doing wrong?

21 Dec 2008, 2:47 AM
#9
skiteris avatar

skiteris

New Zenner

Join Date:
Dec 2008
Posts:
19
Plugin Contributions:
0

Re: image too large

Can you see the image that starts with LOWEST PRICES OF THE SEASON on template 20740 osc3.template-help.com/zencart_20740/
Why cant i see his on my website? What am i doing wrong?

21 Dec 2008, 2:58 AM
#10
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,604
Plugin Contributions:
0

Re: image too large

Because you are using a TM template and they use non-standard, hardcoded elements and don't follow Zen Cart's override rules.