Eureka Moment Wiki

One eureka moment at the time

User Tools

Site Tools


development:css:cent_wp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

development:css:cent_wp [2017/12/12 10:01] (current)
tplecko created
Line 1: Line 1:
 +====== Centering a web page with CSS ======
 +Web page DIV:
 +<code html>
 +<div id="​page-wrap"><​br /> <!-- all websites HTML here --></​div>​
 +</​code>​
 +And CSS:
 +<code css>
 +#page-wrap {
 +width: 800px;
 +margin: 0 auto;
 +}
 +</​code>​
 +
  
development/css/cent_wp.txt · Last modified: 2017/12/12 10:01 by tplecko