Note that there are some explanatory texts on larger screens.

plurals
  1. POMargin not acting properly in Firefox
    primarykey
    data
    text
    <p>I'm having a very weird problem that for the life of me I can solve. Basically, in Safari my top navigation has no top margin and is flush with the very top of the page. In firefox, it is applying the bottom margin to the top as well, for a reason I cannot figure out. When I remove margin in firebug, the fake top margin is also removed. </p> <p>Please, just goto the page in firefox to see what I mean. If you have firebug, disable the margin property on the #main-navigation and you'll see what is happening.</p> <p>EDIT: Forgot to include link to site: <a href="http://stormink.net/discusses" rel="nofollow noreferrer">Link</a></p> <p>Here's the code:</p> <pre><code>&lt;body&gt; &lt;div id="page-wrap"&gt; &lt;ul id="main-navigation"&gt; &lt;li&gt;&lt;a href="/" id="home-link&lt;?php if (is_home()) { echo '-active'; } ?&gt;" class="main-nav-link"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="/is" id="about-link&lt;?php if (is_page("About")) { echo '-active'; } ?&gt;" class="main-nav-link"&gt;About&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="/discusses" id="articles-link&lt;?php if (is_page("Articles")) { echo '-active'; } if (is_single()) { if (in_category( 3, $post-&gt;ID )){ echo '-active'; } } ?&gt;" class="main-nav-link"&gt;Articles&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="/does" id="portfolio-link&lt;?php if (is_page("Portfolio")) { echo '-active'; } if (is_single()) { if (in_category( 4, $post-&gt;ID )){ echo '-active'; } } ?&gt;" class="main-nav-link"&gt;Portfolio&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="/listens" id="contact-link&lt;?php if (is_page("Contact")) { echo '-active'; } ?&gt;" class="main-nav-link"&gt;Contact&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="/rss" id="feeds-link" class="main-nav-link"&gt;Feeds&lt;/a&gt;&lt;/li&gt; &lt;div class="clear"&gt;&lt;/div&gt; &lt;/ul&gt; </code></pre> <p>And the CSS:</p> <pre><code>body { font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Trebuchet, sans-serif; font-size: 13px; color: #2a2a2a; border-top: 4px solid #f2f2f2; } #page-wrap { width: 600px; margin: 0 auto; } #main-navigation { display: block; position:relative; clear: both; margin: 0 -10px 48px -10px; } #main-navigation li { float: left; height: 30px; } #main-navigation li a { display: block; cursor: pointer; margin-right: 28px; height: 30px; text-indent: -9999px; background: url(/images/storminkSprite.png) no-repeat; background-color: transparent; } </code></pre> <p>I really have no idea what to do anymore, I've been trying to fix this one problem all day and I'm completely out of ideas, so I really hope someone can help.</p>
    singulars
    1. This table or related slice is empty.
    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