Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
March 18, 2010, 04:37:05 AM

Pages: [1]   Go Down
  Print  
Author Topic: DIVs and IE5 - Help please!  (Read 2606 times)
mattl
Intergalactic Cowboy
*****
Offline Offline

Posts: 68

iMac 20" Intel Core D2


WWW
« on: August 06, 2008, 02:40:18 PM »

Hi,
Below is the extract of some code which displays perfectly in Safari, Firefox etc but not in IE5. Can anyone suggest what might be causing the problem.

The page is basically an image gallery, each image held in a 'cell'. 'container_mini' is just a holding div displaying a white box as a background to the 'cells'. I've put a 'spacer' div at the bottom to ensure the 'container_mini' expands fully (height) to include all the 'cells'

The problem: In IE5 the container_mini displays over the top of all the cells so that they can't be seen.

Any thoughts greatly appreciated

Thanks
Matt


Code:
<div id="round" class="container_mini" align="center">

<div class="f_l">
<div class="cell" align="center">
<p align="center">Lot No: 1</p>
<a href="javascript:NewWindow('image_view.php?SaleNo=102&LotNo=1&A=','ImageView','650','680','yes')">
<img src="../images/sale_102/1_102_thumb.jpg" border="1"></a>
</div></div>

<div class="f_l">
<div class="cell" align="center">
<p align="center">Lot No: 2</p>
<a href="javascript:NewWindow('image_view.php?SaleNo=102&LotNo=2&A=','ImageView','650','680','yes')">
<img src="../images/sale_102/2_102_thumb.jpg" border="1"></a>
</div></div>

<div class="spacer">&nbsp;</div>
</div>

Associated CSS:
.container_mini {
   margin: 0px 5px 5px 5px;
   padding: 5px 5px 5px 5px;
   border: 1px solid #CCCCCC;
   background-color: #FFFFFF;
   width: 810px;
}
.spacer {
   height: 0px;
   line-height: 0;
   width: auto;
   clear: both;
   font-size: 0px;
   display: block;
}
.f_l {
   float: left;
}
.cell {
   position: relative;
   width: 110px;
   margin: 0px 0px 5px 18px;
   padding: 2px 1px 0px 1px;
   height: 150px;
   border: 1px dashed #CCCCCC;
}
.cell p {
   position: absolute;
   bottom: 0px;
   width: 108px;
   text-align: center;
}

Logged

Radeon
Blueglue.us Webmaster
Galactic Royalty
*****
Offline Offline

Posts: 239



WWW
« Reply #1 on: August 06, 2008, 03:05:48 PM »

Sorry why do you want to support IE5? Its like 5 poeple left using that browser unless you count the seniors, trust me dont bother with old browsers and again unless you actually own your own buissness which you dont right?  Not Me
Logged

Excuses and woman are equaly tiring...
mattl
Intergalactic Cowboy
*****
Offline Offline

Posts: 68

iMac 20" Intel Core D2


WWW
« Reply #2 on: August 06, 2008, 11:03:11 PM »

There are still thousands out there using it, the corporation I work for, with over 100,000 employees still uses it!
Logged

scanman20
Master Jedi
*****
Offline Offline

Posts: 1398



WWW
« Reply #3 on: August 07, 2008, 06:31:13 AM »

According to w3schools, webreference, and a few other sources, IE5 makes up at most 1% of the browser population. Coding for it in my opinion is a complete waste of time. It's outdated, adheres to no standards, is a security target, and is problematic for all but the most basic of sites. If your company is forcing its employees to use IE5 only, then I feel bad for you and can only wonder what the head of your IT department is thinking.
Logged

Even a broken clock is right twice a day.
NotOneBit.com
MCSE - MCSA - MCP
MrPhil
Professor in Nanotechnology
*****
Offline Offline

Posts: 4597



« Reply #4 on: August 07, 2008, 07:30:34 PM »

A major corporation still has 100k+ employees using IE5?? Good grief! What are they running, Windows 98? Just for stability issues, running on anything older than Windows XP (if they're a Windows shop) is a total waste of time, as that's the first reasonably stable version of Windows (almost as stable as Linux). They're wasting more employee salary dollars with system crashes than they are saving by not updating to a non-fossilized OS. Once you're on XP (or Linux, if they won't upgrade the hardware), IE6 is standard (IE7 is much better, BTW) and Firefox 2 is even better.

All I can suggest, if you're forced to use IE5 internally, is to write pure HTML without any  CSS. Probably HTML 3.2 rather than 4.0. It won't look so hot in real browsers, but at least will display in IE5.
« Last Edit: August 07, 2008, 07:36:45 PM by MrPhil » Logged

mattl
Intergalactic Cowboy
*****
Offline Offline

Posts: 68

iMac 20" Intel Core D2


WWW
« Reply #5 on: August 09, 2008, 07:32:55 AM »

Thanks for all your advice, I've moved on now and am not going to validate for IE5.

However, the problem I originally described occurs in IE6 as well (I've not had time to check IE7 yet) still works perfectly in Firefox and Safari.

The problem can be viewed at:

[Link removed - now fixed]

View in Firefox all good, IE6 bad!!

Any ideas?

Thanks
Matt
« Last Edit: August 19, 2008, 09:42:22 AM by mattl » Logged

Radeon
Blueglue.us Webmaster
Galactic Royalty
*****
Offline Offline

Posts: 239



WWW
« Reply #6 on: August 10, 2008, 06:50:12 AM »

It doesnt work in IE7 either lol

And i'm pretty sure its the Javascript your using i cant help you though sinse i kinda suck at javascript..  Haha
Logged

Excuses and woman are equaly tiring...
mattl
Intergalactic Cowboy
*****
Offline Offline

Posts: 68

iMac 20" Intel Core D2


WWW
« Reply #7 on: August 10, 2008, 12:50:52 PM »

Yep, I now think it's the javascript as well. It's the code from:

http://www.curvycorners.net/

which rounds of the container_mini div when the page finishes loading. It appears on this page that when that happens it affects the stacking order in IE6 & IE7 thus hiding the other divs.

Like you, I'm no javascript expert so was trying to fix it with the page layout somehow.

Thanks
Matt
Logged

mattl
Intergalactic Cowboy
*****
Offline Offline

Posts: 68

iMac 20" Intel Core D2


WWW
« Reply #8 on: August 19, 2008, 09:41:41 AM »

Just to conclude the post....

It was the javascript from CurvyCorners.net causing the issue, not the CSS.

I've changed to use a jQuery version of the same script which works perfectly and doesn't affect the stacking order.

http://blue-anvil.com/archives/anti-aliased-rounded-corners-with-jquery

Regards
Matt
Logged

Pages: [1]   Go Up
  Print  
 
Jump to: