473,386 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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.
Aug 15 '08 #1
1 2437
David Laakso
397 Expert 256MB
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.
Aug 17 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Timothy H. Schilbach | last post by:
Hi Everyone, I have an interresting issue here. I created a Master Template and derrived a page from it. It has 3 custom content areas so that I can visually place all the items where I wish....
11
by: Grischa Brockhaus | last post by:
Hi, I'm trying to produce a div layout containing a header on the top with fixed height, a footer on the bottom using fixed height and a content layer using what's left of the browsers window. ...
2
by: Randy Smith | last post by:
Hi All, I'm having trouble finding a solution to this problem with ASP 2.0. I'm using MasterPages with a menu, and if the number of elements inside a level within the menu is too long, the...
1
by: Johanna | last post by:
I am a real php newbie, I am having to learn as I go along - no time for tutorials or books! Background to my problem: I am working on a Wordpress theme for my personal blog...
8
by: geoffdude | last post by:
Hi everyone, newbie here. I'm really close to finishing my zip code search filter thingy to return a specific message (ultimately a unique phone number for sales contact) after a form query (of...
0
by: test2000 | last post by:
Hello On my blog I have a vertical line that is separating the content from the sidebar. This line is going all the way down until the bottom of the page if the content is longer than the...
1
by: webonomic | last post by:
I've been fooling around with a wordpress theme called Enlighten on http://www.topwpthemes.com/ (scroll down to find it). It works fine in FF, Opera but not in IE6. In IE6, the sidebar gets...
8
by: Ben | last post by:
Hi, i'm trying to build a simple site navigation (using c#)... i implemented a master page that shows a sidebar user control on the left side, and a content page on the right. i click the...
1
by: jnbbender | last post by:
I'm new at CSS so take it easy. I have 3 DIV's, #header, #content, and #sidebar. I know iframes are bad but I'd like to do the same with CSS. My sidebar has a podcast interface & if I place the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.