Use fieldset for styling form elements
This commit is contained in:
@@ -386,6 +386,22 @@ ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
padding: 4px;
|
||||
border-radius: 8px;
|
||||
border: 2px var(--separator) solid;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
fieldset>legend {
|
||||
padding: 2px 8px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
border-radius: 8px;
|
||||
font-size: 1.1em;
|
||||
border-bottom: 2px var(--separator) solid;
|
||||
}
|
||||
|
||||
/* Forms*/
|
||||
|
||||
.form {
|
||||
|
@@ -57,6 +57,13 @@
|
||||
File <input type="file" name="file">
|
||||
<hr/>
|
||||
Color <input type="color" name="favcolor" value="#ff0000">
|
||||
<hr/>
|
||||
<fieldset>
|
||||
<legend>Legend</legend>
|
||||
<p>
|
||||
Fieldset
|
||||
</p>
|
||||
</fieldset>
|
||||
|
||||
<br/><br/>
|
||||
<iframe src="https://pixeldrain.com/u/Nygt1on4?embed" style="border: none; width: 800px; max-width: 100%; height: 600px; max-height: 100%; border-radius: 16px;"></iframe>
|
||||
|
Reference in New Issue
Block a user