Test: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
<html> | <html> | ||
<head> | <head> | ||
<style> | |||
<style> | .div1 { | ||
width: 300px; | |||
height: 100px; | |||
border: 1px solid blue; | |||
} | } | ||
. | .div2 { | ||
width: 300px; | |||
height: 100px; | |||
padding: 50px; | |||
border: 1px solid red; | |||
padding: | |||
} | } | ||
</style> | </style> | ||
Line 103: | Line 19: | ||
<body> | <body> | ||
<div class=" | <div class="div1">This div is smaller (width is 300px and height is 100px).</div> | ||
<br> | |||
<div class="div2">This div is bigger (width is also 300px and height is 100px).</div> | |||
</div> | |||
</body> | </body> | ||
</html> | </html> |
Revision as of 05:58, 24 July 2020
<!DOCTYPE html>
This div is smaller (width is 300px and height is 100px).
This div is bigger (width is also 300px and height is 100px).