*{ margin:0; padding: 0; box-sizing: border-box; } a { color:#fff; text-decoration:underline; } html { height:100%; } body { min-height:100%; padding-bottom:50px; position:relative; } header ,.hero ,#section1 ,#section2 ,#section3 ,#section4 { position: relative; } .note { position: absolute; color:#e01a4f; font-size:14px; font-family: sans-serif; } .note.header { top:15px; left: 100px; font-size:12px; } .note.hero { top:0; right: 50px; } .note.id { top:30px; left:50%; } .note.name { top:-30px; left:40%; } .note.aside { top:120px; right:10px; color:#f15946; text-align:left; } .note.section1 { top:60px; left:600px; } .note.section1-1 { right:50px; top:200px; } .note.h2 { left:300px; top: 60px; } .note.section2-1 { right:350px; top:250px; } .note.imgcontainer { right:50px; top:50%; } .note.main { top:140px; left:50%; } .note.footer { right:50px; } .note.header, .note.aside { color:#fff; } .note.ul { top:150px; left:450px; } .note.background { right:50px; top:100px; } nav { height:50px; line-height: 50px; clear:both; padding: 0 10px; color:#fff; background:#666; } nav ul { float:right; list-style:none; } nav li { display: inline; margin:0 10px; } .hero { min-height:300px; text-align: center; line-height: 300px; background: fixed url(https://placehold.co/600x400/orange/orange); background-size: cover; } h1 { font-size:50px; } h1 span { font-size:25px; } aside { position:absolute; z-index: 100; background: #666; text-align: center; width:400px; padding: 50px; height:300px; color:#fff; } aside ul { list-style: none; } section:is(#section1,#section2,#section3,#section4) { min-height:400px; } section:is(#section2,#section3,#section4) ul { padding-left:50px; margin:50px 0 50px 0; } #section2 { background:fixed url(https://4icsshu.github.io/i/img3.jpg) no-repeat center center; background-size: cover; } #section1 ul { margin:50px 0; } h2 { padding:50px 50px; background: #eee; } #section1 h2 { padding-left:450px; } #section1 ul { padding-left:450px; } main { width:60%; padding:50px; margin:0 auto; background: #ccc; border-radius:10px; margin-top:30px; } section:is(.imgcontainer) { text-align:center; margin-top:50px; } section:is(.imgcontainer) img { height:300px; margin:0 10px; } footer { position:absolute; bottom:0; width:100%; background:pink; height:50px; line-height: 50px; text-align:center; }