Answers for "make text in the center of the page in html css"

1

css text align center

body {
  text-align: center;
}
Posted by: Guest on April-09-2020
4

center a div

<div id="outer">
  <div id="inner">Foo foo</div>
</div>
//css:, demo with border
<style>
#inner {
  display: table;
  margin: 0 auto;
  border: 1px solid black;
}

#outer {
  border: 1px solid red;
  width:100%
}
</style>
Posted by: Guest on August-20-2020

Code answers related to "make text in the center of the page in html css"

Browse Popular Code Answers by Language