html - how to use class regarding table td border -
following code gives result: http://prntscr.com/9ziq5j
i want result: http://prntscr.com/9zis9g
so, question how use class on td tag!
i mean how give class id first 2 td's in order make them borderless?
<html> <head> <style> td {border: 0px solid black;} </style> </head> <body> <table width="600" border="1"> <tr> <td width="600"> england </td> </tr> <tr> <td width="600"> france </td> </tr> <tr> <td width="600"> japan </td> </tr> <tr> <td width="600"> china </td> </tr> </table> </body> </html>
you can use css right? html be:
<html> <head> <style> td.england {border: 0px;} td.france {border-bottom: 2px solid black;} td.japan {border-bottom: 2px solid black;} td.china {border-bottom: 2px solid black;} </style> </head> <body> <table width="600" border="1"> <tr> <td width="600" class="england"> england </td> </tr> <tr> <td width="600" class="france"> france </td> </tr> <tr> <td width="600" class="japan"> japan </td> </tr> <tr> <td width="600" class="china"> china </td> </tr> </table> </body> </html>
Comments
Post a Comment