Home › Forums › CSS › My background also moves whenever I type margine-top: 100px; on #showcase h1{} › Reply To: My background also moves whenever I type margine-top: 100px; on #showcase h1{}
October 13, 2017 at 2:16 am
#261284
Participant
Maybe you can use flexbox for this?
Add the following properties to your #showcase styling:
display: flex;flex-direction: column;align-items: center;justify-content: center;
and the header will be completely centered. And also the headers margin doesn’t cause your showcase div to move.