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 6889703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:11:23+00:00 2026-05-27T06:11:23+00:00

I have a wrapper, then ul, then li with padding and left float. In

  • 0

I have a wrapper, then ul, then li with padding and left float.

In Mac Firefox and Safari, the last <li> child moves to the next line.

I’m using margin auto and a reset. It renders fine on PC in every browser (not IE9, but I have conditional style sheet for this not included).

  • http://www.rv333.com/stackoverflow/index.html
  • http://www.rv333.com/stackoverflow/pc.png/http://www.rv333.com/stackoverflow/pc.png

Here’s the code:

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0; 
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    text-decoration: none;
    list-style: none;

}
#wrapper {
    margin: 0 auto;
    width: 960px;
    padding: 0;
}
ul {
    list-style: none;
    font-size: 13px;
    font-weight: normal;
    background-color: #fff;
    width: 960px;
    font-family: Arial, Helvetica, sans-serif;
    height: 36px;
    margin: 0;
}
li {
    float: left;
    padding: 10px 20px 10px 20px;
    background-color: #e7e2d7;
    color: #4a4a4a;
    margin: 0;
}
li.selected {
    color: #fff;
    background-color: #218308;
    background-image: url(../ui/nav-selected-arrow.png);
    background-repeat: no-repeat;
    background-position: center top;
}
li a {
    color: #4a4a4a; 
}
li a:hover {
    text-decoration: underline;
}
li.selected a {
    color: #fff;    
}
</style>
<body>
<div id="wrapper">
    <ul>
        <li class="selected"><a>Becket Court</a></li>
        <li><a>Darwin College</a></li>
        <li><a>Eliot College</a></li>
        <li><a>Keynes College</a></li>
        <li><a>Park Wood</a></li>
        <li><a>Rutherford College</a></li>
        <li><a>Tyler Court</a></li>
        <li><a>Woolf College</a></li>
    </ul>
</div>

Is there a reason the padding is interpreted differently on Mac? Or am I just making a stupid mistake?

  • 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-05-27T06:11:24+00:00Added an answer on May 27, 2026 at 6:11 am

    I’d guess that the padding is actually exactly the same on Mac and PC, but the font is rendered slightly differently, resulting in the width of some <li>s being greater on the Mac, resulting in the last item wrapping onto the next line.

    You can check using the Firebug add-on for Firefox on both Mac and PC, or Google Chrome’s built-in inspector.

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

Sidebar

Related Questions

I have a strange phenomenon while continuously instantiating a com-wrapper and then letting the
I have a wrapper managed application(.net) over a COM Component(created using vb6) where Com
I have a #wrapper with three elements. I fadeIn / slideToggle them all then
I have a centered layout using margin:0 auto; , but one of my child
I have a wrapper around a C++ function call which I call from C#
I have a wrapper generic class that intended to be used with a set
I have a wrapper div with a height of 600px and a width of
Scenario 1: I have one wrapper Perl script which uses another Perl module and
I have a list wrapper that maintains two Tstringlists and a TClassList I need
I have a main wrapper div that is set 100% width. Inside that i

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.