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

  • SEARCH
  • Home
  • 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 4082734
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:13:26+00:00 2026-05-20T18:13:26+00:00

I’ve got an example mht file here that will help demonstrate my issue; if

  • 0

I’ve got an example mht file here that will help demonstrate my issue; if you are using FF then this addon will help you view the mht file. You will prob need to download the file and view it locally since github doesn’t provide the right mime type for the file.

Basically my issue is this that I have a div which is 32px in height surrounding another div which is 29px in height, and I have no idea why the former is 32px tall.. It should be 29px tall afaict.. I don’t want to set height:29px tho because if you resize the window so that the nav items take two lines then the height shouldn’t be 29px for either div.

So what is wrong here?

  • 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-20T18:13:27+00:00Added an answer on May 20, 2026 at 6:13 pm

    the use of display: inline-block; on the ul.base is the cause.

    when you use that it formats an element like it were inline (it only formats the actual content of the element like a block), so ul.base will have the usual 2-3px top and bottom “padding” that a normal inline element has. It’s not really padding it’s the leading vertical spacing i.e. it’s what gives lines enough space to provide for the ascenders and descenders of letters like g, h, p, etc.

    the use of it here is to make it seem like your ul is containing the floated child list elements. To make an element contain it’s floated children there are other ways to do this, one way is, on ul.base

    remove: display: inline-block
    add: overflow: hidden;

    [UPDATED] re the tabs.. sorry I didn’t see them before I started

    Here’s the “float everything” solution to containing child floats as it applies to your code, with some other suggestions too

    1. .menuContainer all it needs is position:relative; and the border-right rule
    2. .navigationSecondary float it left with a width of 100%; (you can remove z-index it’s not doing anything)
    3. .wrapper float it left with a width of 100%, remove the height
    4. ul.base doesn’t actually need anything but remove the display-inline-block.. it’s not containing the child lists but there’s no effect involved, if you want to you can float it left with a 100% width too

    [UPDATE 2]
    I just copied this to a plain HTML document and I think that just changing the DOCTYPE to an HTML4 transitional one solves the problems with no changes to the code ?? (why that should change the display be I don’t quite know! – but the use of “target=_parent” is “not allowed” in Strict Doctypes so that’ll be why it’s not validating)

    I’ll put it in JSBIN so others can try it out on various browsers

    I changed it to:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
     "http://www.w3.org/TR/html4/loose.dtd">
    

    jsbin (with original HTML5 doctype) is here http://jsbin.comhttp://jsbin.com/agihe5/2/ – shows gap

    jsbin with changed Doctype – but no changes to CSS code – with flash video to show dropdowns are working is here : http://jsbin.com/inare6/2 – no gap!

    jsbin with no changes to Doctype, suggested changes to code and the flash insert to show z-index working is here: http://jsbin.com/iriya4

    with the latter, code changes are detailed in the source, they have moved to the bottom of the snapshot CSS

    I’ve tested the changed Doctype version as working in IE7, IE8, FF3.6.15, Safari4 (Win) and Chrome

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

Sidebar

Related Questions

i got an object with contents of html markup in it, for example: string
I've got a string that has curly quotes in it. I'd like to replace
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
i want to parse a xhtml file and display in UITableView. what is the
I have a JSP page retrieving data and when single or double quotes are

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.