473,808 Members | 2,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Div's not displaying properly IE6

Hi People

I have a page built around a central content pane. The problem I am
having is that in IE6, the left nav bar seems to push the corner
images across whereas they seem to sit ontop of eachother fine in
Firefox/Opera/Safari.

Any ideas

Also does anybody know how I can get the corners to move about in a
fluid layout. I can build it fine without the rounded corners using
percentages, but I cannot get the corners to move around as I have no
idea how to position them without using absolute.

The link to the site is as follows: www.fuzzcube.com/index.php
Cheers
Paul
Jun 27 '08 #1
5 2041
mehstg1319 wrote:
Hi People

I have a page built around a central content pane. The problem I am
having is that in IE6, the left nav bar seems to push the corner
images across whereas they seem to sit ontop of eachother fine in
Firefox/Opera/Safari.

Any ideas

Also does anybody know how I can get the corners to move about in a
fluid layout. I can build it fine without the rounded corners using
percentages, but I cannot get the corners to move around as I have no
idea how to position them without using absolute.
Hi Paul,

I'm no expert, but I think you are doing this the hard way :)

If you give the css property "position: relative" to the container (or
body), then you can position the corner divs with "position: absolute;
top:0; left: 0" for the top left. Similar for top, right and the two
bottom corners.

I think you shouldl also give the corner divs height and width to match
the background images and remove all content. This way, IE will not
expand them to contain the nbsp, and destroy all your good work.

Regards

Ian

Jun 27 '08 #2
On May 18, 11:00*am, Ian Hobson <ian.hob...@ntl world.comwrote:
mehstg1319 wrote:
Hi People
I have a page built around a central content pane. The problem I am
having is that in IE6, the left nav bar seems to push the corner
images across whereas they seem to sit ontop of eachother fine in
Firefox/Opera/Safari.
Any ideas
Also does anybody know how I can get the corners to move about in a
fluid layout. I can build it fine without the rounded corners using
percentages, but I cannot get the corners to move around as I have no
idea how to position them without using absolute.

Hi Paul,

I'm no expert, but I think you are doing this the hard way :)

If you give the css property "position: relative" to the container (or
body), then you can position the corner divs with "position: absolute;
top:0; left: 0" for the top left. Similar for top, right and the two
bottom corners.

I think you shouldl also give the corner divs height and width to match
* the background images and remove all content. This way, IE will not
expand them to contain the nbsp, and destroy all your good work.

Regards

Ian
Thanks very much Ian, has fixed it in IE6 as well! :)

Seems to have another problem now though is that the bottom corners
seem to have spacing under them in IE now.
Jun 27 '08 #3
mehstg1319 wrote:
On May 18, 11:00 am, Ian Hobson <ian.hob...@ntl world.comwrote:
>mehstg1319 wrote:


Thanks very much Ian, has fixed it in IE6 as well! :)

Seems to have another problem now though is that the bottom corners
seem to have spacing under them in IE now.
This is a bug in IE.

The solution I have used is to remove the content to the corner boxes -
I use ­, not ;nbsp;

Then get the CSS right for Firefox. Mine is

..boxed {
background-color: E9EAEC;
border: 3px solid #999999;
position: relative;
height: 11em;
padding: 7px 0 0 5px
}
..boxed .topleft {
background-image: url(corner-tl.gif);
top: -3px;
left: -3px;
height: 16px;
width: 16px;
position: absolute;
background-repeat: no-repeat;
}
..boxed .topright {
background-image: url(corner-tr.gif);
top: -3px;
right: -3px;
height: 16px;
width: 16px;
position: absolute;
background-repeat: no-repeat;
}
..boxed .bottomleft {
background-image: url(corner-bl.gif);
background-position: bottom;
bottom: -3px;
left: -3px;
height: 16px;
width: 16px;
position: absolute;
background-repeat: no-repeat;
}
..boxed .bottomright {
background-image: url(corner-br.gif);
background-position: bottom;
bottom: -3px;
right: -3px;
height: 16px;
width: 16px;
position: absolute;
background-repeat: no-repeat;
}

This gives me a 1px error at the bottom of the rounded corners in IE,
where you have 3 or 4px.

Then I correct this with a conditional comment (to appear just after the
<linkto the stylesheet.

<!--[if IE 6]>
<style type="text/css">
..boxed .bottomleft {
bottom: -4px;
}
..boxed .bottomright {
bottom: -4px;
}
</style>
<![endif]-->

That fixed it for me.

Hope you can use this information for your pages.

Regards

Ian
Jun 27 '08 #4
Hi Paul,

I also don't know if it is relevant, but I note that you have the
bottom corners third and forth in your enclosing div.

I placed mine last.

Regards

Ian
Jun 27 '08 #5
On May 19, 10:50*am, Ian Hobson <ian.hob...@ntl world.comwrote:
Hi Paul,

I also don't know if it is relevant, but I note that you have the
bottom corners third and forth in your enclosing div.

I placed mine last.

Regards

Ian
Conditional commenting worked a treat. Thanks
Paul
Jun 27 '08 #6

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

Similar topics

1
14371
by: Izzet Pembeci | last post by:
I am trying to display some rss feeds in my homepage. To do that I am using an external script which returns smth like: document.writeln("<div ...>") document.writeln("Title of News 1") !! read from the feed ..... document.writeln("</div>") So displaying just one feed is a matter of adding the line: <script language=Javascript src="http....?rssfeed=somefeed.xml"> </script>
4
2905
by: sweep | last post by:
Hi there, I have a problem with some CSS I'm writing and I was looking for a little help. I have a nav bar at the top and left side of my page in CSS which work fine. The remaining space has a div which I'm using for body text. Floated to the right of this are two image boxes and a broken out quotation from the page (this box is wider than the images). The layout is working, except that the text in the main section doesn't seem to wrap...
16
1712
by: brian.ackermann | last post by:
Hi all, I'm working on a quick-n-dirty forum to plug into a 'strategic task planning' module I am putting together. The basics are all in place. I've gotten to a point where I can now view the contents of a thread. The output is dynamically generated from the database, via asp. The problem is that the display of the first item in the set is wrong, until you scroll the page, or force the offending block off screen and then back on. ...
8
6160
by: ryan p switchy | last post by:
hey all - having some trouble redoing my old website. using a css file and working with div layers to arrange things in different ways. in the end itll be a place for my art/music/whatever else. the problem im running up against is mozilla firefox - my main browser - being unable to properly read and/or display my div layers. ie7 reads them fine, whether viewing them from file or online, but firefox cant seem to load them right. i took...
1
1487
by: mahnovetsky | last post by:
Hi Guys Im having a problem with displaying a div on top of other divs in firefox. I'm displaying the div(div_1) from within a td and when the div_1 goes over the top of another div(div_2), div_1 Im trying to display will actually go under the div_2 when it should go over the top of it. Works fine in safari and IE7. e.g. code <div> <table> <tr> <td>
1
928
by: Martin Arvidsson, Visual Systems AB | last post by:
Hi! I am going nuts on this DIV tag. I got this inside of a <body> <div id="Products" style="height:500px;"> <div id="ProductGroup" style="float:left;"> Code for displaying groups </div>
0
1814
by: labmonkey111 | last post by:
I'm trying to get a list of page links for a report, and I'm running into a problem with IE. I have a group of nested left-floating DIVs for the page menu, inside a table. Firefox expands the size of the table to see the entire menu, but IE does not, the last few are cut off. After a couple of hours of testing, I have determined that IE is not using the min-width when calculating the width of the DIV, but does use the min-width when displaying...
5
14353
by: dipalichavan82 | last post by:
I am working on sharepoint application. I am displaying some data in gridview. when I right click on gridcell, context menu opens in a div. this div hides onmouseout event. In this div i have three links for three different pages. Now problem is, I have 2 main divs on page. in 1st div this gridview comes. and second main div in which i am displaying some other data. Now in 1st div, i have gridview.when i click on last and second last...
4
1941
by: CdnRebel | last post by:
Hi, I have double checked and triple checked, but I cannot figure out why my second image (the picture in div.top2) is not displaying. The spelling is right. I have attached the files. Also is there a way of aligning all the pictures towards the centre with the wording beneath lined up nicely as well? Thanks for any help, Mary <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
0
9721
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
10631
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
10374
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
10374
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
9196
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...
0
5686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4331
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
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
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.