ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Firefox absolution positioning nutty

June 12, 2010 11:52pm

Subscribe [3]
  • #1 / Jun 12, 2010 11:52pm

    stphnmartin

    28 posts

    I’m developing an EE site and things are going well except for a stubborn problem with firefox and absolute positioning of a CCS drop down menu. It renders perfectly in Safari and IE8. Can’t figure what FFs problem is.

    Here’s the dev site : http://riverdistrict.dnsalias.com/

    If you hover over the Commercial tab you’ll see how the drop menu slide all the way to the left in FF.

  • #2 / Jun 13, 2010 4:12am

    Wouter Vervloet

    758 posts

    Hi Stephen,

    Your submenu slides all the way to the left because your <li>-tags have display:table; on them. You can’t also set the position attribute on a table cell.

    Greetz,
    Wouter

  • #3 / Jun 13, 2010 4:25am

    stphnmartin

    28 posts

    Thanks Wouter. I used displayLtable to get the nav items to center vertically as requested by the client. I understand what you’re saying about trying to position a table cell. Drat.

    Do you have an alternative suggestion to get the nav to center vertically?

    Thanks for your help.

    Hi Stephen,

    Your submenu slides all the way to the left because your <li>-tags have display:table; on them. You can’t also set the position attribute on a table cell.

    Greetz,
    Wouter

  • #4 / Jun 13, 2010 9:32pm

    Cue

    98 posts

    Do you have an alternative suggestion to get the nav to center vertically?

    Since your setting a width and height to your LI element, you can specify a width and height for your link element.

    Add the following properties to your ul#sub_navigation a

    display: table-cell;
    height: 55px;
    text-align: center;
    width: 86px;

    This should do the trick.

  • #5 / Jun 13, 2010 10:07pm

    stphnmartin

    28 posts

    Cue,

    Thanks for the suggestion! That with a couple other tweaks and it’s working perfectly in all browsers.

    Thanks!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases