Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

problem with overlapping div

Posted on 2012-04-05
9
Medium Priority
?
252 Views
Last Modified: 2012-06-27
I have a footer in a div, and on 1 page, it's overlapping another div with clicks.
I don't have control over that div with the clicks, just the footer.

What can I add on that footer div, to allow me to click on the div under it?
0
Comment
Question by:rivkamak
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
9 Comments
 

Expert Comment

by:BlueMurder
ID: 37812150
you can try...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
                      "http://www.w3.org/TR/html4/strict.dtd">
<html><body>
<div style='background-color: yellow; width: 70%;
            height: 100px; position: relative;'>
    Outer
    <div style='background-color: green;
                position: absolute; left: 0; width: 100%; bottom: 0;'>
        <div style='background-color: magenta; width: 100px;
                    height: 30px; margin: 0 auto; text-align: center'>
            Inner
        </div>
    </div>
</div>
</body>
</html>

Open in new window

0
 

Author Comment

by:rivkamak
ID: 37812165
I don't understand how that will allow me to click on the lower div?
You can view my example here:
http://www.oorah.org/vsk2/audio/

you can see all the way on the bottom, the pagination number 1 2 3 -. can not be clicked except it you hit the tippy top of the number.
0
 
LVL 13

Expert Comment

by:Hugh McCurdy
ID: 37812168
Overlap how?  Vertically or horizontally?

In CSS you could try the clear attribute.  Here's an example in context.  You don't need my color and text-align attributes.  Just showing you some context.

div.footer
{
  color			: black;
  clear			: both;
  text-align		: center;
}

Open in new window

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:rivkamak
ID: 37812179
I tried clear both and it didn't help. I'll put it back on the page so that you can see.
0
 

Expert Comment

by:BlueMurder
ID: 37812223
Do they have to overlap?  my point was to drive the footer to the actual bottom of the page.
0
 
LVL 30

Expert Comment

by:LZ1
ID: 37812249
First the CSS for the footer is wrong.  2nd you have multiple duplicate styles for the same elements(#footer, #footerInt, etc.).  

You have z-index's on elements that don't need it.  The main problem is that you have margin and padding which is actually overlapping the pagination.  

Your going to have a lot to change in order to get it correct.
0
 
LVL 30

Expert Comment

by:LZ1
ID: 37812273
But if you want a simple and quick fix you can do this:

.pagination_item {
    margin: 0 auto;
    padding: 4px 0;
    position: relative;
    text-align: center;
    z-index: 2147483647;
}
0
 
LVL 13

Accepted Solution

by:
Hugh McCurdy earned 2000 total points
ID: 37812285
Yes, clear only works for horizontal.

I'm not sure.  I'd start by doing something that's not elegant.  I'd put one or two <br /> statements in front of your area.  That may not be the best solution but it might be good enough if it works.

You could also experiment with margin-top.  Say 20px just to start, to see what happens.

I also wonder why you have a div inside a div for the footer.  (But I don't think that's the problem.)
0
 
LVL 13

Expert Comment

by:Hugh McCurdy
ID: 37812543
Thanks for the points.  Page looks fine in Firefox/Linux BTW.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question