Question

Set Div on top of all other divs. (Does not work in IE, does in FF and O)(Please Help 2nd shot)

Asked by: carrzkiss

Hello All;

 I am closing out another post that is dead about this issue. And posting this one, in hopes that I will have enough information this time to get some positive results from everyone who ventures in.

The page has Dynamic content read from a DB (Access in this Demo / SQL Server 2005 in real-time LIVE)

When you click on the [Image](s), the hidden Div is shown.
Click on the same image again to HIDE the div.

Now, in FF and Opera
The Div's are on top of all other div's on the page.

In IE6, 7, 8
The Div's are below all other Divs on the page.

--------
Now, in the code it is set
float: left;

Now, if I set it to
float: right;

The Row you are on the Div's wil be on top, but the rows above and below
The divs will be on the bottom.

----------
I have both demostrated in the images below. (The link and code are: Float:left; )
I need this fixed so that in IE, it works. And preferably, working with
float: left;

Thank you all for any and all help that you can give me on this.
This little IE BUG (Thanks M$) is going to be the death of my site if it is not fixed.

-----------Links---------------
(CSS Code for checking if you are in FF or Opera is in this project)
http://ee.cffcs.com/Q_24636756/example.asp
code
http://ee.cffcs.com/Q_24636756/Q_24636756.zip
--------------------------------

Thanks All;
Carrzkiss

  • IE6-7-8--Float-Right-.jpg
    • 81 KB

    This is with CSS - Float: Right (This is in IE, just showing the Top Row only, how it is on top of all others on the row, but on bottom of all Below it)

    This is with CSS - Float: Right    (This is in IE, just showing the Top Row only, how it is on top of all others on the row, but on bottom of all Below it)
  • IE6-7-8.jpg
    • 138 KB

    The way it looks in IE6,7,8 (NOT!!! Suppose to be like this when all shown)

    The way it looks in IE6,7,8 (NOT!!! Suppose to be like this when all shown)
  • Opera.jpg
    • 135 KB

    The way it looks in Opera (Suppose to be like this when all shown)

    The way it looks in Opera (Suppose to be like this when all shown)
  • FF.jpg
    • 141 KB

    The way it looks in FF (Suppose to be like this when all shown)

    The way it looks in FF (Suppose to be like this when all shown)

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-08-24 at 03:54:12ID24676079
Topics

Active Server Pages (ASP)

,

Cascading Style Sheets (CSS)

Participating Experts
1
Points
500
Comments
9

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. CSS in IE & FF￿
    OK, ive been using tables since 94-95 and i can always get what i want out of them. but im trying DIVs with CSS and in FF they are totally out of hand..all over the place, not even close to IEs rendering. ive got settings for the placement.. the numbers are correct, and FF...
  2. Page off in IE6 and FF....
    can someone tell me why the page is so different and off in IE6 and Firefox... in IE6 the thumbnail part looks good, however the left portion of the page is way off pushing the main content area way down. In FF only the thumbnails are way off... here's a link to the page: ...
  3. Centering image in a DIV with IE6? (got it working in FF a…
    Hi there, I have a image centered in a div using FF and IE7 using the following method. .tagName { height: 200px; float: left; width: 100px; line-height: 200px; text-align:center;} .tagContent1 {height: 200px; float: left; line-height: 200px; text-align:center; vertical-ali...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: mreuringPosted on 2009-08-24 at 04:52:07ID: 25167386

Try applying zoom: 1; to the divs. It's proprietary css for IE only, but it solves a heap of problems related to rendering errors.

First thing I do when I have weird z-indexing behaviour in IE is setting 'zoom:1;' and check if this solves the problem. Long live rendering engines from the stone-age! Please try and let me know if it helped at all, not much use testing for anything else without eliminating this possibility.

 

by: carrzkissPosted on 2009-08-24 at 04:58:56ID: 25167420

Sorry,
Not working.

If you can download the code and test it out on your end, you will see what I am up against.

 

by: mreuringPosted on 2009-08-24 at 05:30:21ID: 25167606

I don't have a microsoft development environment, but once I fired up my VM and downloaded your archive and the latest version of your online test-page, it all looked just fine in IE8!

What windows version are you running? Or did you manage to solve the problem?

  • Picture-9.png
    • 116 KB

    http://ee.cffcs.com/Q_24636756/example.asp in IE8 / WinXP

    http://ee.cffcs.com/Q_24636756/example.asp in IE8 / WinXP
 

by: carrzkissPosted on 2009-08-24 at 13:16:19ID: 25172104

Aint that a pain in the butt.

It works in IE8
Not in any earlier version like IE6 and IE7

So, as it stands right now it works in:
IE8
FF
Opera

I need it to work in IE7 as well.
Any idea's on getting this to function properly in IE7?

(Thanks for bringing that to my attention, I tested it on the other computer with IE8
And worked like a charm, the other day it did not work, now it does.)

Carrzkiss

 

by: mreuringPosted on 2009-08-25 at 01:07:45ID: 25175339

There's significant differences between your original solution, as provided in example.html in the archive you've linked and your current solution, as provided by the linked page. The difference in this matter being quite crucial. From my perspective of the CSS2.1 standard, IE6 and IE7 are rendering correctly, it's all the other browsers that are wrong. This is due to a change in attitude concerning z-index.

Z-index, according to the spec only works between elements that are contained within the same 'positioned' container. In your old solution the dropdowns were separate elements from your 'container'-elements and as a result they could effectively get a higher z-index, no-matter the state of the (positioned or not) of the containers. In the new solution the dropdowns are children of the containers and the containers have position: relative. As a result, according to the spec, the z-index you assign to the dropdown only applies against other elements contained by the 'container', that is the img-tag. The containers all get an equal z-index anyway and as a result are getting their z-index in order of appearance.

When I tested it, all I needed to do was remove position: relative from the container-element and it seems to work just fine. I can see no apparant reason for the containers to have a relative position, but should you need it, I suggest expanding your script (the one that toggles the drop-downs) to also raise the z-index of the container-element temporarily while setting the display: block on the dropdown.

<style type="text/css">
#myinfo_1 {       
	text-align: center;
	margin: 5px 0px 0px 40px;
	padding: 5px;
    display:inline;
	z-index:100;
	position:absolute;
}
 
.PicHolder_1{
	width: 80px;
	border: #000000 double; 
	border-width: 1px 1px 1px 1px;
	padding: 5px;
	text-align: center;
	float: left;
	display: inline;
	margin: 6px;
	margin-bottom: 7px;
	
}
</style>
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:

Select allOpen in new window

 

by: carrzkissPosted on 2009-08-25 at 03:33:26ID: 31619584

Can I kick myself now or later?

I cannot beleive it was something so dag-blasted simple.
But, I tried it before. Remove the Relative from that tag
And it broke the layout, I tried it now and it works great!!!
Across all platforms, the site is now ready to go LIVE!!!!!!

Thank you so very very much.
Carrzkiss

 

by: carrzkissPosted on 2009-08-25 at 03:34:47ID: 25176048

Thank You, Thank You, Thank You, Thank You, Thank You, Thank You, Thank You, Thank You
I cannot say it enough.

Removing the Relative from the tag worked like a charm.
Though the other day it broke when I removed it.
I must have changed something in the code from the way it use to be without
Knowing that it actually corrected itself.

Your Rock.
And I thank you so very much.

Carrzkiss

 

by: mreuringPosted on 2009-08-25 at 04:23:56ID: 25176310

Experience and outsider perspective make it look like a truly simple problem :)

I'm happy it worked out and works within the actual production environment too!

Cheers,

 Martin

 

by: carrzkissPosted on 2009-08-25 at 04:36:57ID: 25176380

Very, Very welcome Martin.
You Rock!
Have a great day and week, you saved me from a lot of disappointed users of IE6 & 7.

Carrzkiss

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...