Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    New Coder
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    4
    Thanked 4 Times in 4 Posts

    Exclamation IE ignores padding on main content page?!

    I really can't figure out what is going on here. If you click on the menu on the left side of my website (http://www.mwgriffin.com) you should see a header on each page that is displayed. In firefox everything is cool. But in internet explorer, padding for the window is completely ignored and therefore the text is cut off. Oddly enough though is the fact that it only ignores the padding on the top for text. If you click on the "home" button, you should see the header "home" but you don't because it ignores the padding. I'm really confused here. Any help would be great. The window which changes is dictated by the class ".mainContent". Thanks!!!

    Here's the css for the page:
    Code:
    @charset "utf-8";
    body  {
    	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: left; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    	color: #FFF;
    	font-family: "Century Gothic";
    	font-size: 75%;
    	background-color: #171717;
    	font-weight: bold;
    	font-variant: small-caps;
    	background-attachment: fixed;
    	background-image: url(paint2.png);
    	background-repeat: no-repeat;
    	background-position: right bottom;
    }
    
    /* Tips for Elastic layouts 
    1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
    2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
    3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
    */
    .twoColElsLtHdr #container {
    	width: 100%;
    	margin: 0 auto;
    	text-align: left; /* this overrides the text-align: center on the body element. */
    	background-color: #171717;
    	background-image: url(paint2.png);
    	background-position: right bottom;
    	background-attachment: fixed;
    	bottom: 0px;
    	background-repeat: no-repeat;
    } 
    .twoColElsLtHdr #header {
    	padding: 0 10px;  /* 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. */
    	background-color: #333;
    	border-bottom-width: 2px;
    	border-bottom-style: solid;
    	border-bottom-color: #FC0;
    	position: fixed;
    	height: 50px;
    	width: 100%;
    	left: 0px;
    	top: 0px;
    	background-image: url(tile2.png);
    	background-repeat: repeat;
    } 
    .twoColElsLtHdr #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 */
    	color: #FC0;
    }
    
    /* Tips for sidebar1:
    1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
    2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width. 
    3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".twoColElsLtHdr #sidebar1 p" rule.
    */
    .twoColElsLtHdr #sidebar1 {
    	float: left;
    	width: 12em; /* the background color will be displayed for the length of the content in the column, but no further */
    	padding: 15px 0;
    	background-color: #171717;
    	position: fixed;
    	left: 0px;
    	border-right-width: 2px;
    	border-left-width: 2px;
    	border-right-style: solid;
    	border-left-style: none;
    	border-right-color: #FC0;
    	border-left-color: #FC0;
    	top: 52px;
    	height: 100%;
    	bottom: 27px;
    }
    .twoColElsLtHdr #sidebar1 h3, .twoColElsLtHdr #sidebar1 p {
    	margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
    	margin-right: 10px;
    }
    
    /* Tips for mainContent:
    1. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs.
    2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div.  No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
    3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing.
    4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur.
    */
    .twoColElsLtHdr #mainContent {
    	width: auto;
    	padding-top: 52px;
    	padding-right: 1.5em;
    	padding-bottom: 27px;
    	padding-left: 13em;
    } 
    .twoColElsLtHdr #footer {
    	padding: 0 10px;
    	background-color: #333;
    	border-top-width: 2px;
    	border-top-style: solid;
    	border-top-color: #FC0;
    	position: fixed;
    	width: 100%;
    	bottom: 0px;
    	left: 0px;
    	height: 25px;
    	background-image: url(tile2.png);
    } 
    .twoColElsLtHdr #footer p {
    	margin: 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    	padding-top: 5px;
    	padding-right: 0px;
    	padding-bottom: 0px;
    	padding-left: 0px;
    	text-align: center;
    	color: #FC0;
    }
    
    /* Miscellaneous classes for reuse */
    .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;
    }
    .imagelinkborder {
    	height: 120px;
    	width: 120px;
    	border: 3px solid #CCC;
    	margin-top: 5px;
    	margin-right: 5px;
    	margin-left: 5px;
    }
    .imagelinkbordering {
    	background-color: #666;
    	height: 156px;
    	width: 136px;
    	display: inline-block;
    }
    .textbelow {
    	text-align: center;
    }
    
    
    
    /* This is shadow code:
    
    
    .img-shadow {
      float:left;
      background: url(shadowAlpha.png) no-repeat bottom right !important;
      background: url(shadow.gif) no-repeat bottom right;
      margin: 10px 0 0 10px !important;
      margin: 10px 0 0 5px;
      }
    
    .img-shadow img {
      display: block;
      position: relative;
      background-color: #fff;
      border: 1px solid #a9a9a9;
      margin: -6px 6px 6px -6px;
      padding: 4px;
      } 
      
      .p-shadow {
      width: 90%;
      float:left;
      background: url(shadowAlpha.png) no-repeat bottom right !important;
      background: url(shadow.gif) no-repeat bottom right;
      margin: 10px 0 0 10px !important;
      margin: 10px 0 0 5px;
      }
    
    .p-shadow div {
      background: none !important;
      background: url(shadow2.gif) no-repeat left top;
      padding: 0 !important;
      padding: 0 6px 6px 0;
      }
    
    .p-shadow p {
      color: #777;
      background-color: #fff;
      font: italic 1em georgia, serif;
      border: 1px solid #a9a9a9;
      padding: 4px;
      margin: -6px 6px 6px -6px !important;
      margin: 0;
      }
      
      */
    Last edited by mwgriffin; 03-03-2009 at 07:11 PM.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,866
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    I'd recommend you to check http://bonrouge.com/2c-hf-fluid.php to see how to make a good 2 column layout.

    PS: please edit your post and add [CODE][/CODE] tags around your code.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,749
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello mwgriffin,
    I think if you make that padding-top a margin-top instead...
    Like this -
    Code:
    .twoColElsLtHdr #mainContent {
    	width: auto;
    	margin-top: 52px;
    	padding-right: 1.5em;
    	padding-bottom: 27px;
    	padding-left: 13em;
    }
    Check out what the validator says about your CSS - http://jigsaw.w3.org/css-validator/v...griffin.com%2F
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #4
    New Coder
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    4
    Thanked 4 Times in 4 Posts
    My bad for not putting the tags on. I tried switching out the "padding" tag with the "margin" tag, but it still doesn't work. I really don't understand why it wouldn't though, as it should... I'll try forcing the placement of the "maincontent" div from the top by 52 pixels and see if IE acknowledges that. I checked browser compatibility and everything inside dreamweaver and it said that there were no issue, although there clearly is. Firefox, and Safari don't have that issue though. I'll fiddle around with it. Thanks for your input, and if you have any other ideas I'd be happy to know.

  • #5
    New Coder
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    4
    Thanked 4 Times in 4 Posts
    SHWEEET! I think I actually fixed it, although I now have a new, but much less annoying problem. Instead of adjusting the maincontent id i adjusted the container id and shazam! Majic!!! I think this was due to the fact that the container is higher up in terms what say it has over where things go. I put a 52 px padding on top and a 27 px padding on bottom and sweet sauce i can now see my headers in IE. The problem now is that in IE my links are now jammed to the left side instead of spreading out to the left. I noticed this after i change it, and I got the css file back to its original state, but it still did it. I made the changes again so it shows the header and now i'm stuck with this issue and i don't know what i did to make it occur. Here's my updated css. and i'll remember to put the tags in this time:

    Code:
    @charset "utf-8";
    body  {
    	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: left; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
    	color: #FFF;
    	font-family: "Century Gothic";
    	font-size: 75%;
    	background-color: #171717;
    	font-weight: bold;
    	font-variant: small-caps;
    	background-attachment: fixed;
    	background-image: url(paint2.png);
    	background-repeat: no-repeat;
    	background-position: right bottom;
    }
    
    /* Tips for Elastic layouts 
    1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
    2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
    3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
    */
    .twoColElsLtHdr #container {
    	width: 100%;
    	text-align: left; /* this overrides the text-align: center on the body element. */
    	background-color: #171717;
    	background-image: url(paint2.png);
    	background-position: right bottom;
    	background-attachment: fixed;
    	bottom: 0px;
    	background-repeat: no-repeat;
    	margin-top: 0;
    	margin-right: auto;
    	margin-bottom: 0;
    	margin-left: auto;
    	padding-top: 52px;
    	padding-bottom: 27px;
    } 
    .twoColElsLtHdr #header {
    	padding: 0 10px;  /* 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. */
    	background-color: #333;
    	border-bottom-width: 2px;
    	border-bottom-style: solid;
    	border-bottom-color: #FC0;
    	position: fixed;
    	height: 50px;
    	width: 100%;
    	left: 0px;
    	top: 0px;
    	background-image: url(tile2.png);
    	background-repeat: repeat;
    } 
    .twoColElsLtHdr #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 */
    	color: #FC0;
    }
    
    /* Tips for sidebar1:
    1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
    2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width. 
    3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".twoColElsLtHdr #sidebar1 p" rule.
    */
    .twoColElsLtHdr #sidebar1 {
    	float: left;
    	width: 12em; /* the background color will be displayed for the length of the content in the column, but no further */
    	padding: 15px 0;
    	background-color: #171717;
    	position: fixed;
    	left: 0px;
    	border-right-width: 2px;
    	border-left-width: 2px;
    	border-right-style: solid;
    	border-left-style: none;
    	border-right-color: #FC0;
    	border-left-color: #FC0;
    	top: 52px;
    	height: 100%;
    	bottom: 27px;
    }
    .twoColElsLtHdr #sidebar1 h3, .twoColElsLtHdr #sidebar1 p {
    	margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
    	margin-right: 10px;
    }
    
    /* Tips for mainContent:
    1. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs.
    2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div.  No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
    3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing.
    4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur.
    */
    .twoColElsLtHdr #mainContent {
    	padding-right: 1.5em;
    	padding-left: 13em;
    } 
    .twoColElsLtHdr #footer {
    	padding: 0 10px;
    	background-color: #333;
    	border-top-width: 2px;
    	border-top-style: solid;
    	border-top-color: #FC0;
    	position: fixed;
    	width: 100%;
    	bottom: 0px;
    	left: 0px;
    	height: 25px;
    	background-image: url(tile2.png);
    } 
    .twoColElsLtHdr #footer p {
    	margin: 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
    	padding-top: 5px;
    	padding-right: 0px;
    	padding-bottom: 0px;
    	padding-left: 0px;
    	text-align: center;
    	color: #FC0;
    }
    
    /* Miscellaneous classes for reuse */
    .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;
    }
    .imagelinkborder {
    	height: 120px;
    	width: 120px;
    	border: 3px double #CCC;
    	margin-top: 5px;
    	margin-right: 5px;
    	margin-left: 5px;
    }
    .imagelinkbordering {
    	background-color: #666;
    	height: 156px;
    	width: 136px;
    	display: inline-block;
    	margin-top: 3px;
    	margin-bottom: 3px;
    	margin-right: 1px;
    	margin-left: 1px;
    	border: 1px solid #CCC;
    }
    .textbelow {
    	text-align: center;
    }
    
    
    
    /* This is shadow code:
    
    
    .img-shadow {
      float:left;
      background: url(shadowAlpha.png) no-repeat bottom right !important;
      background: url(shadow.gif) no-repeat bottom right;
      margin: 10px 0 0 10px !important;
      margin: 10px 0 0 5px;
      }
    
    .img-shadow img {
      display: block;
      position: relative;
      background-color: #fff;
      border: 1px solid #a9a9a9;
      margin: -6px 6px 6px -6px;
      padding: 4px;
      } 
      
      .p-shadow {
      width: 90%;
      float:left;
      background: url(shadowAlpha.png) no-repeat bottom right !important;
      background: url(shadow.gif) no-repeat bottom right;
      margin: 10px 0 0 10px !important;
      margin: 10px 0 0 5px;
      }
    
    .p-shadow div {
      background: none !important;
      background: url(shadow2.gif) no-repeat left top;
      padding: 0 !important;
      padding: 0 6px 6px 0;
      }
    
    .p-shadow p {
      color: #777;
      background-color: #fff;
      font: italic 1em georgia, serif;
      border: 1px solid #a9a9a9;
      padding: 4px;
      margin: -6px 6px 6px -6px !important;
      margin: 0;
      }
      
      */

  • #6
    New Coder
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    4
    Thanked 4 Times in 4 Posts
    oh and excavator, what do you not like about my website man? I completely welcome any constructive criticism. It took me all of yesterday to figure out how to get all of that put together with my flv player, lightview ajax, and the whole layout. If you have any suggestions i'm totally open to them. Thanks though to both of you for responding to me! Now i just have that other issue that i described above...

  • #7
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,749
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello again mwgriffin,
    It looks pretty good to me so far. I'm not much of a designer though!
    CSS still has problems - http://jigsaw.w3.org/css-validator/v...griffin.com%2F
    Markup looks good though - http://validator.w3.org/check?verbos...griffin.com%2F

    I think new websites don't really need the transitional DocType though. I would go with the Strict but that's just me.

    IE7, IE8 and FF seem to handle it pretty well.
    IE6, of course, botches it.

    It looks like you're wanting it to be full height?
    Is that the issue your talking about with your menu?
    Have a look at this demo for a cross browser compliant full-height layout.

    Your loading paint2.png as a background of body and a background of #container... probably only need to load that once.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #8
    New Coder
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Thanks for the info excavator. yeah I agree, I was just testing out the effects, but they seem to have too many issues. Yeah the paint2.png doesn't need to be in both, only the content section, but I have it in the body section at the moment as I can't figure out how to load the home content when the page loads, using the same method as i use with the menu buttons. The issue that I am now having in IE (issue not present in mozilla or safari) is that, if you click on the images, videos, or audio, menu items, the pages load fine except that all of the information on them are scrunched to the left. In firefox and safari the pages display correctly as each link (the pictures) progress across the page and then continue below if there isn't enough space. to make sure im understood here is the problem in a text format:

    Normal display:

    link link link link link link link link
    link link link

    IE display:
    link
    link
    link
    link
    link
    link
    link
    link
    link
    link
    link

    as you can see, the links (the pictures and text boxes) are just put to the left, as if its like someone typing and hitting enter after each letter.

    I don't know how to fix this...

  • #9
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,749
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Quote Originally Posted by mwgriffin View Post
    . In firefox and safari the pages display correctly as each link (the pictures) progress across the page and then continue below if there isn't enough space. ...
    Not sure I'm looking at the page your working on. This is the link I'm going to - http://www.mwgriffin.com/
    The menu there looks like your typical vertical menu.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #10
    New Coder
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    4
    Thanked 4 Times in 4 Posts
    what i'm referring to is not the menu, which works great in all browsers. The issue is the content in the pages that are loaded by the menu. If you click on the "images" menu, you will see the header "images" and then below it will be a series of links (that look like pictures with text below them). That is what im talking about (the links in the pages that are loaded). more specifically, just to make sure i'm absolutely clear, an example of the element that i am referring to is entitled "bleach: 208" in the videos section.

  • #11
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,749
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Ah, I see. I think IE has trouble with display:inline-block;
    Try this instead
    Code:
    .imagelinkbordering {
    	background-color: #666;
    	height: 156px;
    	width: 136px;
    float: left;
    	margin-top: 3px;
    	margin-bottom: 3px;
    	margin-right: 1px;
    	margin-left: 1px;
    	border: 1px solid #CCC;
    }
    I have a demo of a thumbnail presentation that might interest you at http://nopeople.com/CSS/thumbnail%20...ion/index.html
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    mwgriffin (03-05-2009)

  • #12
    New Coder
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Sweet!! Thanks man! That totally worked! Oh and I figured out how to load my external html files on the initial load of the page so that I could display the home.html in the content div.
    Code:
    <body class="twoColElsLtHdr"; onload="mine.loadContent('Home.html'); return false;">
    sweet!!! that means that i pretty much solved all of my problems! nice. very nice. now i can take out the background image of the body class as i don't need it anymore. One last thing, I know this is possible, but i haven't tried to figure it out yet, and i will, but maybe you can help. as you can see, when the page loads, the scroll bar appears in firefox, as it does in safari. I would like to create a permanent scroll bar so that every thing doesn't have to suddenly shift to the left when it appears (when you go from a page that doesn't need scrolling to one that does). I know that's possible...

  • #13
    New Coder
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    4
    Thanked 4 Times in 4 Posts
    actually I take that back, not permanently, and the shifting over thing isn't bad, but what i realized that I really would like would be for there to be a scroll bar that appears in between the header and footer, instead of the entire height of the window, so that the header and footer won't be shifted, which is distracting, and actually causes some issues in safari.

  • #14
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,749
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hehe, most people don't notice the scrollbar - only that their page jumps over and they don't know why.
    Have a look at this - http://nopeople.com/CSS/vertical_scrollbar/index.html - that has a scrollbar even though there is no content.


    To put the scrollbar on the #mainContent only is quite a bit different...
    Last edited by Excavator; 03-05-2009 at 05:34 AM.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #15
    New Coder
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Yeah, that's what I'm talking about, inthe maincontent div. The issue that I've run across is that when I set the overflow to scroll, the scroll bar appears in the main window. The reason this is occuring I believe is that the height of the maincontent is 100% but that is due to the fact that I want it to strech to fill the window, but be confined by the headed and footer. I don't know what to do. I'll set up another web page so that youcan see what I'm talking about.


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •