Expand|Select|Wrap|Line Numbers
- <!DOCTYPE html>
- <html>
- <head>
- <title>Page Title</title>
- <link href="style3test.css" rel="stylesheet" type="text/css"/>
- </head>
- <body>
- <div id="wrapper">
- <header>
- <div id="logo" >
- <h2> Company <br> Logo</h2>
- </div>
- <div id="contactbox">
- <div id="contacttext">
- <p>02 9988 7766 (p)<br/>
- info@company.com (e)<br/>
- www.company.com (w)</p>
- </div>
- </div>
- </header>
- <section>
- <div id ="right">
- <div id="gallery">
- <h3>Gallery</h3>
- </div>
- <div class = "item">
- <img src="http://bytes.com/images/personalImage.jpg" style ="float: left; width: 25%%; margin-left: 5%;"
- alt="Gallerylayout"/>
- <span class = "caption">Text below image</span>
- </div>
- <div class = "item">
- <img src="http://bytes.com/images/personalImage.jpg" style ="float: left; width: 25%; margin-left: 5%;"
- alt="Gallerylayout"/>
- </div>
- <div class = "item">
- <img src="http://bytes.com/images/personalImage.jpg" style ="float: left; width: 25%; margin-left: 5%;"
- alt="Gallerylayout"/>
- </div>
- <div class = "item">
- <img src="http://bytes.com/images/personalImage.jpg" style ="float: left; width: 25%; margin-left: 5%;"
- alt="Gallerylayout"/>
- </div>
- <div class = "item">
- <img src="http://bytes.com/images/personalImage.jpg" style ="float: left; width: 25%; margin-left: 5%;"
- alt="Gallerylayout"/>
- </div>
- <div class = "item">
- <img src="http://bytes.com/images/personalImage.jpg" style ="float: left; width: 25%; margin-left: 5%;"
- alt="Gallerylayout"/>
- </div>
- </div>
- <div id="left">
- <div id="nav">
- <h3>Navigation</h3>
- </div>
- <div id ="text">
- <ul style="list-style-type: none;">
- <li>>Home</li>
- <li>>About Us</li>
- <li>>Gallery</li>
- <li>>Contact Us</li>
- </ul>
- </div>
- </div>
- </section>
- <footer>
- <p>Copyright 2012 Company Name</p>
- </footer>
- </div>
- </body>
- </html>
Expand|Select|Wrap|Line Numbers
- /*@ charset="UTF-8";*/
- body{
- background-color:grey;
- font-family: ;
- margin: 0;
- }
- #wrapper
- {
- background-color: #fff;
- margin-left:auto;
- margin-right:auto;
- width:900px;
- padding:10px;
- }
- header
- {
- background-color: yellow;
- min-height: 180px;
- padding-top: 10px;
- padding-left: 10px;
- padding-right:10px;
- padding-bottom: 10px;
- margin-bottom:10px;
- }
- #logo
- {
- background-color:grey;
- color:black;
- font-size: 1.9em;
- font-family: Verdina;
- float:left;
- text-align: center;
- width: 300px;
- height:180px;
- margin:auto;
- }
- #contactbox
- {
- background-color:grey;
- float:right;
- width: 300px;
- height:180px;
- padding-right: 3%;
- }
- #contacttext
- {
- font-size: 1.3em;
- color:black;
- text-align:right;
- font-weight: bold;
- padding-top: 20px;
- line-height: 150%;
- }
- #right{
- background-color: green;
- margin-bottom:1%;
- margin-top: 1%;
- width:580px;
- height:600px;
- float:right;
- display: inline-block;
- }
- #gallery{
- text-indent:20px;
- font-size: 18px;
- }
- .item
- {
- float:left;
- }
- #caption{
- display: block;
- text-align: left;a
- }
- #left{
- background-color: blue;
- margin-bottom:2%;
- margin-top:1%;
- width:300px;
- height:600px;
- float:left;
- }
- #text{
- text-indent: -20px;
- color: white;
- line-height: 200%;
- }
- #nav{
- text-indent: 20px;
- font-size: 18px;
- }
- footer
- {
- background-color: pink;
- padding-top: 1%;
- padding-right: 2%;
- padding-left: 2%;
- padding-bottom: 2%;
- height:40px;
- clear:both;
- text-align:center;
- }
please help me thanks