@Hamzaouladev
Posted
hello @okutewonah
here are some tips to make your component more responsive:
-
always keep the height auto so it is up to the content of your component to set it, that way you wont run into overflowing issues.
-
use padding to create the space you need here instead of height, i invite you to read up on the box model to learn more, heres an article about it.
-
set the width of your component relatively eg:
width: 90%;
plus give it a max width with a set number eg:max-width: 800px;
that way your component will be responsive in all devices
hope you found this helpfull! keep hacking
Marked as helpful
@okutewonah
Posted
@Hamzaouladev thank you Hamza for this knowledge