![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am trying to get what I beleive is called target style to work if I use div[title] |
|
all is fine when div title="mine" [title] I cannot get it to work on any tag, yet I have read this should work similar to the .class selector What am I doing wrong?? |
#3
| |||
| |||
|
|
div[title] That is an attribute selector. |
|
[title] I cannot get it to work on any tag, yet I have read this should work similar to the .class selector |
|
What am I doing wrong?? Nothing as far as I can tell. It looks like a browser bug. Does *[title] work? |
#4
| |||
| |||
|
|
David Dorward wrote: div[title] That is an attribute selector. Yes, and it is of a specific kind that tests for the presence of an attribute (explicitly in the markup, as opposite to implied attribute), ignoring its value. Attribute selectors are not supported by IE. This makes their usefulness questionable on the WWW at present. [title] I cannot get it to work on any tag, yet I have read this should work similar to the .class selector On a browser that supports attribute selectors in the first place, such as Firefox, I have no difficulties with using [title] as a selector. What am I doing wrong?? Nothing as far as I can tell. It looks like a browser bug. Does *[title] work? I would suggest revealing the URL rather than trying variations of the theme at random. And don't you think it's wrong to set background color without setting content colors (and background image to none)? Surely it was just an example - but a bad example, and of the kind people actually use. Besides, using a selector that tests the presence of a title attribute sounds rather odd. There might be a reasonable reason, though, and that's one reason why I'm curious about the URL. |
#5
| |||
| |||
|
|
Do you know why the Attribute selector will not work independently? |
#6
| |||
| |||
|
|
News wrote: Do you know why the Attribute selector will not work independently? I've just tested it, and it does. Thus, as I said previously, it is most likely a browser bug. -- David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/ Home is where the ~/.bashrc is |
#7
| |||
| |||
|
|
Do you know why the Attribute selector will not work independently? I've just tested it, and it does. |
|
Thus, as I said previously, it is most likely a browser bug. |
![]() |
| Thread Tools | |
| Display Modes | |
| |