mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:08:10 +00:00
LibWeb: Implement the align attribute for divs
As specified in section 15.3.3 of the HTML spec.
This commit is contained in:
parent
4ac7c41483
commit
23aae7c7f3
6 changed files with 154 additions and 0 deletions
13
Tests/LibWeb/Layout/input/div_align.html
Normal file
13
Tests/LibWeb/Layout/input/div_align.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<style>
|
||||
.square {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color:green;
|
||||
margin: 20px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div align="left">This text and the green square are both left aligned: <div class="square"></div></div>
|
||||
<div align="center">This text and the green square are both centered: <div class="square"></div></div>
|
||||
<div align="right">This text and the green square are both right aligned: <div class="square"></div></div>
|
||||
<div align="justify">This text is 'full-justified' and the green square is left aligned: <div class="square"></div></div>
|
Loading…
Add table
Add a link
Reference in a new issue