This works, and is cool, I took the note. But this will color all the 
tables in the document, wouldn't it?

On Tuesday, September 4, 2012 3:20:17 PM UTC+4, sffjunkie wrote:
>
> If you're targeting HTML and your target browser supports CSS3 you can use 
> something like the following
>
> <html>
> <head>
> <style>
> /* Specific cell */
> tr:nth-child(3) td:nth-child(4) {
> background-color: black;
> color: white;
> }
>
> /* Specific row */
> tr:nth-child(4) {
> background-color: green;
> }
>
> /* Specific column */
> tr td:nth-child(2) {
> background-color: yellow;
> color: black;
> }
> </style>
> </head>
> <body>
> <table>
> <tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr>
> <tr><td>2</td><td>22</td><td>23</td><td>24</td><td>25</td></tr>
> <tr><td>3</td><td>32</td><td>33</td><td>34</td><td>35</td></tr>
> <tr><td>4</td><td>42</td><td>43</td><td>44</td><td>45</td></tr>
> <tr><td>5</td><td>52</td><td>53</td><td>54</td><td>55</td></tr>
> </table>
> </body>
> </html>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sphinx-dev/-/ETk5NaOyk_YJ.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to