css - Align Icons at top without offsetting height -


i trying align camera icons @ top directly below it's easy as title. when increase amount of text below title pushes down other components.

<h2>its easy ...</h2> <div style={{margin: '10px 0', display: 'inline-block'}}> //wrapper 3       // icon title component     <div style={{display: 'inline-block', margin: '20px 10px', width: '200px'}}>       <div style={{margin: '0 0 10px'}}>         <fontawesome name="camera" size="4x"/>       </div>       <div>         <h3 style={{margin: '10px 0'}}>{title}</h3>         <div>{desc}</div>       </div>     </div>     ...repeat 2 more others </div> 

i passing in text in desc attribute , when text long pushes other components down.

i tried setting fixed height increased overall height of components.

how align icons long text in desc field not affect other components height?

enter image description here

you try make top level div have following...

<div style={{margin: '10px 0', display: 'flex', alignitems: 'start', justifycontent: 'center'}}> 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -