adilmarwat Posted February 18, 2010 Share Posted February 18, 2010 I have table in dynamic table php. In which different data fields contains.I want to set the 1st row color "red" and 2nd row "white" and again 3rd row "red" and so on. How can I set it that it could be readable every row easily. -- Adil Rauf Link to comment Share on other sites More sharing options...
jeffman Posted February 18, 2010 Share Posted February 18, 2010 I assume you are creating rows dynamically by looping through your data. You will need one CSS class for even rows, and one for odd rows. This link doesn't give you the whole answer, but it suggests a way of thinking about it.Depending on your content, it might make sense to apply the class to individual table cells in a row. But the principle is still the same. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.