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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:33:12+00:00 2026-05-25T16:33:12+00:00

I am having a CSS class with the following code. I am trying to

  • 0

I am having a CSS class with the following code. I am trying to put a DIV at a distance of 140px from the top of webpage and to put it in the middle (equal distance from left and right). It is displaying correctly in Firefox and Google Chrome but not displaying correctly in Internet Explorer 8. Can anyone tell me what is the problem with this code? Also can anyone give me some link with browser compatibility guide?

div.main
{
    padding: 0px;
    width: 980px;
    /*height:1350px;*/
    /*border: 1px solid red;*/
    margin: 0 auto; /*helps in getting the DIV to be in middle i.e. equal distance from left and right*/
    overflow: hidden;   
    margin-top:140px;
}
  • 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-25T16:33:13+00:00Added an answer on May 25, 2026 at 4:33 pm

    margin-top:140px; is “the problem”. To reach your aim use:

    • padding-top instead of margin-top;
    • if you cann’t – make a wrapper div and apply padding-top to it;
    • or apply position: relative/absolute; top: 140px; to the div. It is suitable
      sometimes.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the following HTML/CSS code I'm having two issues: The result class boxes have
I have a div having a css class MyClass. Inside this div, I can
I have dynamically generated code like the following: <div class=message-error error>The Message field is
I have the following code iam trying to make the text div under the
I've got the following code on my page, and what i'm trying to do
I have the following line of code: <li id=1 class= > <a href=>Parking Lot</a>
Is there anything wrong with having a css class and id with the same
I'm trying to create the following design: This is my code so far. <section
I am using following CSS code: .rounded_box{ -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; width:850px;
I used the code from the following question to insert a YouTube video into

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.