Solved

How do I stack these two divs on top of each other?

Posted on 2011-03-23
3
620 Views
Last Modified: 2012-05-11
I have a site here: http://208.109.84.228/~hibbsinc and I need to stack the "banner" and "searchBox" DIVs on top of each other so it looks like the attached image.

Any help would be appreciated. Divs
0
Comment
Question by:Donnie Walker
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 35196798
you need to use
position:absolute

give the same position:absolute, and top and left style values to both
0
 
LVL 2

Accepted Solution

by:
MINORITYmaN earned 500 total points
ID: 35197314
i would do that:

#banner {
float: right;
font-size: 80%;
text-align: right;
margin-top: 20px;
margin-right: 45px;
color: white;
width: 72%; /* enlarge the banner*/
}

Open in new window

#searchBox {
background: url("../images/search.jpg") no-repeat right top;
float: right;
width: 160px;
text-align: right;
margin-top: 10px; /* change 70px margin to 10px margin */
margin-right: 45px;
}

Open in new window

0
 

Author Closing Comment

by:Donnie Walker
ID: 35198882
thanks
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question