I’d like some feedback on my survey project. The feedback I got on the tribute project was very valuable. I really appreciate it!
I have one question: I made .submit and #textarea look centered by using width: 100%;. How do i center them for real? E.g. if wanted width: 50%;, but still wanted them centered?
I was playing around in your CodePen and FlexBox is probably the best way based on how you have it currently coded.
Consolidate the “comments” into its own div. Noticed I also changed the button and gave it a new class div-button:
<div class="comments">
<p>Give any comments down below if you have them:</p>
<textarea id="textarea" rows="5" cols="45"></textarea>
<button type="submit" id="submit" class="submit div-button" form="survey-form" value="submit">Submit</button>
</div>
Set comments as a flex container and define how to align the child items: