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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:26:19+00:00 2026-05-24T03:26:19+00:00

I learn that is a classic problem on IE7 : <div class=loc_main> <div class=loc_cerca>

  • 0

I learn that is a classic problem on IE7 :

<div class="loc_main">    
    <div class="loc_cerca">
        <div class="event_cerca_item">
            Field
        </div>

        <div class="event_cerca_item">
            <input type="text" class="loc_cerca_input_hidden" />
        </div>    
    </div>    
</div>

.loc_main
{
    margin-left:30px;    
}

.loc_cerca
{
    padding-top:50px;
}

.loc_cerca_input_hidden
{
    border:1px solid #6D6E70;
    width:500px;
}

.event_cerca_item
{
    width:500px;
    float:left;
}

If you check on IE7 (here there is a fiddler example) you’ll see that the Input Box inherits the margin-left and the padding-top from the div container.

In fact, if I swap margin-left:30px; with padding-left:30px; (on .loc_main) and padding-top:50px; with margin-top:50px; (on .loc_cerca) this will disappear.

It’s a common IE7 bug, but I’d like to know how should I fix this troubles. Any idea? Or I just need to remember to put margin on top/bottom and padding on left/right?

  • 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-24T03:26:21+00:00Added an answer on May 24, 2026 at 3:26 am

    Many IE7 bugs/inconsistencies are based on whether or not certain elements have a proprietary “property” named hasLayout. A common way to provide it is zoom: 1, because it has no (relevant) side effects other than setting hasLayout to true.

    Your specific example can be fixed by adding zoom: 1 to .loc_cerca.

    See: http://jsfiddle.net/gC4gP/17/

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

Sidebar

Related Questions

I've recently come to learn that NSFetchedResultsController is an extremely buggy class and its
I was delighted to learn that CSS lets me say list-style-type: cjk-ideographic and get
I want to learn that if I can define user input parameters at bean
I was surprised to to learn that a class variable of a subclass can't
I was shocked to learn that OpenMosix is closed . Can you suggest any
I've come to learn that you cannot push a byte directly onto the Intel
From a previous question , I learn that Linq to SQL is not able
At http://blogs.msdn.com/ericgu/archive/2004/01/29/64717.aspx , we learn that C# will not inline methods with structs as
We were surprised to learn today that threads waiting on a ManualResetEvent continue waiting
I want to learn C++ so that i can develop C++ Python modules for

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.