Answers for "align the whole page in the center responsive"

2

css centraliz page

Use a container element and set a specific max-width.
A common width many websites use is 960px.
To actually center the page, add margin: auto.
The following example will center the website on screens that are wider than
500px.On screens that are less than 500px wide,
it will span the whole of the page:

<style>
.content {
  max-width: 500px;
  margin: auto;
}
</style>
<body>

<div class="content">
  <!-- Page content -->
</div>

</body>
Posted by: Guest on September-24-2020
0

how to make web page center

#page-wrap {
     width: 800px;
     margin: 0 auto;
}
Posted by: Guest on August-30-2020

Code answers related to "align the whole page in the center responsive"

Browse Popular Code Answers by Language