Re: [css-d] Can I apply :last-child to a class?

2009-09-05 Thread Jukka K. Korpela
Chang Huang wrote: > I've forgotten to mention that the list is > dynamically generated, sorry, so it's not possible to predict the last > 'special' item. Then the generating process should be modified so that it becomes possible to mark the last 'special' item. Typically it would just have to k

Re: [css-d] Can I apply :last-child to a class?

2009-09-05 Thread Chang Huang
Thanks you both. I've forgotten to mention that the list is dynamically generated, sorry, so it's not possible to predict the last 'special' item. I also tried "li[class='special']:last-child" with no success. I guess I'll have to use jQuery to do it. On 6 September, at 6 September 2:46 PM,

Re: [css-d] Can I apply :last-child to a class?

2009-09-05 Thread David Laakso
Chang Huang wrote: > Hi, I'm trying to get the last element that belongs to a specific > class. For example, > > > aaa > bbb > ccc > ddd > eee > fff > ggg > hhh > > > I need to get the last 'li' with the class 'special' (' class="special">ggg'), i

Re: [css-d] Can I apply :last-child to a class?

2009-09-05 Thread Philippe Wittenbergh
On Sep 6, 2009, at 1:12 PM, Chang Huang wrote: > Hi, I'm trying to get the last element that belongs to a specific > class. For example, > > > aaa > bbb > ccc > ddd > eee > fff > ggg > hhh > > > I need to get the last 'li' with the class 'special'

[css-d] Can I apply :last-child to a class?

2009-09-05 Thread Chang Huang
Hi, I'm trying to get the last element that belongs to a specific class. For example, aaa bbb ccc ddd eee fff ggg hhh I need to get the last 'li' with the class 'special' ('ggg'), is it possible to do that without JS? I tried '.

[css-d] xhtml 1.1 and 100% height of div and td

2009-09-05 Thread Ariel
Hi, I'm using http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> I tried 2 structures: 1. 2.

Re: [css-d] Hover and active states don't look the same

2009-09-05 Thread E Michael Brandt
It appears that Chrome does not assign focus to tags on click, (at least in this setting - i can not generalize), but only on tabbing. (Is this a feature or a bug?) From: http://www-mit.w3.org/TR/2009/WD-css3-selectors-20090310/#useraction-pseudos " * The |:focus| pseudo-class applies w

Re: [css-d] Hover and active states don't look the same

2009-09-05 Thread David Laakso
Brian M. Curran wrote: >> Brian M. Curran wrote: >>> Hi, >>> On my Portfolio page (http://www.brianmcurran.com/portfolio.html) I >>> have a problem with the links for my portfolio images. My #content >>> a:hover and #content a:active are suppose to be identical, but only >>> the hover state is c

Re: [css-d] Hover and active states don't look the same

2009-09-05 Thread Brian M. Curran
> Brian M. Curran wrote: >> Hi, >> On my Portfolio page (http://www.brianmcurran.com/portfolio.html) I have >> a problem with the links for my portfolio images. My #content a:hover and >> #content a:active are suppose to be identical, but only the hover state >> is correct. Can someone help? >>

Re: [css-d] Hover and active states don't look the same

2009-09-05 Thread David Laakso
Brian M. Curran wrote: > Thank you, this is a good improvement!! It's working in FF, but the > active state is still not working in Google Chrome. Any thoughts on > what could be happening? > > Delete this declaration, and then try it...(not tested) #content a:link, #content a:visited {

Re: [css-d] Hover and active states don't look the same

2009-09-05 Thread Brian M. Curran
Thank you, this is a good improvement!! It's working in FF, but the active state is still not working in Google Chrome. Any thoughts on what could be happening? > Brian M. Curran wrote: >> Hi, >> On my Portfolio page (http://www.brianmcurran.com/portfolio.html) I have >> a problem with the lin

Re: [css-d] Hover and active states don't look the same

2009-09-05 Thread David Laakso
Brian M. Curran wrote: > Hi, > On my Portfolio page (http://www.brianmcurran.com/portfolio.html) I have a > problem with the links for my portfolio images. My #content a:hover and > #content a:active are suppose to be identical, but only the hover state is > correct. Can someone help? > > Since

[css-d] Hover and active states don't look the same

2009-09-05 Thread Brian M. Curran
Hi, On my Portfolio page (http://www.brianmcurran.com/portfolio.html) I have a problem with the links for my portfolio images. My #content a:hover and #content a:active are suppose to be identical, but only the hover state is correct. Can someone help? The html is can be seen when you view sou