Solved

div content transparent in firefox

Posted on 2010-08-27
4
258 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
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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 embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

813 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now