Solved

problem with overlapping div

Posted on 2012-04-05
9
240 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
  • 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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 500 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Web forms being filled out by bots 4 34
HTML5 Get data in table rows 5 29
SlickNav Menu Plugin Not appearing on mobile 6 34
Scroll 5 news at a time. 4 27
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
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…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

778 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