For my assignment, I am working on setting up a menu website and I want to create a floating side div for the order summary.
If you need a visual reference, you can check out this Figma design:
Just to clarify, this is my first time dealing with coding so everything is pretty new to me.
I have managed to set up the div and grid structure, but struggling to add content without breaking things.
The issue I'm facing is that the buttons at the bottom either don't align properly or go beyond the div container. Is this a problem with the div itself or the content within?
Also, I was wondering if there is a way to remove an item using the "remove" button. Would I need to use JavaScript for that?
You can find the code I've been working on here: https://jsfiddle.net/93bqypdu/1/
<div class="grid-container">
<div class="a">a</div><div class="a">a</div><div class="a">a</div>
<div class="a">a</div><div class="a">a</div><div class="a">a</div>
<div class="a">a</div><div class="a">a</div><div class="a">a</div>
<div class="a">a</div><div class="a">a</div><div class="a">a</div>
</div>
<div class="side">
<img src="https://images2.imgbox.com/f6/96/uf0fayVE_o.png" width="150vh"
height="auto" class="pic">
<div class="content">Lorem Ipsum</div>
<div class="sbutt">
CANCEL
</div>
<div class="sbutt">
ORDER
</div>
</div>