Workshops

Screen Shot 2014-11-18 at 11.40.37 Screen Shot 2014-11-18 at 11.37.39 Screen Shot 2014-11-18 at 11.37.28 Screen Shot 2014-11-18 at 11.37.49 Screen Shot 2014-11-18 at 11.37.39http://127.0.0.1:62939/index.html
.container {
width: 900px;
margin-left: auto;
margin-right: auto;
background: #daddda
}
.box {
width: 273px;
float: left;
padding: 10px;
margin-right: 10px;
background: #daddda
}

.right-box {
margin-right: 0px;
}

.box-img {
width: 100%;
padding: 1px;

}

<!doctype html>
<html>

<head>
<title>Format Code</title>
<link href=”css/styles.css” rel=”stylesheet” >
</head>

<body>
<div class=”container”>
<h1> Home Page</h1>
<div class=”box”>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam imperdiet varius blandit. Aliquam erat volutpat. Sed nisi mauris, pellentesque eu nibh in, tincidunt bibendum erat. Nullam et tincidunt dolor, non mollis velit.</p>
<img class=”box-img” src=”images/beach-huts.jpg” >

</div>

<div class=”box”>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam imperdiet varius blandit. Aliquam erat volutpat. Sed nisi mauris, pellentesque eu nibh in, tincidunt bibendum erat. Nullam et tincidunt dolor, non mollis velit.</p>
<img class=”box-img” src=”images/beach-huts.jpg” >
</div>

<div class=”box right-box”>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam imperdiet varius blandit. Aliquam erat volutpat. Sed nisi mauris, pellentesque eu nibh in, tincidunt bibendum erat. Nullam et tincidunt dolor, non mollis velit.</p>
<img class=”box-img” src=”images/beach-huts.jpg”>
</div>

</div>
</body>
</html>

body{
background: url(../images/pier.jpg) no-repeat center center fixed;
background-size: cover;

}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s