Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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{}

#261284
JeroenR
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.