Solved

How to overlap div?

Posted on 2013-01-27
1
353 Views
Last Modified: 2013-01-27
How do I get div2 to overlap to the left?  I'd like "testing" to appear in the left margin and "this" to align with "testing" above and below it.

<div id="outer" style="width:300px;border-style:solid;border-width:5px;margin:auto;">
<div>testing this div 1.testing this div 1.</div>
<div id="div2" style="left:-50px;">testing this div 2.</div>
<div>testing this div 3.</div>
</div>

Open in new window

0
Comment
Question by:brettr
1 Comment
 
LVL 35

Accepted Solution

by:
Robert Schutt earned 500 total points
ID: 38824901
It may depend on the font but try this for starters:
<div id="div2" style="position:relative;left:-46px;">testing this div 2.</div>

Open in new window

EDIT: 46 seemed closer
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jQuery Sticky Menu 24 36
Word, Excel, Access icons 4 17
Ouput in html in powershell 2 20
html / css issue / div issue. stuck, help needed 2 16
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

829 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