SHAD Posted October 10, 2010 Share Posted October 10, 2010 Hi I am having problems with :nth-child element as i can't get it to work with IE. Any way around this? Quote Link to comment Share on other sites More sharing options...
Djkanna Posted October 10, 2010 Share Posted October 10, 2010 Well it's not going to work with IE because IE doesn't support it. Try looking at a JS solution for IE. Quote Link to comment Share on other sites More sharing options...
Karlos94 Posted October 12, 2010 Share Posted October 12, 2010 Maybe this would be a good resource that you might wish to bookmark, very useful if your not familiar with CSS http://csscreator.com/properties Quote Link to comment Share on other sites More sharing options...
SHAD Posted October 13, 2010 Author Share Posted October 13, 2010 I am not that good with any other sulutions. does any one have a php trick that i can use to do the same job! Changing the table cell colors in odd numbers. Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted October 13, 2010 Share Posted October 13, 2010 Well doing it in PHP is certainly not hard: $rowid=0; while(!$db->EOF) // Or whatever class you use { $row=$db->read(); if($rowid%2 == 0) echo "<TR>"; else echo "<TR BGCOLOR=#FFA0A0>"; // A nice pink is needed here otherwise it doesn't work echo "<TD>{$row[0]}</TD>"; echo "</TR>"; $rowid++; } $db->Close(); Quote Link to comment Share on other sites More sharing options...
SHAD Posted October 14, 2010 Author Share Posted October 14, 2010 The Close(); and read(); functions don't work as it says they are undefined. How should i define them? Quote Link to comment Share on other sites More sharing options...
Djkanna Posted October 14, 2010 Share Posted October 14, 2010 The code A_bertrand provided will of course not work straight out the box you'll need to edit it for it to work with what your using, not just copy and paste it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.