Previous Message
Next Message

SOLVED: parent styling from the child selector

Sent by Bob Sawyer on 17 February 2005 18:06


Thanks to Paul Novitski, who pointed me in the right direction, I
solved my hover/z-index problem by adding 'position: absolute' to the
'.dot a' :

..dot {
	position: absolute;
	height: 12px;
	width: 12px;
	text-align: center;
	}
..dot a {
	position: absolute;
	height: 12px;
	width: 12px;
	display: block;
	background: #ff0;
	z-index: 10;
	}
..dot a:hover {
	background: #fff;
	z-index: 20;
	}

whereas before I only had 'position: absolute' applied to '.dot' ... 

Cheers,
-Bob
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: