|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How do you use XML attributes in CSS declarations
How do you use element attributes as part of your CSS declaration?
For instance, I want to display the following into a row of data... Code:
<quotes>
<titles>
<column id="c1">Symbol</column>
<column id="c2">Name</column>
<column id="c3">Last Sale</column>
<column id="c4">Net Change</column>
<column id="c5">% Change</column>
<column id="c6">Volume</column>
</titles>
</quotes>
The CSS I am using is .... Code:
quotes {display:table}
titles {display: table-row}
column[id="c1"], column[id="c2"], column[id="c3"], column[id="c4"], column[id="c5"], column[id="c6"] {display: table-cell}
so whereever I have an element with an attribute I am using... element[attribute="value"] {declaration} ...but this is not working. It includes the first column "c1" into the row and then nothing else. Any clues? |
|
#2
|
||||
|
||||
|
That's odd; it should work with browsers with proper css 2.1 support.
What properties/values are you giving to the cell elements? Also, what browser(s) are you testing with?
__________________
Give Opera some love. Use it and you'll see why. Oh, those monkeys. Another friend of mine. My body is so sexy. What's wrong with the world today? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > How do you use XML attributes in CSS declarations |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|