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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:41:51+00:00 2026-06-14T07:41:51+00:00

I am having trouble getting IE8 to recognize the margins, I have a logo

  • 0

I am having trouble getting IE8 to recognize the margins, I have a logo I want vertically centered in a header div with a left margin but it seems like it is ignored but displays fine in Chrome, Firefox, and Safari. Also I have a Login/Signup div that should be in the top right of the header div with some top and right margins but they are being ignored also. I will include the JSFiddle link along with the code in this post.
Here is what it looks like in IE
enter image description here
Here is what it is supposed to look like
enter image description here

JSFiddle
http://jsfiddle.net/ARhRt/

<html>
    <head>
        <title>
        TESTING    
        </title>
        <LINK href="CLLProfile.css" rel="stylesheet" type="text/css">


    </head>

    <body>
        <div id="wrapper">
        <div class="container">

            <div id="header">
                <img src="http://www.placekitten.com/400/100">

                <div class="login"> 
                    <a href="http://www.signup.com">Sign Up</a> <a href="http://www.login.com">Login</a>
                </div>

                <div class="search">
                    <form id ="search" action="" method="post" enctype="multipart/form-data">
                        <label>Search:</label>
                        <input type="text" name="searchBox" id="searchBox" /> 
                        <input type="submit" id="Submit" value="Submit" />
                    </form> 
                </div>

            </div>

            <div class="navigation">
                <form id ="categoryForm" action="test1.php" method="post">
                    <div id="categorydiv">
                        <select name="thing" onChange="getSub(this.value)">
                            <option value=0>Select Main Category<?=$options?>
                        </select> </div>

                    <div id="subcategorydiv">
                        <select name="subCats" >
                             <option>Select Sub Category</option>
                        </select></div>

                        <input type="submit" value="Submit" />
                </form>

            </div>

                <div class="content">
                    Here is the CONTENT 
                    <div class="profileInfo">
                        PROFILE INFO
                    </div>
                </div>

        </div>

        </div>
    </body>

</html>​

CSS:

body{
    background: gainsboro;
    text-align: center;

}

.container{
    padding-top: 20px;
    background: gold;
    width: 900px;
    height: 1300px;
    margin: 0 auto;

}

.content {
    background: #aad500;
    width: 800px;
    height: 1000px;
    margin: 0 auto;
    border: black solid medium;
    text-align: left;
}

#header {

    width: 800px;
    height: 150px;
    margin: 0 auto;
    background: #aad500;
    border: black solid medium;
    text-align: left;

}

#header img{
    position: relative;
    left: 50px;
    top: 25px;


}

.login {
    width: 350px;
    height: 35px;
    float: right;
    background: #aad500;

}

.search{
    background: #aad500;
    color: white;
    width: 250px;
    height: 20px;
    position: relative;
    margin-top: 10px;
    margin-left: 500px;
}

.profileInfo{
    background: whitesmoke;
    width: 750px;
    height: 800px;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;


}

.login a{
    float: right;
    margin-left: 10px;
    margin-right: 20px;
    margin-top: 5px;
    font-size: large;
    color: whitesmoke;
    text-align: right;

}

.login a:hover{
    color: green;
}

.navigation {
    background: green;
    width: 800px;
    height: 50px;
    margin: 0 auto;
    border: black solid medium;
    text-align: left;
}

.navigation select{
    float: left;
    margin-top: 15px;
    margin-left: 10px;
}

.navigation input {
    margin-left: 10px;
    margin-top: 15px;
}

.search #Submit{
    float: right;
    position: absolute;
}

#wrapper{
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}​
  • 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-06-14T07:41:52+00:00Added an answer on June 14, 2026 at 7:41 am

    Here is what I did wrong for people that may experience the same issue I forgot to add the !DOCTYPE A user suggested this and the post was deleted for some reason.

    What I left off at beginning of DOC:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble getting the server to recognize a JSON POST request since I
Having trouble getting the output I want from some powershell commands. I'm creating a
Im having trouble getting Swing layouts to do what I want. I want the
I am having trouble getting this to work. I have variables initiated in main
I'm having trouble getting new Function to work in a Web Worker. I have
I'm having trouble getting my client's custom font face to show up in IE8.
im having trouble getting information i want with fql. i want to get the
I am having trouble getting :last-child to work in my situation. HTML: <div class=test>Some
I have the jsf code and css code below. I'm having trouble getting the
im having trouble getting a string (containing a URL) from one activity to another.

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.