As both is block element?
You could do that using or flex-box or css-grid, check one of the two, or review them and expand on what you know if you have already done the course on them
Can’t answer you now - totally impossible to open on mobile
a div with
<div class="style=display: flex;">here the p tag and button</div>
why don’t you put that in the style tag?
But, it may be correct m
Hi, in order to make those elements side by side, you dont need another element to wrap them and then display that parent element as a flex or grid container. Instead, you only need to specify P tag to become inline-block element, so that button gets to its side. just like this “
<p style="display:inline-block;”>" , cheers.
Done. Check the link. I styled display property of p element to inline. Float and flex would have been great too but then you would need to put both the p tag and button in a parent container to control the width.
I personally prefer the container method.
Makes reading DOM so much easier.
Btw,. I would stay away from using