XHTMLforum

XHTMLforum (http://xhtmlforum.de/index.php)
-   CSS (http://xhtmlforum.de/forumdisplay.php?f=73)
-   -   wichtig++++First Child (http://xhtmlforum.de/showthread.php?t=61101)

baadshah 10.05.2010 16:02

wichtig++++First Child
 
Hallo,
ich kriege first child in meine tabelle auf td nicht hin

HTML-Code:

<html>
<head>
<style type="text/css">
table tr td.right:first-child{color:blue}
</style>
</head>

<body>
<table>
<tr>
<td class="left"><div class="test">gfggf</div></td>
<td class="right"><div class="test">1111122f</div>
<div class="test">1111445122f</div></td>
</tr>
<tr>
<td class="left"><div class="test">2222f</div></td>
<td class="right"><div class="test">2dfdfdfdf222f</div> 
<div class="test">111535ghgvcbvbv1122f</div></td>
</tr>
</table>

</body>
</html>

und zwar möchte ich in td->right, den ersten div ansprechen,

irgendwie klappt das bei mir nicht,

für hilfe bin ich sehr dankbar.

gruß
Thomas (baadshah)

EvT 10.05.2010 17:45

Code:


table tr td.right :first-child{color:red}



Alle Zeitangaben in WEZ +2. Es ist jetzt 05:01 Uhr.

Powered by vBulletin® Version 3.8.11 (Deutsch)
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

© Dirk H. 2003 - 2023