Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to change width of the page

How to change width of the page

Locked

Views: 5,817

Results 21 to 22 of 22
This thread is locked. New replies are disabled.
14 Apr 2008, 4:19 PM
#21
website_rob avatar

website_rob

Inactive

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

How to change width of the page

gjh42, although your advice sounds good, it is not good practice -- especially for a Developer. We Developers must code for Browsers that we may not like and/or don't work the way they should. And IE 6 will probably be widely used for some time to come.

In answer to the posts about IE 6 not properly displaying the width of a Form field on certain pages...

There does seem to be some sort of 'bug' in the default Zen Cart that will end up with IE 6 wanting to use 100% for certain pages; Contact Us, Tell a Friend & Write a Review for example.

I've had a few requests to fix the problem and, although it was some time ago, this is the coding fix I used.

includes/templates/template_in_use/css/stylesheet.css
#reviewsWrite { width:94%; }

The above line must be added. I usually put new lines at the bottom so they are easier to find/fix. :wink:

Note: not quite sure if the above is the correct fix for all 3 previously mentioned pages, but does appear to be, on the last site I fixed.

14 Apr 2008, 6:37 PM
#22
gjh42 avatar

gjh42

Black Belt

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

Re: How to change width of the page

The point is not to ignore IE, but to develop according to standards so as to have correctly-written code. Some things work in IE that should not, because IE tries to guess what you mean and can cover up coding errors or sloppiness which are then exposed in Firefox and may take a lot of sleuthing to find and correct.

So develop for Firefox, and then fix for IE if necessary. Usually IE bugs and quirks are well known and published fixes are available.