Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8800373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:34:19+00:00 2026-06-14T00:34:19+00:00

I have a <p:menubar> in a xhtml template. The div that surrounds it has

  • 0

I have a <p:menubar> in a xhtml template. The div that surrounds it has these CSS properties:

position: fixed;
top: 44px;
width: 100%;

So I can fix the menu header while user scrolls down the page.

The problem now is that some Prime Faces component have icons and headers overflowing the menu.

printscreen

I tried to work with z-index but no success. I imagine that there is another solution in PrimeFaces instead of z-index.

Thanks a lot.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:34:20+00:00Added an answer on June 14, 2026 at 12:34 am

    According to the PrimeFaces default style sheet primefaces.css, the <p:message(s)> icon is relatively positioned.

    .ui-messages-info-icon, .ui-messages-warn-icon, .ui-messages-error-icon, .ui-messages-fatal-icon, .ui-message-info-icon, .ui-message-warn-icon, .ui-message-error-icon, .ui-message-fatal-icon {
        background: url("/omnifaces/javax.faces.resource/messages/messages.png.xhtml?ln=primefaces") no-repeat;
        display: block;
        float: left;
        margin: 0;
        padding: 0;
        position: relative;
    }
    

    I’m in first place not sure why it’s relatively positioned as it doesn’t seem to need to be offsetted nor have any absolutely positioned children. Perhaps it’s been used as some (most likely IE-specific) workaround/hack for something else (if this was “has layout” related, the developer would better have used overflow: hidden instead for this). So just making it the default position: static should fix it.

    Add the following to your override stylesheet to achieve this:

    .ui-messages-info-icon, .ui-messages-warn-icon, .ui-messages-error-icon, .ui-messages-fatal-icon, .ui-message-info-icon, .ui-message-warn-icon, .ui-message-error-icon, .ui-message-fatal-icon {
        position: static;
    }
    

    Alternatively, you could of course also set z-index of the menu with an insane high value, as you figured out yourself. I wouldn’t consider this a reliable solution though, this is too much a workaround/hack.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a div(menubar) that has a lot of links and these links are
I have an application that has a main GUI with a menubar, and another
I have created an application that has a toolbar, menubar and content area. I
I have a menubar(div) which houses bookmarks and when too many bookmarks are inserted
I'm designing a website right now, and have a menubar at the top for
I have an application that lives in the menubar, without a main menu or
I have a menubar and tabs the code like below: <div id=menu> <ul> <li><a
I'd like to build an app that does not have a menubar, a dock
i have a php page it have css script. i want to put menubar
I have 2 menus that need to be centered on a menubar. Needs to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.