Solved

div content transparent in firefox

Posted on 2010-08-27
4
262 Views
Last Modified: 2012-05-10
http://www.partnerspa.com.au/div.htm
How can I prevent text content of the 'behind' div from showing in FireFox
It doesn't show in IE

<div style="border:1px solid #000; background-color:#CCCCCC; height:50px; width:50px">
this<br/>
is<br/>
behind
</div>
<div style="border:1px solid #000; background-color: #FFFFCC; text-align:right; height:200px; width:200px; margin-top:-40px">
front
</div>
0
Comment
Question by:joomla
[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
  • 2
  • 2
4 Comments
 
LVL 38

Accepted Solution

by:
Tom Beck earned 125 total points
ID: 33547126
Here's one way:
<div style="border:1px solid #000; background-color:#CCCCCC; height:50px; width:50px;">
this<br/>
is<br/>
behind
</div>
<div style="position:relative; top:-30px; left:3px; border:1px solid #000; background-color: #FFFFCC; text-align:right; height:200px; width:200px;">
front
</div>

Open in new window

0
 

Author Comment

by:joomla
ID: 33547477
brilliant
0
 

Author Closing Comment

by:joomla
ID: 33547481
exactly what i wanted
0
 
LVL 38

Expert Comment

by:Tom Beck
ID: 33547489
Thanks.
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

724 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