Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 15th, 2008, 10:45 AM
Newbie
 
Join Date: Aug 2008
Posts: 1
Default Content area dropping below sidebar in IE6

Hello,
I am having a problem in aligning the sidebar and content area in a webpage.
I am using css.
Consider the below layout.
Expand|Select|Wrap|Line Numbers
  1.   __________________________________________ 
  2.   |                       header                                       |
  3.   |_________________________________________|
  4.   |                      |                                                 |
  5.   |                      |                                                 |
  6.   |      sidebar      |                content                      |
  7.   |                      |                                                 |
  8.   |                      |____________________________|
  9.   |                      |             footer                            |
  10.   |____________ |____________________________|
I am stuck at two places. The css/html code works fine in Firefox but
is wrong in IE6.

a) Given the above structure, i need only the content area to scroll
when I move the scroll bar of the explorer window.
This is happening in firefox but not in IE 6.

b) Also the content area is dropping below the sidebar. So its like the sidebar
is coming first, and then the content.
And the sidebar is spanning the entire horizontal of the page.
In sidebar each item is of class mitem.

I use div to create the areas. Also use a series of mitem inside sidebar.
Problem is the
"Content is dropping below sidebar" and
"Instead of only contenr being scrolled, the whole page is scrolling".
(Scrolling to be controlled by IE window scrollbar)

I checked out the box problem bug , but unable to solve my problem.
I am posting relevant code below.
Please help. many thanks in advance. I need the help most urgently.

(In Firefox everything is working fine but not in IE6)


Expand|Select|Wrap|Line Numbers
  1. html {
  2.   margin:     0;
  3.   overflow:   auto;
  4. }
  5.  
  6. body {
  7.   padding:      0 0 0 0;
  8.   font-size:    medium;
  9.   text-align:   justify;
  10.   overflow:     hidden;
  11. }
  12.  
  13.  
  14. .header {
  15.   position:      fixed;
  16.   top:           0pt;
  17.   right:         1pt;
  18.   bottom:        82%;
  19.   left:          1pt;
  20.   border:        none;
  21.   display:       block;
  22.   z-index:       2;
  23. }
  24.  
  25.  
  26. .content {
  27.   position:      relative;
  28.   float   :      left;
  29.   overflow:      auto;
  30.   margin-top:    0%;
  31.   right:         1pt;
  32.   bottom:        5%;
  33.   left:          20%;
  34.   padding:       1ex 1ex 1ex 1ex;
  35.   width:         78%;
  36.   height:        auto;
  37.   display:       block;
  38.   z-index:       1;
  39. }
  40.  
  41.  
  42.  
  43. .footer { 
  44.   position:      fixed;
  45.   clear   :      both;
  46.   top:           95%;
  47.   right:         1pt;
  48.   bottom:        0pt;
  49.   left:          0%;
  50.   left:          20%;
  51.   border:        none;
  52.   font-size:     smaller;
  53.   display:       block;
  54.   z-index:       2;
  55. }
  56.  
  57.  
  58. .sidebar { 
  59.   position:      fixed;
  60.   float   :      left;
  61.   margin-top:    2em;
  62.   top:           18%;
  63.   right:         80%;
  64.   bottom:        5%;
  65.   left:          1pt;
  66.   border:        none;
  67.   font-size:     small;
  68.   display:       block;
  69.   z-index:       2;
  70. }
  71.  
  72.  
  73. .mitem {
  74.   text-align:    left;
  75.   margin-left:   1pt;
  76.   margin-right:  80%;
  77.   padding-left:  0em;
  78.   border-bottom: thin solid;
  79.   font-size:     large;
  80. }
  81.  
  82. .heading {
  83.    font-weight:  bold; 
  84.    font-style:   italic; 
  85.    width:        99%; 
  86.    text-align:   left; 
  87.    border:       0;
  88.    padding:      2px 2px 2px 2px;
  89. }
  90.  
Please help.
Regards
pixelfreaks.

Last edited by eWish; August 15th, 2008 at 02:20 PM. Reason: Please use the [code][/code] tags
Reply
  #2  
Old August 17th, 2008, 10:59 PM
David Laakso's Avatar
Expert
 
Join Date: Aug 2008
Location: US
Posts: 302
Default

position: fixed; is not supported in IE/6 and down.

Google, subject line: position:fixed
for various work around solutions for IE/6.
This may not be easy to pull off if you are an inexperienced CSS coder.
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles