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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:17:08+00:00 2026-05-24T10:17:08+00:00

Here is the JSFiddle link: http://jsfiddle.net/stapiagutierrez/48yGU/34/ When I use padding: 10px; on the #middle

  • 0

Here is the JSFiddle link:

http://jsfiddle.net/stapiagutierrez/48yGU/34/

When I use padding: 10px; on the #middle div, I thought it would make the contained divs inside become smaller to fit the padding.

This is partially true, it’s pushed from the top and left/right, but it’s overflowing from the bottom.

Any explanation for this, and a solution for this common case? So far, I’ve used overflow: hidden; but this feels like a hack. But maybe since I’m new to CSS this is how you’re supposed to handle it.

  • 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-24T10:17:08+00:00Added an answer on May 24, 2026 at 10:17 am

    You need to add clear after the floats like this: http://jsfiddle.net/48yGU/38/
    Edit: the reason its overflowing from the bottom is because float does not have size. so the container thinks there is nothing there and just draws the padding on both sides (thats why it looks line height). what clear does is it sticks to bottom of floats and have size, so its pushing the container bottom to the bottom of the floats.

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

Sidebar

Related Questions

The link example is here: http://jsfiddle.net/fxr5p/ How to make if value is empty, onload
JSFiddle link: http://jsfiddle.net/dqkZN/32/ Here is the relevant code: <div class=categories> <h3> <img src=http://i.imgur.com/t5UXT.gif />
I have problem with CSS position in IE7. here is the link http://jsfiddle.net/HXcM4/30/ input,
for reference here is a jsfiddle link: http://jsfiddle.net/STmwz/4/ To start off with, there is
Here is a JSfiddle link to the script I am working with: http://jsfiddle.net/TSM_mac/bnjWQ/ To
I was given the script found here http://jsfiddle.net/b2Nq9/2/ but cannot get it to seem
All of this is code is here: http://jsfiddle.net/yrgK8/ I have a news section which
This one is bit tricky , I created jsfiddle here http://jsfiddle.net/WXmcL/10/ to kinda replicate
I am working on a navigation which can be seen here: http://jsfiddle.net/ybvF4/ I'm sure
EDIT My jsfiddle entry is here : http://jsfiddle.net/ehNrE/3/ All the codes(only those required) below

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.