Re: [WSG] how come
在 Tue, 28 Oct 2008 05:20:09 +0800,kevin mcmonagle [EMAIL PROTECTED] 写道: hi, How come you cant change the list-type from none to circle(or anything else) on li a:hover? -kevin try this li { list-style-type:none; } li a { display:list-item; list-style-type:circle; } li a:hover { list-style-type:disc; } ul lia href=#a/a/li lia href=#a/a/li /ul *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] how come
在 Tue, 28 Oct 2008 05:20:09 +0800,kevin mcmonagle [EMAIL PROTECTED] 写道: hi, How come you cant change the list-type from none to circle(or anything else) on li a:hover? -kevin try this li { list-style-type:none; } li a { display:list-item; list-style-type:circle; } li a:hover { list-style-type:disc; } ul lia href=#a/a/li lia href=#a/a/li /ul *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] how come
Hi Kevin, The list-style-type (I assume that's what you meant) sets the list-item marker. So giving the anchor a list-style-type wouldn't effect the list-item. Cheers, Anthony. kevin mcmonagle wrote: hi, How come you cant change the list-type from none to circle(or anything else) on li a:hover? -kevin *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** ***List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfmUnsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfmHelp: [EMAIL PROTECTED]***
Re: [WSG] how come
The list-style appears on the li element. The selector li a:hover matches the a element, which isn't display: list-item and so can't have a list marker. Additionally, CSS provides no way to select an element based on its children, so you can't match the list item based on the hover state of a link inside it. You could match li:hover, but that won't work in IE7 in Quirks mode or IE6 at all. Thanks, so its actually on a separate element in this case.. well that explains it. and sorry bout that everyone I was unaware that my email client did that. *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] how come
Have you tried: ul li:hover { list-style-type: circle; } On Mon, Oct 27, 2008 at 6:04 PM, kevin mcmonagle [EMAIL PROTECTED] wrote: The list-style appears on the li element. The selector li a:hover matches the a element, which isn't display: list-item and so can't have a list marker. Additionally, CSS provides no way to select an element based on its children, so you can't match the list item based on the hover state of a link inside it. You could match li:hover, but that won't work in IE7 in Quirks mode or IE6 at all. Thanks, so its actually on a separate element in this case.. well that explains it. and sorry bout that everyone I was unaware that my email client did that. *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***