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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:08:02+00:00 2026-06-17T12:08:02+00:00

It doesn’t appear in safari when I preview it, but it does in other

  • 0

It doesn’t appear in safari when I preview it, but it does in other browsers.

Here’s the jsfiddle.

You can see the “portfolio” list items have about 2 pixels of white space under each one. Where is this coming from? I’ve got the padding and margins set to 0 and nowrap but can’t figure out any other reason why.. any ideas?

* { 
    margin:0; 
}
html, body { 
    height:100%; 
}
body {
    background-color:#fff;
}
#leftnav {
    background-color:#232323;
    width:20%;
    min-height:100%;
    height: auto !important;
    float:left;
    text-align:center;
    padding:75px 0 0px 0px;
    position:fixed;
    left:0;
    top:0;
}
#portfolio {
    white-space: nowrap;
    text-align:center;
    margin:0;
    width:80%;
    float:right;
}
#portfolio ul {
    margin:0;
    padding:0;
}
#portfolio li {
    width: 25%;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    margin:0;
    padding:0;
    float:left;
}
#portfolio img {
    max-width:100%;
    margin:0;
    padding:0;
}
#maintop {
    width:80%;
    height:45%;
    background-color:#caab7e;
    float:right;
    text-align:center;
}

<body>
<div id="leftnav"></div>
<div id="maintop"></div>
<div id="portfolio">
<ul>
    <li><img src="http://dummyimage.com/400x300/000/fff"></li>
    <li><img src="http://dummyimage.com/400x300/090/fff"></li>
    <li><img src="http://dummyimage.com/400x300/900/fff"></li>
    <li><img src="http://dummyimage.com/400x300/009/fff"></li>
    <li><img src="http://dummyimage.com/400x300/000/fff"></li>
    <li><img src="http://dummyimage.com/400x300/090/fff"></li>
    <li><img src="http://dummyimage.com/400x300/900/fff"></li>
    <li><img src="http://dummyimage.com/400x300/009/fff"></li>
    <li><img src="http://dummyimage.com/400x300/000/fff"></li>
    <li><img src="http://dummyimage.com/400x300/090/fff"></li>
    <li><img src="http://dummyimage.com/400x300/900/fff"></li>
    <li><img src="http://dummyimage.com/400x300/009/fff"></li>
</ul>
</div>
</body>
  • 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-17T12:08:03+00:00Added an answer on June 17, 2026 at 12:08 pm

    It is from the font size / line height. Either add:

    #portfolio li {
      font-size: 0;
    }
    

    or:

    #portfolio li {
      line-height: 0;
    }
    

    Resulting in this updated fiddle.

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

Sidebar

Related Questions

Why doesn't this work? I have bypassed this before but i can't remember how
This doesn't work: http://jsfiddle.net/u8ysa/ This does: http://jsfiddle.net/u8ysa/1/ Does the html() method destroy event handler
Doesn't work with other modules, but to give an example. I installed Text::CSV_XS with
Doesn't matter what I do, I simply can't get this to play a sound
It doesn't look like there's a way to do this in jQuery, but I
It doesn't appear that the Source property for the XAML WebView control is updating
Doesn't seem to be working for me. I'd open an issue on Github but
Why doesn't ChrW accept 'BLACK LARGE CIRCLE' (U+2B24) on my system (see http://www.fileformat.info/info/unicode/char/2b24/index.htm )?
Does anyone know how can I replace this 2 symbol below from the string
doesn't work.. can't find any solution to prevent submit page reload only if ajax

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.