WordPress.org

Ready to get started?Download WordPress

Forums

Why is this not being absolutely positioned at bottom? (6 posts)

  1. mixmastermichael
    Member
    Posted 2 years ago #

    Hello there, when you shrink your browser to it's as narrow as it can be, or view this site on a mobile device, the "additional information" always is on top.... Even though it should be absolutely positioned at the bottom.... any ideas what is causing that?

    http://www.barr-nunn.com/careers/index.php/national-solo-owner-operators/

    Thanks

  2. KrashKartMedia
    Member
    Posted 2 years ago #

    you do not have a css rule for it on a mobile.css file, or what ever you are using to make your theme responsive.

  3. mixmastermichael
    Member
    Posted 2 years ago #

    hmm see I don't know what you mean, that CSS has a rule on it so that it *should* be displayed always at the bottom...

    #main #secondary {
    bottom: 0;
    left: 0;
    position: absolute;
    width: 48%;
    z-index: 10;
    }
    style.css (line 2740)

    The thing is, it doesn't, for whatever reason... Any ideas?

    Thanks

  4. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    Looking at the style.css file, there are two sections with those selectors:

    Line 2581

    #main #secondary {
    position: absolute;
        bottom: 0;
        left: 0;
        width: 48%;
        display: none;
    	}

    Line 2741

    #main #secondary {
    position: relative;
        bottom: 0;
        left: 0;
        width: 48%;
        z-index: 10;
    		}

    NOTE the position in the above = relative!

    The code you cited above says it is absolute position but that's not what is in the actual file...

  5. mixmastermichael
    Member
    Posted 2 years ago #

    hmm thanks, tried that, but it had the same result. I have just hidden it for now on the mobile version, since the shadowbox links don't work so hot anyways on the mobile version, you can't scroll when viewing them on your phone

  6. WPyogi
    Volunteer Moderator
    Posted 2 years ago #

    Actually, I meant to mention in my earlier post that that section was not visible on my iPhone even then. So who knows what was going on....but it sounds like you figure out a solution.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.