As I embark on my journey to learn HTML/CSS, I am experimenting with different examples. Currently, I am struggling to create a div that resembles what I envision due to the content being 'glued' together.
I have attempted various methods, but none of them come close to achieving the desired outcome. Given my lack of experience in HTML/CSS, this task has proven challenging.
If you were to execute the code below, you would observe that it is far from ideal. The text lacks spacing, vertical alignment is off, and centralizing the size within the div eludes me.
Below is the snippet of my code:
<div style={{ background: '#e1e1e1', marginBottom: '5px' }}>
<span id="delete" style={{ float: 'right', display: 'inline-block', padding: '2px 5px' }}>
x
</span>
<i className="icon ion-md-checkmark-circle" />
TestImg1.PNG
3.98KB
</div>
I would greatly appreciate any guidance on how to achieve this design along with an explanation so that I can enhance my learning process. Thank you and best regards!
Many thanks!