Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Can't get tempalte to fill browser window

Can't get tempalte to fill browser window

Locked

Views: 1,940

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
9 Nov 2009, 3:42 AM
#1
mjrcomputers avatar

mjrcomputers

New Zenner

Join Date:
Nov 2009
Posts:
2
Plugin Contributions:
0

Can't get tempalte to fill browser window

I have just made my website but I cannot get it to fill the entire browser and it's just centered (Stock) and makes everything look cramped. I tried to edit the stylesheet.css but it made no difference based on the FAQs so I really hope someone can help me, I have Zen Cart 1.38. Here's my site: http://tinyurl.com/ycymx88 :dontgetit

9 Nov 2009, 4:14 AM
#2
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: Can't get tempalte to fill browser window

Edit your stylesheet.

Remove

width:750px in #mainWrapper

9 Nov 2009, 4:27 AM
#3
mjrcomputers avatar

mjrcomputers

New Zenner

Join Date:
Nov 2009
Posts:
2
Plugin Contributions:
0

Re: Can't get tempalte to fill browser window

I just tried that and it did nothing. Directory for the stylesheet is public_html/(domain).com/includes/templates/template_default/css right? Because that's the one i'm editing with no results.

9 Nov 2009, 4:37 AM
#4
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: Can't get tempalte to fill browser window

No. Never ever edit any files in template_default and save it there. Since you have the standard template, you edit public_html/(domain).com/includes/templates/classic/css

If there is no such file, you save the edited stylesheet there since the template folder is the first place where zencart looks for your files.

But even better, you make your own template folder (See tutorials) and dont overwrite the classic as well, so you can always check at a later time, when something isnt working, it it still works with the original classic template.

9 Nov 2009, 4:39 AM
#5
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Can't get tempalte to fill browser window

Template_default is probably not in use. As tino.schlegel says, create your own custom template.

Instead of removing that line, change it to

width: 100%;

Check http://(sorry, site offline)/ to see the free templates available for Zen Cart in action. You might spot one that you like.

7 Jan 2010, 1:05 AM
#6
lushac avatar

lushac

New Zenner

Join Date:
Aug 2009
Location:
Sydney, Australia
Posts:
8
Plugin Contributions:
0

Re: Can't get tempalte to fill browser window

Hi.

Can any one help? I've followed the instructions as per the tutorial and this thread. But my site will not fill the browser window. I am running my monitor at full resolution (does that matter?).

I have the following code:

/wrappers - page or section containers/
#mainWrapper {
background-color: #ffffff;
text-align: left;
width: 100%;
vertical-align: top;
border: 1px solid #9a9a9a;

Changed the width: 100%; from width: 750px as per the instructions.

my website is http://www.LushAdultCocnepts.com.au

any help is much appreciated.

7 Jan 2010, 4:08 AM
#7
gjh42 avatar

gjh42

Black Belt

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

Re: Can't get tempalte to fill browser window

Your Template Monster template has another div inside #mainWrapper called .main_w (stylesheet_tm.css, line 45).
Its current value is 766px; set it to 100%.

There are some other things that will show up when you do that, so some further adjustments will be necessary.

7 Jan 2010, 6:05 AM
#8
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,594
Plugin Contributions:
0

Re: Can't get tempalte to fill browser window

... and now that you have done that do you realize how awful it looks stretched across a 24" screen?

7 Jan 2010, 6:15 AM
#9
lushac avatar

lushac

New Zenner

Join Date:
Aug 2009
Location:
Sydney, Australia
Posts:
8
Plugin Contributions:
0

Re: Can't get tempalte to fill browser window

I dont have a 24inch screen :(

I did notice that it widened in internet explorer, but not fire fox as well.

Any suggestions as to what width I should have it at as opposed to 100%, maybe 1024px? I just think it was too thin as as standard, it left 2 white gaps of about an 2 inches on either side of the browser.

Also the header image didn't widen. Is this because I need to change the dimensions of the image? Or can you set this to auto adjust somewhere as well?

Thanks for the feed back, BTW. And the soultion.

7 Jan 2010, 1:47 PM
#10
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Can't get tempalte to fill browser window

Any fixed width image used in the header is just that - fixed width. In order to get it to adjust when the browser window width changes you need to use two images which slide over each other as required. Google "sliding door technique" to see lots of info about this. The first link, from A List Apart, is the one you want.

Rob

7 Jan 2010, 6:26 PM
#11
janissaire avatar

janissaire

Zen Follower

Join Date:
Sep 2008
Location:
Toronto, Ontario, Canada
Posts:
474
Plugin Contributions:
0

Re: Can't get tempalte to fill browser window

Maybe this will help.

Leave your site to the 755 pixel width.

Reason is two fold:

  1. There are still some people who use the old 800x600 monitors :blink: so you want to make sure that those people can see your entire site at once without having to move the slider bar at the bottom back and forth all of the time.

  2. Your post of the 24" screen - there are lots of people who use this too (mainly Mac users) - saying you don't have one.

By keeping to a set width - one that's centered on the screen - you have a nice professional looking site regardless of what size the monitor is.

Well hope that helps you out:clap:.