Kit Ho
Kit Ho

Reputation: 26968

HTML5: How can I style my <header>, <footer> section into center position?

I found that in HTML5, we need to use <header>, <footer> tag instead of <div> tag , better approach?

However, I can't find any solution to style the into center position?

Who can Help?

in CSS,

header{
???
???
}

Upvotes: 2

Views: 12081

Answers (1)

Matheus Salmi
Matheus Salmi

Reputation: 266

header, footer {
   margin: auto;
   width: somePXvalue px;
}

Upvotes: 7

Related Questions