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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:51:11+00:00 2026-05-23T06:51:11+00:00

I am having problems overlaping two boxes. Should I use absolute positioning? z-index or

  • 0

enter image description here

I am having problems overlaping two boxes. Should I use absolute positioning? z-index or what techniques are out there? By the way I want them to overlap is just that I want to make sure it works cross modern browsers. IE8 or +

I cant push the black box to the center why?
enter image description here

<!DOCTYPE HTML>
<html>

<head>
<title>Metropolitan State Hospital Intranet</title>
<link rel="stylesheet" type="text/css" href="Home.css">
</head>

<body>

        <div id="masthead">

            <div id="logo">
                Logo here
            </div><!--end logo-->

            <div id="header">
                <div id="horizontalMainMenu">
                    <ul>
                        <li><a href="#">About Us     |</a></li>
                        <li><a href="#">Contact Us   |</a></li>
                        <li><a href="#">Metro Link   |</a></li>
                        <li><a href="#">WaRMSS Login  </a></li>
                    </ul>
                    <br style="clear:left;"><!--I used float:left in the css to stack the list items now I need to clear it-->
                </div>
            </div>
            <!--end header-->

        </div><!--end masthead-->

        <div id="container">
            <div id="left_col">
                <div id="verticalMainMenu">
                    <ul>
                        <li><a href="#">Air Quality Control</a></li>
                        <li><a href="#">CalATERS</a></li>
                        <li><a href="#">Email Encryption</a></li>
                        <li><a href="#">Employee Guide</a></li>
                        <li><a href="#">Patient Special Function Requests</a></li>
                        <li><a href="#">Request Home Address <br> Confidentiality Form</a></li>
                        <li><a href="#">Travel Store</a></li>

                    </ul>
                </div><!--verticalMainMenu ends here-->
            </div><!--left_col ends here-->

            <div id="page_content">
                <div id="horizontalBodyMenu">
                    <ul>
                        <li><a href="#">Home</a></li>
                        <li><a href="#">Clinical</a></li>
                        <li><a href="#">Administrative</a></li>
                        <li><a href="#">Service</a></li>
                        <li><a href="#">Search</a></li>

                    </ul>
                    <br style="clear:left">
                </div>


            </div><!--page_content ends here-->
        </div>

        <div id="footer">
            Footer
        </div><!--end footer-->

</body>

</html>

CSS:

/* CSS layout */
*{
    padding:0;
    margin:0;
}
body {
    margin: 0;
    padding: 0;
}

#masthead {
    min-width: 600px;
}

#logo {
    float: left;
    width: 200px;
    background-color:yellow;/*I dont know what color this is in the template*/

}

#header {
        background-color:yellow;/*I dont know what color this is in the template*/
        height:300px;
}

#container {
    clear: both;
    min-width: 600px;

}

#left_col {
    float: left;
    width: 200px;
    background-color:red; /*I dont know what color this is in the template*/

}

#page_content {
    background-color:black; 
    margin:-50px 0 0 0;
    width:95%;
}

#footer {
    clear: both;
}
/* CSS common layout ends here*/

/* horizontalMainMenu starts here*/
#horizontalMainMenu{
    width:100%;
    background-color:transparent;
}
#horizontalMainMenu ul{
    margin:0;
    padding:0;
    float:left;
}
#horizontalMainMenu ul li{
    display:inline;
}
#horizontalMainMenu ul li a{
    float:left;
    text-decoration:none;
    color:white;
    padding:5px 9px;
}

/*horizontalMainMenu ends here*/

/*Body Menu Starts here*/

#horizontalBodyMenu ul{
    list-style:none;
}

#horizontalBodyMenu ul li{
    display:inline;
    }


/* horizontalBodyMenu ends here*/

#horizontalMainMenu ul li a:visited{
    color:white;
}
#horizontalMainMenu ul li a:hover,#mainMenu ul li .current{
    color:#fff;
    background-color:#0b75b2;
}

#verticalMainMenu ul{
    margin:0;
    padding:0;
    list-style:none;/*removes the default bulltets*/
}
#verticalMainMenu li{
    padding:0 0 0 10px;
    background-image:url('');
    background-repeat:no-repeat;
    background-position:.5em;
    line-height:200%;
}
#verticalMainMenu li a:hover{
    color:#fff;
    background-color:#0b75b2;

}
  • 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-23T06:51:11+00:00Added an answer on May 23, 2026 at 6:51 am

    You should do it normally, and then pull “Box 2” upwards with margin-top: -80px.

    This will work in “all browsers”.

    Here’s a good article concerning negative margins:

    http://coding.smashingmagazine.com/2009/07/27/the-definitive-guide-to-using-negative-margins/

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

Sidebar

Related Questions

Hi I am having problems with some css classes in joomla. I have two
I'm having some problems with SMS alerts and call notification freezing up the video
I'm having a strange issue with some @font-face text where there is some strange
having problems with .prop(disabled, false) it's works fine in opera and firefox but IE
Problem: I have two overlapping 2D shapes, A and B, each shape having the
I have tried to make a clickable DIV, but I am having problems because
I'm working through some home work and having problems with how to form my
having problems with this error in python: File F:\dykrstra, line 36, in route while
Having problems with assigning a specific id to a varied list of items selected
Having problems with my ASP.NET MVC2 project. I'm using Fluent NHibernate as ORM, and

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.