flexbox

DIVS around a shape

↘锁芯ラ 提交于 2020-05-28 04:19:02
问题 I've been working on a CSS Grid with elements floating around another one but it is not working for me. I could use CSS Grid to achieve this task, but don't think it's the right solution. I read about shape-outside but only works for text blocks, have someone had the same issue before? If someone has any idea, could give me a hand, please? https://jsfiddle.net/rodboc/L03o6pyv/ .circle { width: 5px; height: 5px; overflow: hidden; background: #ccc; border-radius: 50%; padding: 0; margin: 3px;

DIVS around a shape

我的未来我决定 提交于 2020-05-28 04:15:05
问题 I've been working on a CSS Grid with elements floating around another one but it is not working for me. I could use CSS Grid to achieve this task, but don't think it's the right solution. I read about shape-outside but only works for text blocks, have someone had the same issue before? If someone has any idea, could give me a hand, please? https://jsfiddle.net/rodboc/L03o6pyv/ .circle { width: 5px; height: 5px; overflow: hidden; background: #ccc; border-radius: 50%; padding: 0; margin: 3px;

DIVS around a shape

半世苍凉 提交于 2020-05-28 04:14:59
问题 I've been working on a CSS Grid with elements floating around another one but it is not working for me. I could use CSS Grid to achieve this task, but don't think it's the right solution. I read about shape-outside but only works for text blocks, have someone had the same issue before? If someone has any idea, could give me a hand, please? https://jsfiddle.net/rodboc/L03o6pyv/ .circle { width: 5px; height: 5px; overflow: hidden; background: #ccc; border-radius: 50%; padding: 0; margin: 3px;

Flex items overflowing in Firefox [duplicate]

戏子无情 提交于 2020-05-27 04:38:51
问题 This question already has answers here : input / button elements not shrinking in a flex container (2 answers) Why don't flex items shrink past content size? (1 answer) Closed 2 years ago . I'm trying to create a form with first row a single text field 100% width and 2nd row 3 fields equidistant. It works fine on Chrome. However it's overflowing on FireFox. .form { display: flex; flex-direction: column; width: 300px; justify-content: center; align-items: center; margin: 0 auto; } .form input

How to set the style attribution to fill the rest space?

老子叫甜甜 提交于 2020-05-26 10:41:41
问题 As you see the image, if the three red views are already added on the parent view. Now I want to add another blue view which can fill the rest space. How can I set the style? 回答1: You can try this; <View style={{flex:1,backgroundColor:'white'}}> <View style={{justifyContent:'space-around'}}> <View style={{height:50,alignSelf:'stretch',backgroundColor:'pink',margin:5}}/> <View style={{height:50,alignSelf:'stretch',backgroundColor:'pink',marginHorizontal:5}}/> <View style={{height:50,alignSelf:

CSS flex box last space removed

余生颓废 提交于 2020-05-25 09:05:27
问题 By setting the display of an item to flex I am finding the last space is removed from a text string so. <div class="has_flex"> Some text <a href="link">Link</a></div> Becomes <div class="has_flex"> Some text<a href="link">Link</a></div> .has_flex { display: flex; } <div class="no__flex">Some text <a href="link">Link</a></div> <div class="has_flex">Some text <a href="link">Link</a></div> I have wrapped the text in a span and that makes no difference. 回答1: Reason When you don't use display:

Difference between width: 50% and flex: 50% in a CSS flexbox?

一曲冷凌霜 提交于 2020-05-25 05:52:05
问题 When its container has a display for flex, what is the difference between setting an element to be flex: 50% and width: 50%. The outcome appears to be the same: ul { display: flex; flex-flow: row wrap; } .table a { flex: 50%; background: grey; } .table2 a { width: 50%; background: grey; } <ul class="table"> <a href="#">ad ds fdsaf dsfa dsfj dsf dsfj lkdsjflkdsa jflkdsja lkfjdslkjfldska jlkfdsajlkdjslkajflkd sjalkfjdslkjdsalkjdlakjfldksjflkdsjflkdsjd fdsd</a> <a href="#">b</a> <a href="#">c</a

Flexbox body and main min-height

微笑、不失礼 提交于 2020-05-25 04:25:03
问题 https://jsfiddle.net/vz7cLmxy/ I'm trying to have the body to expand but the min-height does not work. I've read other related topics but can't get my head around it. CSS and html body, html { padding: 0; margin: 0; min-height: 100%; } body { display: flex; background: #eee; flex-direction: column; } .menu { background: red; color: #fff; padding: 10px; } .wrap { display: flex; } .sidebar { background: #ddd; width: 300px; } .main { background: #ccc; flex: 1; } .footer { background: #000; color

How to remove border from elements in the last row?

≡放荡痞女 提交于 2020-05-23 08:00:09
问题 My layout is something like this (I'm typing a simplified version with inline styles instead of classes) .qa { border-bottom: 1px solid #ccc; } <div style="display: flex; flex-wrap: wrap; flex-direction: row"> <div class="qa" style="width:50%;"> <div>Question</div> <div>Answer</div> </div> <div class="qa" style="width:50%;"> <div>Question</div> <div>Answer</div> </div> <div class="qa" style="width:50%;"> <div>Question</div> <div>Answer</div> </div> <div class="qa" style="width:50%;"> <div

How to allow flex in Vuetify to exclude a header when vertically shrinking a video

心不动则不痛 提交于 2020-05-17 07:06:38
问题 I am trying to make a <video> to be constrained to the available area in the browser. This is mostly working -- the video is growing and shrinking both horizontally and vertically as the window is reshaped. However, when the height is less than the natural height of the video, the flex spacing is including the height of a <div> right above it: See this fiddle: https://jsfiddle.net/CodeVirtue/z26tc7Ld/47/ Shrink the rendered frame so that it causes the picture to shrink vertically. Notice a