diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-10-16 20:32:17 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-16 20:32:17 +0200 |
commit | 6dbba6ad857e2d9554c33c4c67a21e34b2903552 (patch) | |
tree | efb7f529ce7f3845f8a4e3de068a8f17eceeb07e /Base/home | |
parent | 2366c330e3e1aa00306970a571d19d895bd9dd95 (diff) | |
download | serenity-6dbba6ad857e2d9554c33c4c67a21e34b2903552.zip |
LibHTML: Implement CSS text-align: left/center/right
This was easier than I imagined; we just shift each line box to the
left based on the alignment and the remaining space on each line. :^)
Diffstat (limited to 'Base/home')
-rw-r--r-- | Base/home/anon/www/lorem.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Base/home/anon/www/lorem.html b/Base/home/anon/www/lorem.html index cb8f3e26c8..b14519a382 100644 --- a/Base/home/anon/www/lorem.html +++ b/Base/home/anon/www/lorem.html @@ -1,5 +1,8 @@ <html> <head><title>Lorem Ipsum</title></head> +<style> +p { text-align: right; } +</style> <body> <h1>Lorem Ipsum</h1> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In non elit dignissim, lobortis velit id, rutrum enim. Fusce urna nulla, semper in nisl consectetur, dictum dignissim felis. Vivamus mollis porttitor neque non pulvinar. Donec sollicitudin pulvinar nisi, nec vestibulum massa rutrum id. Aenean convallis tincidunt diam vel egestas. Pellentesque laoreet commodo arcu id dignissim. Etiam mattis elementum lectus, ut ultricies nibh dapibus sit amet. Curabitur sodales cursus ipsum vitae porttitor. Vestibulum ac nulla auctor, imperdiet augue accumsan, ornare eros.</p> |