HTML CSS examples for CSS Layout:Position
Set a div at random position on a grid
<html> <head> <title>Lore</title> <style> TABLE {<!-- ww w .j ava 2s . com--> border-collapse:collapse; border:6px solid Chartreuse; background-color:yellow; } TD { border:6px solid blue; width:31px; height:31px; background-color:pink; } TD.selected { background-color:OrangeRed; } </style> </head> <body> <table class="alerts"> <tbody> <tr> <td class="selected"> </td>Lorem ipsum dolor si <td> </td>Lorem ipsum dol </tr>Lorem ips </tbody> </table> </body> </html>