• Resolved jrandomh

    (@jrandomh)


    I am usng the following CSS to position some lefts in the top left corner of my site (they’re login/logout/profile type links):

    my-links {
        height: 20px;
        position: fixed;
        right: 1%;
        top: 1%;
    }

    They’re unobtrusive, but always on screen for user access (hence the fixed position).

    They are covered by the admin toolbar when viewing the site logged in.

    Is there any esasy way to keep the principle of having them on screen, in the same position, but move down relative to the admin toolbar (like all of the other site content does)?

    Thanks, JRH.

Viewing 2 replies - 1 through 2 (of 2 total)
  • if your theme actually uses body_class(), try to use the body_class output of .logged-in or .admin-bar to reposition your links;

    example:

    .admin-bar .my-links { margin-top: 64px; }

    Thread Starter jrandomh

    (@jrandomh)

    Awesome, that worked (with top:4% rather than margin-top)

    Thanks ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I make my CSS work with admin bar?’ is closed to new replies.