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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T09:05:05+00:00 2026-05-14T09:05:05+00:00

Should we give overflow:hidden to those div for which we are not giving height?

  • 0

Should we give overflow:hidden to those div for which we are not giving height?

#Container {width:900px;margin:0 auto}

for #header which has other elements inside then should i give overflow:hidden to #header or i should give fixed height to #header.

What is the difference between both?

#header {}

#footer {}
  • 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-14T09:05:06+00:00Added an answer on May 14, 2026 at 9:05 am

    No, it’s not needed.

    That rule is used as a work around to allow a container to take the full height of its child elements when they are floated. So unless you’re floating elements inside it, the rule is extraneous, as there will be no overflow because the height is not specified.

    See here for more info on why you would use overflow: hidden.

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

Sidebar

Related Questions

I'm not sure how I should express this, but I'll give it a try.
I'm working on a school project which should give students the ability to search
I want a container with two columns. Details: The container Width should adjust to
A bit of JQuery taken from http://briancray.com/2009/05/06/twitter-style-alert-jquery-cs-php/ which should give a nice old-twitter style
What role should I give a sql login if I need the login to
Can anyone give an idea of how should I implement undo/redo of cutting/copying/pasting of
Why should I use JSON with ASP.NET? Can you give a practical example? I
Maybe this is just impossible and I should give up all hope. Or maybe
In the following program, the line 5 does give overflow warning as expected, but
My HTML is look like these <html> <body> <fieldSet id=sourceName style=width: 350px; height: 80px;

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.