473,729 Members | 2,328 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

missing borders and background colours in IE6

Hi there,

I've fought with this problem before in IE and "solved" it by setting
various block elements to have 100% width, but now that won't work for me
and I'm just curious in general as to what the heck IE is doing here.

If you visit the page at http://iceman.redlinesoftware.com/test.html in IE,
the background for the text "sections" to the right should be yellow, but
they won't be when you first view the page; you first have to scroll the
page up and down and some of the background colour will then appear.

If I the 'section' class in the css to have 100% width, the colour appears,
but then the elements flows off the right of the page and a horizontal
scroll bar appears.

So what I'm asking is, what's causing this problem and how do I go about
fixing it?

Thanks in advance,
Andrew
Nov 23 '05 #1
3 1907
yb
Don't want to be picky, but the HTML is not valid, (there is no title
element in the head section). Anyway, adding a title does not fix the
problem. Im not sure why its happening, I think its a bug with IE's
rendering.

Changing the #centercontent as follows works in IE6

#centercontent {
position: absolute; left : 210px; top : auto;
/* margin-left: 210px; */
}

not sure if this is acceptable for what you are trying to accomplish
though.

Also, I'm not sure you want to set the borders the way they are
currently, the 'double' line appears between each section. Perhaps
this:

#centercontent {
position: absolute; left : 210px; top : auto;
/* margin-left: 210px; */
border: 1px solid #CCC;
background: #FFD;
}

..section {
/* width: 100%; */
border-bottom: 1px solid #CCC;
padding: 0.5em;
}

is what you are looking for, the background is also moved into
'centercontent' which shines through in child elements since their
default background is transparent

Nov 23 '05 #2
Hi there,

Thanks for the reply! Your proposed solutions seems to do the trick. I
left out some extra css formatting for my example here, so the double border
thing isn't really an issue, but thanks for the remarks anyway.

Thanks again,
Andrew

"yb" <ba*********@ya hoo.ca> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
Don't want to be picky, but the HTML is not valid, (there is no title
element in the head section). Anyway, adding a title does not fix the
problem. Im not sure why its happening, I think its a bug with IE's
rendering.

Changing the #centercontent as follows works in IE6

#centercontent {
position: absolute; left : 210px; top : auto;
/* margin-left: 210px; */
}

not sure if this is acceptable for what you are trying to accomplish
though.

Also, I'm not sure you want to set the borders the way they are
currently, the 'double' line appears between each section. Perhaps
this:

#centercontent {
position: absolute; left : 210px; top : auto;
/* margin-left: 210px; */
border: 1px solid #CCC;
background: #FFD;
}

.section {
/* width: 100%; */
border-bottom: 1px solid #CCC;
padding: 0.5em;
}

is what you are looking for, the background is also moved into
'centercontent' which shines through in child elements since their
default background is transparent

Nov 23 '05 #3
Actually, I found a better fix for my problem. I have a footer in my actual
site and the absolute positioning causes the footer to remain at the top
under the center content.

I instead added 'position: relative' to my .section and it works with the
#centercontent as is. The relative positioning actually fixes other
elements that I had width 100% on before, so now I can remove those too.

Andrew

"andrew" <no****@noname. com> wrote in message
news:Mxzef.1458 96$Io.7732@clgr ps13...
Hi there,

Thanks for the reply! Your proposed solutions seems to do the trick. I
left out some extra css formatting for my example here, so the double
border thing isn't really an issue, but thanks for the remarks anyway.

Thanks again,
Andrew

"yb" <ba*********@ya hoo.ca> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
Don't want to be picky, but the HTML is not valid, (there is no title
element in the head section). Anyway, adding a title does not fix the
problem. Im not sure why its happening, I think its a bug with IE's
rendering.

Changing the #centercontent as follows works in IE6

#centercontent {
position: absolute; left : 210px; top : auto;
/* margin-left: 210px; */
}

not sure if this is acceptable for what you are trying to accomplish
though.

Also, I'm not sure you want to set the borders the way they are
currently, the 'double' line appears between each section. Perhaps
this:

#centercontent {
position: absolute; left : 210px; top : auto;
/* margin-left: 210px; */
border: 1px solid #CCC;
background: #FFD;
}

.section {
/* width: 100%; */
border-bottom: 1px solid #CCC;
padding: 0.5em;
}

is what you are looking for, the background is also moved into
'centercontent' which shines through in child elements since their
default background is transparent


Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1969
by: david.graham18 | last post by:
Hi I spotted some nice code to change the background colour of a web page to one of four different colours at random but I can't find it now! The method was to select a number at random from 1 to 4 by using the rnd() function and then dividing by modulus 4. The result was then used to select a cell in a 4 cell array which was holding a different colour in each cell of the array. I would like to have this code but lack the knowledge to...
3
4766
by: Peter Williams | last post by:
Hi All, I want to write some javascript for a html page which does the following. Imagine that the page contains a table with 2 columns and 3 rows, e.g.: +---+---+ | A | B | +---+---+
4
2152
by: Lachlan Hunt | last post by:
Hi, I'm looking for an interoperable method of determining the current background colour of an element that is set using an external stylesheet. I've tried: elmt.style.backgroundColor; but that only works if the colour has been set using the style attribute or previously set using script. I've also tried:
0
2626
by: David Stone | last post by:
I have a page containing a table which displays as expected but which, when printed from either Firefox or Camino, loses some of the vertical borders between cells in both the table head and body. It does not do this in Safari, but then Safari also does not include the background colours when printing. (When I print, I'm missing the borders between columns 5 & 6, 8 & 9, and 10-12. All the other borders appear correctly) Is this some...
0
8763
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9427
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9284
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9202
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4796
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2165
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.