diff options
author | MacDue <macdue@dueutil.tech> | 2022-07-04 21:11:57 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-04 23:09:06 +0200 |
commit | 304e0966aa55a142f5ec4269758219ca1cf43ffb (patch) | |
tree | 5e81a1b17b2bb9dc949ab486000c6478c86da0ec /Base/res | |
parent | b21d95bbe32f7519db60a2b4abce7fe82194240d (diff) | |
download | serenity-304e0966aa55a142f5ec4269758219ca1cf43ffb.zip |
Base: Add some border-radius + overflow: hidden HTML examples
Diffstat (limited to 'Base/res')
-rw-r--r-- | Base/res/html/misc/border-radius.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Base/res/html/misc/border-radius.html b/Base/res/html/misc/border-radius.html index 63fe0c8c2f..ab7c840537 100644 --- a/Base/res/html/misc/border-radius.html +++ b/Base/res/html/misc/border-radius.html @@ -311,6 +311,27 @@ <br> <br> + <p>The all have a border-radius +/- overflow: hidden, which clips their child elements<p> + <em>Lorem ipsum, <b>without</b> overflow: hidden</em> + <div style="width: 200px; height: 200px; border-radius: 30%; background-color: brown"> + <span>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</span> + </div> + <br> + <em>Lorem ipsum, <b>with</b> overflow: hidden</em> + <div style="width: 200px; height: 200px; border-radius: 30%; background-color: brown; overflow: hidden;"> + <span>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</span> + </div> + <br> + <em>An image inside a inline-block <code><a></code> tag, with a border-radius of 50% and overflow: hidden</em> + <br> + (this is commonly used for avatars and occurs GitHub a few times) + <br> + <a style="display: inline-block; border-radius: 50%; overflow: hidden; width: 100px; height: 100px;"> + <img src="car.png" style="width: 100px; height: 100px"> + </a> + <br> + <br> + <p>The boxes are 50x50px</p> <em>All round 10px</em> <div class="box box-1"></div> |