Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opacity in Konqueror

Status
Not open for further replies.

rcp032

Technical User
Sep 21, 2006
44
US
Does anyone have a solution for setting opacity in Konqueror?
 
In CSS, use:

Code:
-khtml-opacity: 0.5;
opacity: 0.5;

(the second line is in place for when it supports the W3 standard).

In script, you would use:

Code:
el.style.KhtmlOpacity = '0.5';
el.style.opacity = '0.5';

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Actually, I have tried this and it doesn\'t work. It works for Safari, but not in Konqueror (RHEL4 & Solaris 10).

Have you tried this code yourself? I would be interested to see a version of Konqueror that supports this tag.

Where did you get a reference for it? I have looked around the KDE website to figure out why they don\'t support their own tag, but I haven\'t seen anything.
 
I've not tried it myself, nor do I have Konqueror to try it (shame you didn't mention that you had already tried it - it would have saved me some typing).

If it's not working, try looking on the Konqueror site to see if they have tech support forums where you can aask if it is actually supported.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Well thats what I meant - a tested and working method for opacity. I\'ve clunked around on their site and i don\'t see anything - in fact i don\'t even see a good way to report/question the fact its not working.

But seriously then, where did you hear about -khtml? Its not really mentioned all that highly on their site and I am disturbed they went out of their way to make a tag they are not supporting.
 
Maybe I just didn't look in the right places, but I'm unable to find any remotely official source that indicates -khtml-opacity ever worked in Konqueror. I've seen it referred to as a new feature in Safari 1.1, but that's it. It seems like Apple added it to WebCore and, because of the name, people just assumed that it worked in KHTML too.

At any rate, I can verify that the couple of opacity demos I tried didn't work in KDE 3.5. The only mention of opacity I found in the Konqueror documentation says that the CSS 3 "opacity" property is not supported.

According to one developer's blog entry from earlier this year, support for opacity is planned for KDE 4. He also mentions that Konqueror one of the few browsers left that doesn't have opacity, which seems to support my theory that -khtml-opacity never worked in the first place.
 
Haha - you guys are good, I looked all over and never found anything as good/reliable as what you found. This seems to be a good answer.

Thnx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top