Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>First Steps Into PHP</title>
- <style>
- div {
- display: inline-block;
- margin: 5px;
- width: 20px;
- height: 20px;
- }
- </style>
- </head>
- <body>
- <?php
- for ($i = 0; $i <=204; $i+=51){
- for ($j = $i; $j <=$i+45; $j+=5){
- ?>
- <div style="background-color: rgb(<?=$j?>, <?=$j?>, <?=$j?>)"></div>
- <?php
- }
- echo "<br />";
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement