Forum Moderators: not2easy

Message Too Old, No Replies

CSS Firefox - IE

browser issue

         

joe051864

8:23 pm on Jan 17, 2009 (gmt 0)



Hi:

Problem:

<snip>

The above URL will take you to a site in progress, do not venture to site root, as it will go to current version. Stay within the navigation in the mock up area.If you take a look in Firefox,. the services page shifts a few pixels when moving through the links. Not a problem however in IE7. Anyone have a clue what Firefox does not like about that page? When I get to certain ponit in the left sidebar while adding text it cause a shift on the container element. Any help would be great. TYIA

Joe

[edited by: eelixduppy at 9:14 pm (utc) on Jan. 17, 2009]
[edit reason] no personal URLs, please [/edit]

mattur

8:41 pm on Jan 17, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Don't post personal url's, they disappear and make the thread useless to anyone else in future - see charter. [webmasterworld.com]

When I get to certain point in the left sidebar while adding text it cause a shift on the container element.

As you add more content the page gets longer, and Firefox adds the vertical scrollbar. It's always present in IE, but in Firefox it's not displayed for short pages. You can force a Firefox vertical scrollbar with:

html {height: 100%;}
body {min-height: 101%;}

Or just leave it - this is the way Firefox works for all websites so users will be used to it.

joe051864

8:52 pm on Jan 17, 2009 (gmt 0)



I tried adding what you said like this, and it didnt seem to wprk for me, where did I go wrong? Also, thank you for helping me with this.

html {height: 100%;
}
body {
min-height: 101%;
font: 100% Verdana, Arial, Helvetica, sans-serif;
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
padding: 0;
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
color: #000000;
margin-top: 50px;
font-weight: bold;
}
.heading1 {
font-size: 18px;
color: #9A877E;
font-weight: normal;
font-family: Arial, Helvetica, sans-serif;
}
.heading2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
font-weight: normal;
color: #fba534;
text-decoration: none;
}
.titles {
font-size: 14px;
font-weight: bold;
color: #fba534;
}
.twoColFixLtHdr #container {
width: 900px; /* using 20px less than a full 800px width allows for browser chrome and avoids a horizontal scroll bar */
background: #FFFFFF;
margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
border: 20px solid #B6A9A3;
text-align: left;
}
.twoColFixLtHdr #header {
padding: 0px 10px 0 20px; /* this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
width: 864px;
margin-top: 21px;
}
.twoColFixLtHdr #header h1 {
margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
.twoColFixLtHdr #sidebar1 {
float: left; /* since this element is floated, a width must be given */
width: 415px; /* the background color will be displayed for the length of the content in the column, but no further */
padding: 20px;
font-family: Arial, Helvetica, sans-serif;
font-size: 13px;
text-decoration: none;
font-style: normal;
font-weight: normal;
line-height: 20px;
font-variant: normal;
text-align: justify;
color: #A08F87;
margin-left: 15px;
}
.twoColFixLtHdr #mainContent {
margin: 0 0 0 476px; /* the left margin on this div element creates the column down the left side of the page - no matter how much content the sidebar1 div contains, the column space will remain. You can remove this margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends. */
padding: 25px 5px 5px 5px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
width: 400px;
}
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
float: right;
margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page */
float: left;
margin-right: 8px;
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}td img {display: block;}td img {display: block;}td img {display: block;}td img {display: block;}td img {display: block;}td img {display: block;}td img {display: block;}td img {display: block;}td img {display: block;}td img {display: block;}td img {display: block;}td img {display: block;}td img {display: block;}td img {display: block;}td img {display: block;}td img {display: block;}td img {display: block;}
a:link {
text-decoration: none;
color: #fba534;
}
a:visited {
text-decoration: none;
color: #fba534;
}
a:hover {
text-decoration: none;
color: #fba534;
}
a:active {
text-decoration: none;
color: #fba534;
}

joe051864

8:55 pm on Jan 17, 2009 (gmt 0)



I got it, thank you very much! Realized I needed to add it to the other pages not that one. Argh!