473,513 Members | 2,881 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 2023
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...@ntlworld.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...@ntlworld.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...@ntlworld.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
14357
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...
4
2877
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...
16
1687
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...
8
6144
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...
1
1473
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> ...
1
916
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
1802
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...
5
14331
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...
4
1931
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 ...
0
7269
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...
0
7177
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...
0
7394
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. ...
0
7559
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...
1
7123
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...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
3237
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1611
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
0
470
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...

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.