473,786 Members | 2,672 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IE 6 Positioning Disaster

25 New Member
Hi there, I've uncovered a problem which I only have with IE6, surprise surprise. I have a centered layout for the main content of my web page and I am populating the main section with tabulated data pulled from a database. However, in IE6, the main section of the page is pushed to the left, while the background image (a gold box) i've used to contain the table data has been pushed out to the right.

The strange thing about this is that my other pages display fine in IE6, it seems that the dynamically created table is causing mayhem on this one page. I've checked through my code and can't see any problems - if anyone could help that would be greatly appreciated.

The page and source can be viewed at www.ttfgolf.com/members/top_courses.php (apologies if the table coding looks a bit messy, php is generating this for me and don't think i can affect the output format)

the css is as follows...

Expand|Select|Wrap|Line Numbers
  1. body {
  2.     background-image: url(ttf_background.jpg);
  3.     background-repeat: repeat-x;
  4.     font-size:1em;
  5.     height:100%;
  6. }
  7.  
  8. .container {
  9.     background-image: url(members_bground.jpg);
  10.     background-repeat:no-repeat;
  11.     font-family: Verdana, Arial, Helvetica, sans-serif;
  12.     font-size: 11px;
  13.     color: #FFFFFF;
  14.     width:843px; 
  15.     margin-left: auto; 
  16.     margin-right: auto;
  17.     text-align:center;
  18.     height:800px;
  19. }
  20.  
  21. .container p {
  22.     position:relative;
  23.     padding-top:30px;
  24. }
  25.  
  26. .menu {
  27.     position:relative;
  28.     top:80px;
  29. }
  30.  
  31. a:link {
  32.     color:#D5BE8B;
  33.     text-decoration:underline;
  34. }
  35.  
  36. a:visited {
  37.     color:#008200;
  38. }
  39.  
  40. a:hover {
  41.     color:#FFCC00;
  42. }
  43.  
  44. #content {
  45.     position:relative;
  46.     top:79px;
  47.     background-image: url(box.gif);
  48.     background-position:top center;
  49.     background-repeat:no-repeat;
  50. }
  51.  
  52. #content p {
  53.     margin-left:30px;
  54.     margin-right:30px;
  55.     padding-bottom:0;
  56.     text-align:left;
  57. }
  58.  
  59. #content #centertext {
  60.     margin-left:0px;
  61.     text-align:center;
  62. }
  63.  
  64. #loginform {
  65.     margin-left:200px;
  66.     margin-top:30px;
  67. }
  68.  
  69. label,input {
  70.     display: block;
  71.     width: 200px;
  72.     float: left;
  73.     margin-bottom: 20px;
  74. }
  75.  
  76. input[type="checkbox"] {
  77.     width:15px;
  78.     margin-left:30px;
  79. }
  80.  
  81. label {
  82.     text-align: right;
  83.     width: 175px;
  84.     padding-right: 20px;
  85. }
  86.  
  87. br {
  88.     clear: left;
  89. }
  90.  
  91. #loginform #formbuttons {
  92.     margin-left:177px;
  93.     padding-top:10px;
  94. }
  95.  
  96. #content #error {
  97.     color:red;
  98.     margin:0;
  99.     padding:0;
  100.     text-align:center;
  101. }
  102.  
  103. #loginform input[type = "submit"] {
  104.     margin-left:20px;
  105.     width:auto;
  106. }
  107.  
  108. /*golf course table styling*/
  109. #course_table {
  110.     margin-top:30px;
  111.     width: 750px;
  112.     margin-left:60px;
  113.     text-align:left;
  114.     border-collapse:collapse;
  115. }
  116.  
  117. #course_table th{    
  118.     color:#D5BE8B;
  119.     font-size:1.4em;
  120.     border-bottom:solid 2px #D5BE8B;
  121. }
  122.  
  123. #course_table td{
  124.     margin-bottom:0;
  125.     height:22px;
  126.     vertical-align:top;
  127. }
  128.  
  129. #course_table #checkbox {
  130.     height:5px;
  131. }
  132.  
  133. #course_table #rank {
  134.     padding-left:30px;;
  135. }
  136.  
  137. #course_submit {
  138.     margin-top: 40px;
  139.     margin-left:600px;
  140. }
  141.  
  142. .footer {
  143.     position:relative;
  144.     width:843px;
  145.     margin-top:2px;
  146.     height:56px;
  147.     margin-left: auto; 
  148.     margin-right: auto;
  149.     text-align:center;
  150.     font-family: Verdana, Arial, Helvetica, sans-serif;
  151.     font-size: 9px;
  152.     color: #FFFFFF;
  153.     background-image: url(banner_bottom.gif);
  154.     background-repeat: no-repeat;
  155. }
  156.  
  157. .footer img {
  158.     float:left;
  159. }
  160.  
  161. .footer p {
  162.     padding-top:3px;
  163. }
  164.  
  165.  
Sep 27 '07 #1
2 1871
drhowarddrfine
7,435 Recognized Expert Expert
Validate for your list of 50 html errors that need correcting.
Sep 27 '07 #2
nicky77
25 New Member
thks for the reply - i had validated earlier today and couldn't see what could be causing my problem, realise i still should have corrected the errors though before posting - apologies. i've now corrected all of the errors apart from those relating to the properties of my flash menu as i'm not keen on messing around with them.

grateful for any help if you can see where the problem might lie
Sep 27 '07 #3

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

Similar topics

9
32064
by: Bryan R. Meyer | last post by:
Hello Everyone, The problem of browser resizing has become an issue for me. While redesigning my webpage, I set the left and right margins to be auto so that my content would be centered. However, there are images that I used absolute positioning in order to place them in the appropriate location on my page. When I do a browser resize, these images do not move (obviously). However, the rest of my content is auto centered as...
4
2716
by: Jane Withnolastname | last post by:
I am trying to re-work an old site by replacing the html with css. On the main page, I have a logo image which I needed centred on the initial screen. I found the solution here: http://www.wpdfd.com/editorial/wpd0103.htm#toptip (the second example) The problem is, under the image is a large table. But using the above positioning, now the table starts at the top of the page and runs underneath the image.
14
2482
by: Harlan Messinger | last post by:
What am I not understanding about the definition of { position: absolute; }? "The box's position (and possibly size) is specified with the 'left', 'right', 'top', and 'bottom' properties. These properties specify offsets with respect to the box's containing block." Please take a look at http://gavelcade.com/abspos.html and help me understand why my nested, absolutely positioned divs are being positioned with respect to the page rather...
19
2950
by: MasonC | last post by:
I like Opera but it doesn't like Democrats. This page validates as XHTML and is OK in MSIE 6 but is a disaster in Opera 7.23. http://www.democrats.org/specialreports/condoliesa/page3.html Does this mean we should not be using Opera? Or not XHTML? Mason C
6
2683
by: rajek | last post by:
I posted a similar question yesterday, but didn't get an answer that resolved the issue. (Thanks to those who tried though.) The background: I've read in books and online that if you have one element with "relative" positioning, such as a <div>, it creates a "positioning context" for element within it. E.g., if you have a <p> inside your <div> you can give it absolute positioning and position it (right, left, top, bottom) in terms of the...
11
2648
by: NS | last post by:
I am relativly new to css positioning and have a question regarding the display of a DHTML pop-up Here is the basic HTML I am using: <html> <head> <script language="JavaScript"> <!--
1
2803
by: Charles Harrison Caudill | last post by:
with tables there is a clean and algorithmic way to organize things, but with css which is, once you get it working, much cleaner, I have to tweak and patch and hope and pray and curse before things are positioned the way I want them. It *should* be easy to say: this goes on the left, this goes on the right, this goes in the center, all on the same line, with a background image...but I'm missing something. I would very much like a...
18
3814
by: Jason Tesser | last post by:
We are evaluating Postgres and would like some input about disaster recovery. I know in MsSQL they have a feature called transactional logs that would enable a database to be put back together based off those logs. Does Postgres do anything like this? I saw in the documentation transactional logging but I don't know if it is the same. Where can I find info about disaster recovery in Postgres. Thank you in advance for any info given. ...
2
2511
by: Rob R. Ainscough | last post by:
I'm slowly (very slowly) working my way thru the bizarre and sadistic world of control positioning in MultiViews (ASP 2.0). I came across this to help me explain (or attempt to anyway) why my web page controls were all over the place. "Ironically, absolute positioning is relative. Yes, you read that right. An absolutely positioned element is positioned relative to another element, called the containing block. Here comes the definition...
6
2917
by: Mark | last post by:
hi, i'm trying to position something in the top right corner of a container, but i can't seem to figure out how to get it working. here's the html <div class='thumb'><a href='image.jpg'><img src='photos/thumbs/ bigsmile.jpg'></a><a class='del' href='?p=gallery&del=2'>x</a></div> where 'thumb' is my container, and 'del' should be aligned to the top right. here's the css
0
9650
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10363
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
10164
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
10110
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,...
0
8992
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7515
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
6748
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
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4067
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

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.