Skip to content
Sign upLog in
How can I center my <H1> elements
Profile icon
TriciaKennedy

Trying to center h1 element tag

You are viewing a single comment. View All
Profile icon
Yamboy1

@TriciaKennedy
You could use the following css

img { margin-left: auto; margin-right: auto; display: block; }

Heres an example repl: https://repl.it/@Yamboy1/WellmadeOnerlookedSites