Note that there are some explanatory texts on larger screens.

plurals
  1. POFirefox does not align with right: as expected
    primarykey
    data
    text
    <p>So I have my set of nav pills again, however I noticed another odd issue. I am using right: 5px to align the "notification" where I want it on the mobile view, which is less than 767 px. Looks great in chrome, looks great in IE, however in firefox both of the "notification" spans are positioned on top of each other completely off of the LI's. Any idea on why Firefox would be having such odd behavior?</p> <p>HTML</p> <pre><code> &lt;ul id="contentFirstMenu" class="nav nav-pills"&gt; &lt;li&gt;&lt;a href="#"&gt;Item 1 Title&lt;/a&gt;&lt;span class="notification"&gt;4&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Item 2 Title&lt;/a&gt;&lt;span class="notification"&gt;0&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Item 3 Title&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Item 4 Title&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>CSS</p> <pre><code>#contentContainer { padding: 20px 20px 50px 20px; margin-left: 100px; } #globalHeader { margin-bottom: 0; } .notesDropDown &gt; li { border: 1px solid #CCC; width: 132px; height: 35px; text-align: center; } .notesDropDownInner { text-align: left; } .notesDropDown li:first-child { border-radius: 5px 0 0 5px; } .notesDropDown li:last-child { border-radius: 0 5px 5px 0; } .notesDropDown li:only-child { border-radius: 5px; } #contentFirstMenu li:first-child { border-radius: 5px 5px 0 0; } #contentFirstMenu li:last-child { border-radius: 0 0 5px 5px; } #contentFirstMenu li:only-child { border-radius: 5px; } #viewFullText section { margin-bottom: 10px; } .notification { color: #222; position: absolute; background: #fff; line-height: 12px; border: 1px solid #830600; border-radius: 15px; -webkit-border-radius: 10px; -moz-border-radius: 10px; font-weight: bold; font-size: 12px; -webkit-box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2); -moz-box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2); box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2); padding: 2px 7px; } .dropdown-menu { min-width: 220px !important; padding: 5px !important; } .dropdown-toggle .caret { border-top-color: #999 !important; border-bottom-color: #999 !important; } .notesDropDown li.open .caret, .notesDropDown li:hover .caret { border-top-color: #fff !important; border-bottom-color: #fff !important; } #contentFirstMenu li.hover &gt; a, #contentFirstMenu li:hover &gt; a, #contentFirstMenu li.active &gt; a, .notesDropDown li.open a, .notesDropDown li:hover a { color: #fff !important; } #contentFirstMenu &gt; li { position: relative; float: none !important; width: 70px; background-color: #EEE; border: 1px solid #AAA; box-shadow: 0 2px 5px rgba(75, 75, 75, .5); } #contentFirstMenu a:hover, #contentFirstMenu &gt; .active &gt; a, .notesDropDown a:hover, .notesDropDown &gt; .open &gt; a { background-color: transparent !important; color: #FFF !important; } #contentFirstMenu a { color: #434343; font-weight: bold; font-size: 12px !important; padding-top: 10px; } #contentFirstMenu li:active, #contentFirstMenu li:hover, #contentFirstMenu li.active, .notesDropDown &gt; li:hover, .notesDropDown li.open { background-color: #434343; } #contentContainer div, #contentContainer span, #contentContainer textarea { font-size: 12px; color: #535353; } #contentFirstMenu{ text-align: center !important; z-index: 100; position: fixed; } @media screen and (min-width: 768px) { #contentFirstMenu { top: 25%; margin-left: 10px; } #contentFirstMenu a { margin-top: 10px; margin-bottom: 10px; } .notification { left: 60px; top: 40px; } } /* smartphone css */ @media screen and (max-width: 767px) { #contentFirstMenu { bottom: 5px; display: table; z-index: 100; clear: both; position: fixed; text-align: center !important; margin-left: 10px; margin-right: 10px; height: 45px; } #contentFirstMenu &gt; li { float: none !important; display: table-cell !important; width: 25%; background-color: #EEE; border: 1px solid #AAA; margin: auto -5px; box-shadow: 0 2px 5px rgba(75, 75, 75, .5); } .notification { top: -10px; right: 5px; } #contentFirstMenu li:first-child { border-radius: 5px 0 0 5px; } #contentFirstMenu li:last-child { border-radius: 0 5px 5px 0; } #contentFirstMenu li:only-child { border-radius: 5px; } #contentContainer { margin-left: auto; } } </code></pre> <p>JS Bin with example </p> <p><a href="http://jsbin.com/ejetat/1/edit" rel="nofollow">http://jsbin.com/ejetat/1/edit</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload