fix: add clear property to floated elements
Added the clear property to both .alignright and .alignleft classes to prevent content wrapping issues. This change ensures that elements following these classes start on a new line, maintaining the intended layout and improving readability.
This commit is contained in:
parent
c0665e0444
commit
c3914f083d
1 changed files with 3 additions and 1 deletions
|
@ -188,12 +188,14 @@ a h5 {
|
||||||
|
|
||||||
.alignright {
|
.alignright {
|
||||||
float: right;
|
float: right;
|
||||||
|
clear: right;
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;;
|
||||||
}
|
}
|
||||||
|
|
||||||
.alignleft {
|
.alignleft {
|
||||||
float: left;
|
float: left;
|
||||||
|
clear: left;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue