Click here to Skip to main content
13,143,185 members (36,415 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


3 bookmarked
Posted 23 Nov 2011

Text Over Text using CSS

, 25 Nov 2011
Rate this:
Please Sign up or sign in to vote.
Text Over Text using CSS


After seeing this question[^] in Q/A section, I wanted the same thing in CSS, so I have tried & am now posting here.


<title>Text Over Text</title>
<div style="position:absolute; top:0;left:0;">some text</div>
<div style="position:absolute; top:5;left:5;">some text</div>
<div style="position:absolute; top:10;left:10;">some text</div>
<div style="position:absolute; top:110;left:100;">some text</div>
<div style="position:absolute; top:105;left:105;">some text</div>
<div style="position:absolute; top:100;left:110;">some text</div>

Browser Compatibility

I have tested this script in the following Web browsers:

  • Internet Explorer

  • Mozilla Firefox

  • Google Chrome

  • Safari

  • Opera


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Web Developer
India India
Retired from Q/A section & Technical forums since 2014

More coming soon....

You may also be interested in...


Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170915.1 | Last Updated 25 Nov 2011
Article Copyright 2011 by thatraja
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid