3 replies [Last post]
Liam
Offline
newbie
Last seen: 16 years 12 weeks ago
Joined: 2004-11-07
Posts: 3
Points: 0

I have opacity working, but it also affects anything that is in the div, I've tried enclosing the text in another div with it's own styling and opacity set to full (for filter, -moz-opacity and opacity) I have the text showing propely in IE by adding a position:relative; tag to it's CSS, but is there some way of doing this in Firefox?

Liam
Offline
newbie
Last seen: 16 years 12 weeks ago
Joined: 2004-11-07
Posts: 3
Points: 0

Opacity

well..i got it working..but why does Firefox position div's differently then IE..

in firefox I get it fine, but then in IE it is 15px too low, so i set it to 15px higher and in firefox it is 15px too high and ie it is fine..it's so damn annoying.

I would give you an example but at the moment I'm hostless.

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 45 weeks 10 hours ago
Joined: 2004-06-30
Posts: 9668
Points: 801

Opacity

Set it 15px lower so it works in Firefox, then for IE use this css code:

* html #transparentdiv {
margin-top: -15px
}

or whatever ids and classes you use.

The * in front of the html will ONLY affect IE browsers.

Verschwindende wrote:
  • CSS doesn't make pies

Liam
Offline
newbie
Last seen: 16 years 12 weeks ago
Joined: 2004-11-07
Posts: 3
Points: 0

Opacity

doesn't matter now, i got it working, had to mess with some padding..

thats for that ie only tip Smile