Solved

div content transparent in firefox

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

Title # Comments Views Activity
how to debug htl and js pages 8 39
Asp in script 6 38
HTML Anchor Link Problem 3 36
Need help fixing "Flash of Unstyled Content" problem with website 4 20
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…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

860 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