Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $n = 25;
- ?>
- <html>
- <head>
- <style>
- .box{
- border:solid 2px gray;
- text-align:center;
- font:monospace 14pt;
- padding: 10px;
- }
- </style>
- </head>
- <body>
- <h1>
- Salut de pe server, din PHP!
- </h1>
- <table>
- <?php
- for ($i = 1; $i <= $n ; $i++)
- {
- ?>
- <tr>
- <?php
- for($j=1 ; $j<=$n ; $j++)
- {
- ?>
- <td style="width:10px;background-color:<?=($i+$j)%2 == 1?"#532900":"#ffa74f" ?>" > </td>
- <?php
- }
- ?>
- </tr>
- <?php
- }
- ?>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement