This blog implements an HTML and CSS simple page effect instance
Index.html
1<! DOCTYPE html>234<meta charset="UTF-8">5<title>insert title here</title>6<link href="Style.css"Rel="stylesheet"Type="Text/css">78<body>9<divclass="Container">Ten<divclass="wrapper"> One<divclass="Heading"> A<divclass="Heading_nav"> -<divclass="Heading_title"> - Geek College the</div> -<divclass="Heading_navbar"> -<ul> -<li><a href="#"> Home </a></li> +<li><a href="#"> Career Courses </a></li> -<li><a href="#"> Technical Questions </a></li> +<li><a href="#">VIP member </a></li> A</ul> at</div> -<divclass="heading_img"> -"img.jpg"> -</div> -<divclass="Heading_soptlight"> -<form> in<input type="text"> -</form> to</div> +</div> -</div> the<divclass="Body"> *<divclass="Body_title"> $Panax Notoginseng<p> Join the Geek College to learn the latest practical tutorials to improve your technical capabilities </p> -</div> the + A</div> the +</div> - $<divclass="footing"> $ @ Geek College -</div> - the</div> -</body>WuyiCSS code:
1*{2 margin:0px;3 padding:0px;4 }5 6 body{7background-Color:snow;8 }9 . wrapper{TenWidth the%; One height:1000px; Abackground-Color:antiquewhite; - margin:0px Auto; - } the . heading{ -Width -%; - height:160px; -background-Color:snow; + margin:0px Auto; - } + ul{ Amargin-left:40px; at float: Left; -list-style-Type:none; -padding-top:40px; -padding-bottom:6px; - } - a:link,a:visited{ infont-Weight:bold; - Color:darkgray; totext-Align:center; + padding:6px; -text-Decoration:none; the } * a:hover,a:active{ $ Color:blue;Panax Notoginseng } - . heading_title{ the float: Left; +font-family:arial,helvetica,sans-serif; Afont-size:30px; the Color:burlywood; + } - . heading_nav{ $padding-bottom:30px; $padding-top:30px; -Width -%; - height:30px; the position:relative; - }Wuyi li{ thepadding-left:10px; - Display:inline; Wu } - About . heading_img img{ $border-radius:30px; - Display:inline; - width:46px; - height:46px; ABox-shadow:01px 1px Rgba (0,0,0,0.2); + float: Right; the } - $ . Heading_soptlight form{ the float: Right; the width:100px; the height:26px; the position:relative; -margin-right:82px; inmargin-top:16px; the } the form input{ About height:26px; theborder-radius:30px; the } the . body{ + Width:auto; - Height:auto; the padding:30px;Bayi } the . Body_title h3{ thefont-size:30px; -font-family:arial,helvetical,sans-serif; -color:#333333; the } the . Body_title p{ themargin-top:20px; themargin-bottom:20px; - } the . footing{ thepadding-top:20px; thetext-Align:center;94fon-size:10px; the Color:darkgray; the}
Effect:
HTML and CSS Simple page effect instance