Having CSS Issue where putting margin in inner divs moves my whole component
Hey all . I am having an issue where i put a background color on my component but if i put margin in my inner div in the compoonent it moves the whole component. I am using the Flynt Wordpress Theme
Twig/HTML
3 Replies
Right now if i put a margin top for example in div class content it basically moves my whole component. i want to keep my background color where it is and just move the content within, but...
I think you’re looking for padding , not margin , if you want to create space between the edge of the bg color and the content inside .
Thanks dude , yeah you have a point padding works like a charm