Fixing a CSS bug in Konqueror (44932)
Vadim Plessky
lucy-ples at mtu-net.ru
Thu Jul 18 10:29:09 BST 2002
On Thursday 18 July 2002 2:18 am, Jaak Simm wrote:
| According to CSS standards it seams that the :hower is reserved only for
| anchor (<a>).
| At least that's how it is explained at
|
| http://www.devguru.com/Technologies/css/quickref/css_pseudoclasses_hover.ht
|ml
|
Correct Testcase (without Tables!) is:
--------------------------
<html>
<head>
<title>CSS :hover - tescase for non-A elements</title>
<style type="text/css">
.menuDefault { font-family: Arial, Helvetica, sans-serif; font-size: 10px;
color: #FFFFFF; font-weight: bold; text-decoration: none}
.menuDefault:link { text-decoration: none }
.menuDefault:visited { text-decoration: none }
.menuDefault:active { text-decoration: none }
.menuDefault:hover { text-decoration: underline }
.container { width: 150px; height: 150px; background: green; }
</style>
</head>
<body bgcolor="#000000">
<div class="container">
<span class="menuDefault">If you move your mouse over the text
should not be underlined! If it is, then your browser seems to
have a problem in applying the CSS class menuDefault:hower.
</span>
</div>
</body>
</html>
--------------------------
Please, PLEASE - do not use TABLEs when they are necessary!
You can do everything with help of CSS, just using DIV and SPAN tags!
Also: FONT tag is depreciated! Do not use it!
P.S. other people (Lars, Dirk) already commented the rest
| Even if it would not be so, I think it is smart for the Konqueror to
| comply with
| the actual web standards, i.e. those used by IE and Netscape.
|
| So, I would still like to see the the problem fixed as I've come across
| some webpages
| where the problem is present. Just point me to the right files and I'll
| try to correct it.
Ask authors of those pages to correct their HTML.
I know, that's not easy, but we can ensure our future only in this way!
|
| Cheers,
| Jaak
|
| > Le Mercredi 17 Juillet 2002 20:28, Jaak Simm a écrit :
| > > In short, the problem is that Konqueror applies the pseudo-class
| > > :hower also to non-anchor elements,
| >
| > On the contrary, there's nothing wrong with applying pseudo-classes to
| > whatever element.
| > Apart from having a context that is not determined by the
| > document-tree, they
| > have nothing special.
| >
| > That's why one need to write "a:hover" and not just ":hover" (as in the
| > mentioned bug, which is definetly NOT a bug)
| >
| > If other browsers don't think so, then they are just plain wrong :)
| >
| > G.
| >
| > > like <font>, which is not correct. Following page produces such bug:
| > > http://pc.firm.ee/konqueror-bug2.html .
| > >
| > > Cheers,
| > > Jaak
--
Vadim Plessky
http://kde2.newmail.ru (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
KDE mini-Themes
http://kde2.newmail.ru/themes/
More information about the kfm-devel
mailing list