Home>
Using flexbox sometimes creates strange margins.
In the following code, there is an unset blank between A and B, but the cause is unknown.
Thank you.
test
<ul>
<li>
<dl>
<dt>A</dt>
Contains<dd>text.</dd>
</dl>
</li>
<Li>
<dl>
<dt>B</dt>
Contains<dd>text.</dd>
</dl>
</li>
<li>
<dl>
<dt>C</dt>
Contains<dd>text.</dd>
</dl>
</li>
<li>
<dl>
<dt>D</dt>
Contains<dd>text.</dd>
</dl>
</li>
</ul>
. flex {
width: 100%;
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: -o-flex;
display: flex;
}
.Area {
.title {
font-size: 1.8rem;
font-weight: bold;
text-align: center;
margin-bottom: 30px;
}
}
.box {
flex-wrap: wrap;
li {
width: 100%;
}
}
.menu {
width: 100%;
padding: 10px 15px;
background-color: rgba (# 333, .9);
font-weight: bold;
margin-bottom: 15px;
.name {
width: 100%;
}
.price {
color: lighten (# f99,20%);
width: 100%;
}
}
-
Answer # 1
Related articles
- html - svg is not displayed when displaying pagenation using vuetify
- html - accordion using jquery, want to change the parent element of the pressed button
- html - implementation with vertical lines using border property in css
- html - how to make hp using gatsbyjs
- html - i want to eliminate unnatural margins (blanks) under the div on both smartphones and pcs
- html - how to provide margins only between sibling elements when many inline-block elements are lined up
- i don't know how to remove some lines using php: fopen ()
- html - i want to insert a border using the before element
- html - i want to create a responsive design using bootstrap
- html - i want to center the buttons displayed using simplepaginationjs
- html - pros and cons of using "display:none" in responsive design
- html - i want to insert an image in table tag using background-image
- html - i want to remove the effect of url (scroll up without permission) while keeping the effect of a tag
- html - the behavior of the hamburger menu on browser back is strange
- html - i want to make the design using position:relative, position:absolute responsive without breaking it
- html - data cannot be acquired when using firebase (firestore) with wkwebview in monaca
- html - i want to remove the specific child element from the padding applied to the parent element
- html - in line, a line break cannot be made in a text message using https://lineme/r/msg/text/?
- html - i want to create a child menu in the navigation menu using css
- to remove the target of list (array) in python by using remove()
Related questions
- html : How and on what to write your grid?
- html : How do I implement this for a button?
- html : The shadow adjusts to the button, not the picture inside
- html : Element heights are not aligned in flexbox
- html : Border property not working in scss
- javascript : How to bind a video to a button?
- javascript : How to make an exit block when pressed
- javascript : How to make datalist open only after entering 3 characters
- html : How to arrange blocks side by side?
- html : Text under the picture CSS