separating tables through css and html -
i brand new web development , coding , wondering code separating 2 of tables? couple of lines down?
<table border="1" width="35%" cellspacing="10" cellpadding="5"> <tr> <th colspan="2"><h3>future car's</h3></th> <td>lincoln</td> <td>bmw</td> <td>mercedes</td> </tr> <tr> <th colspan="2"><h3>plan's future</h3></th> <td>web development job</td> <td>san francisco</td> <td>create web sites</td> </tr> </table> thanks
you need create 2 separate tables. i'd advise styling in separate css file , include in html cleaner code.
<table border="1" width="35%" cellspacing="10" cellpadding="5" style="margin-bottom: 20px"> <tr> <th colspan="2"><h3>future car's</h3></th> <td>lincoln</td> <td>bmw</td> <td>mercedes</td> </tr> <tr> <th colspan="2"><h3>plan's future</h3></th> <td>web development job</td> <td>san francisco</td> <td>create web sites</td> </tr> </table> <table border="1" width="35%" cellspacing="10" cellpadding="5"> <tr> <th colspan="2"><h3>future car's</h3></th> <td>lincoln</td> <td>bmw</td> <td>mercedes</td> </tr> <tr> <th colspan="2"><h3>plan's future</h3></th> <td>web development job</td> <td>san francisco</td> <td>create web sites</td> </tr> </table> this give 20px distance between tables. can adjust according need.
Comments
Post a Comment