One div is overlapping another when using polymer

user3339454

I'm using Polymer to develop my website, and when I use <core-pages> and I have my footer, my footer overlapping the <core-pages>, I figure the reason is due to the <core-pages> having a position of absolute, but if I take the absolute position out it ruins the page. Any suggestions?

Here's is my code

<core-pages flex>
        <section id="settings" class="settings">
            <div class="panel">
                <summary style="margin-left:25px">
                    <h1>Account</h1>
                    <p>Here, you can edit your account information</p>
                        <form is="ajax-form" action="ajax.php" method="post">
                            <paper-input-decorator label="Email" floatingLabel>
                                <input is="core-input" name="email" type="email" required="required">
                            </paper-input-decorator>
                            <paper-input-decorator label="Old Password" floatingLabel>
                                <input is="core-input" name="pass" type="password" required="required">
                            </paper-input-decorator>
                            <paper-input-decorator label="New Password" floatingLabel>
                                <input is="core-input" name="newpass" type="password" required="">
                            </paper-input-decorator>
                            <paper-input-decorator label="Confrim New Password" floatingLabel>
                                <input is="core-input" name="newpass" type="password" required="">
                            </paper-input-decorator>
                            <br />
                            <div align="center">
                                <paper-button id="submitButton" raised=""><core-icon icon="arrow-forward"></core-icon>Update My Account</paper-button>
                            </div>
                        </form>

                </summary>
            </div>
        </section>
        <section>
        asdfsadf
        </section>
    </core-pages>
    <page-footer></page-footer>

Here's my page-footer:

<link rel="import" href="../bower_components/polymer/polymer.html">
<polymer-element name="page-footer" noscript>
<template>
    <link rel="stylesheet" href="../css/style.css">
        <footer>
            <div>
                <div class="links">
                    <a href="/"><paper-button raised><core-icon icon="archive"></core-icon>Update Archive</paper-button></a>
                    <a href="/"><paper-button><core-icon icon="face-unlock"></core-icon>Contact and Chat</paper-button></a>
                    <a href="/"><paper-button><core-icon icon="account-balance"></core-icon>Legal Disclaimer</paper-button></a>
                    <a href="/"><paper-button><core-icon icon="receipt"></core-icon>Terms of Service</paper-button></a>
                    <a href="/"><paper-button><core-icon icon="bug-report"></core-icon>Report A Bug</paper-button></a>
                </div>
                <p id="copyright">This website and its contents are copyright &copy;2014-2015 Website Name.</p>
            </div>
        </footer>
</template>
</polymer-element>
/**************FOOTER STYLES**************/
footer {
    position: relative;
    background-color: #fafafa;
    padding: 100px 0;
    padding-left: 64px
}
footer .links {
    margin-bottom: 56px
}
footer paper-button {
    margin-right: 30px;
    margin-bottom:10px;
    opacity: 0.6;
    color: black
}
footer #copyright {
    color: #b3b3b3;
    font-size: 14px;
    text-align:center
}
footer>:first-child {
    max-width: 1032px;
    margin: 0 auto
}

And the <core-pages> css:

:host {
   display: block;
   position: relative;
}
polyfill-next-selector { content: ':host > *'; }
  ::content > * {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  visibility: hidden;
  z-index: -1000;
}

polyfill-next-selector { content: ':host > .core-selected'; }
     ::content > .core-selected {
     visibility: visible;
     z-index: auto;
}

Here are some screenshot of what I'm talking about, to give a better explanation: With position absolute: http://prntscr.com/5knveb Here it is without : http://prntscr.com/5ko78r

user3339454

I figured it out, I just had to add a position relative to polyfill-next-selector { content: ':host > .core-selected'; } ::content > .core-selected {

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

One div is overlapping another when using polymer

From Dev

DIV Sections Overlapping One Another

From Dev

Div Overlapping another Div when reduced

From Dev

Div overlapping another div

From Dev

Div overlapping another div -Bootstrap

From Dev

div with two div's inside, when I go from one div to another, using onMouseOver

From Dev

Filling background using CSS - two different colors and one overlapping another

From Dev

When mouseover one Div it changes the class of another Div on the page using CSS?

From Dev

Right sidebars overlapping one another

From Dev

Fixed image overlapping another div

From Dev

Stop background color of one div covering the content of another, rotated and thus overlapping, div

From Dev

Hide one div when showing another with JavaScript

From Dev

border radius of a div inside another div is overlapping

From Dev

Div overlapping another div while scrolling

From Dev

how to place one div on top of another, when both are centered using auto margin?

From Dev

show border color when one div touches another one

From Dev

show border color when one div touches another one

From Dev

open another div when click on one incremental numbered div

From Dev

Show One Div and Hide Another Div when Click on button

From Dev

Replace one div with another div using dynamically created content

From Dev

Using js to set height of one div to the same height as another div

From Dev

How to hide one div and show another div using button onclick?

From Dev

how to draggable over one div to another div using jquery?

From Dev

Show div when hover another div by using only css

From Dev

How to change the color of a div in css when another one is on focus

From Dev

Changing the style of one div when hovering over another

From Dev

Overlapping Anchor Tags When Hovering Over One

From Dev

Div's overlapping when browser size changes

From Dev

div overlapping when hover over divs

Related Related

  1. 1

    One div is overlapping another when using polymer

  2. 2

    DIV Sections Overlapping One Another

  3. 3

    Div Overlapping another Div when reduced

  4. 4

    Div overlapping another div

  5. 5

    Div overlapping another div -Bootstrap

  6. 6

    div with two div's inside, when I go from one div to another, using onMouseOver

  7. 7

    Filling background using CSS - two different colors and one overlapping another

  8. 8

    When mouseover one Div it changes the class of another Div on the page using CSS?

  9. 9

    Right sidebars overlapping one another

  10. 10

    Fixed image overlapping another div

  11. 11

    Stop background color of one div covering the content of another, rotated and thus overlapping, div

  12. 12

    Hide one div when showing another with JavaScript

  13. 13

    border radius of a div inside another div is overlapping

  14. 14

    Div overlapping another div while scrolling

  15. 15

    how to place one div on top of another, when both are centered using auto margin?

  16. 16

    show border color when one div touches another one

  17. 17

    show border color when one div touches another one

  18. 18

    open another div when click on one incremental numbered div

  19. 19

    Show One Div and Hide Another Div when Click on button

  20. 20

    Replace one div with another div using dynamically created content

  21. 21

    Using js to set height of one div to the same height as another div

  22. 22

    How to hide one div and show another div using button onclick?

  23. 23

    how to draggable over one div to another div using jquery?

  24. 24

    Show div when hover another div by using only css

  25. 25

    How to change the color of a div in css when another one is on focus

  26. 26

    Changing the style of one div when hovering over another

  27. 27

    Overlapping Anchor Tags When Hovering Over One

  28. 28

    Div's overlapping when browser size changes

  29. 29

    div overlapping when hover over divs

HotTag

Archive