Friday, November 29, 2019

CSS Two-Column Page Layout

CSS Two-Column Page Layout HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Lighthouse Island Bistro</title>
    <meta charset="utf-8">
    <style>
        body{font-family: Verdana,Arial,sans-serif;
            background-color: #00005D;}
        
        #wrapper{background-color: #b3c7e6;
                width: 80%;
                margin: auto;
                min-width: 850px;}
        
        #leftcolumn{float: left;
                    width: 150px;}
    
        #rightcolumn{margin-left: 155px;
                    background-color: #ffffff;}
        
        header{background-color: #869dc7;
                color: #00005D;
                font-size: 150%;
                padding: 10px;}
        
        h2{color: #869dc7;
            font-family: arial,sans-serif;}
        
        .content{padding: 20px 20px 0 20px;}
        
        #floatright{margin: 10px;
                    float:right;}
        
        footer{font-size: 70%;
                text-align: center;
                clear: right;
                padding-bottom: 20px;}
        
        nav a{margin: 30px;}
    </style>
</head>
<body>
    <div id="wrapper">
        <div id="leftcolumn">
        <nav>
            <a href="index.html">Home</a>
            <a href="rooms.html">Menu</a>
            <a href="directions.html">Directions</a>
            <a href="contact.html">Contact</a>    
        </nav>
        </div>
    <div id="rightcolumn">
        <header>
        <h1>Lighthouse Island Bistro</h1>
        </header>
        <div class="content">
            <img src="lighthouseisland.jpg" width="250" height="355" id="floatright" alt="Lighthouse Island">
        <h2>Locally Roasted Free-Trade Coffee</h2>
        <p>Indulge in the aroma of freshly ground roast coffee.Specialty drinks are available hor or cold.</p>
        <h2>Specialty Pastries</h2>
        <p>Enjoy a selection of our fresh-baked,organic pastries,including fresh-fruits muffins,scones,croissants,and cinammon rolls.</p>
        <h2>Lunchtime is Anytime</h2>
        <p>Savor delicious wraps and sandwiches on hearty,whole-grain breads with locally-grown salad,fruit,and vegetables.</p>
        <h2>Panoramic View</h2>
        <p>Take in some scenery! The top of our lighthouse offers a panoramic view of the countryside. Challenge your friends to climb our 100-stair tower.</p>
        </div>
        <footer>Copyright &copy; 2014</footer>
        </div>
    </div>
    </body>

</html>

Output


Floating Image & Bistro Blog

Floating Image HTML

<!DOCTYPE html>
<html>
<head>
<style>
div.gallery {
  margin: 5px;
  border: 1px solid #ccc;
  float: left;
  width: 180px;
}

div.gallery:hover {
  border: 1px solid #777;
}

div.gallery img {
  width: 100%;
  height: auto;
}

div.desc {
  padding: 9px;
  text-align: center;
  font-size: smaller;
}
</style>
</head>
<body>
   <h1>Floating Images</h1>

<div class="gallery">
  <a target="_blank" href="photo1.jpg">
    <img src="photo1.jpg" alt="Golden Gate Bridge" width="600" height="400">
  </a>
  <div class="desc">Golden Gate Bridge</div>
</div>

<div class="gallery">
  <a target="_blank" href="photo2.jpg">
    <img src="photo2.jpg" alt="Rocky Shoreline" width="600" height="400">
  </a>
  <div class="desc">Rocky Shoreline</div>
</div>

<div class="gallery">
  <a target="_blank" href="photo3.jpg">
    <img src="photo3.jpg" alt="Waves Crashing" width="600" height="400">
  </a>
  <div class="desc">Waves Crashing</div>
</div>

<div class="gallery">
  <a target="_blank" href="photo4.jpg">
    <img src="photo4.jpg" alt="Ocean Sunset" width="600" height="400">
  </a>
  <div class="desc">Ocean Sunset</div>
</div>

<div class="gallery">
  <a target="_blank" href="photo5.jpg">
    <img src="photo5.jpg" alt="Waterfall On The Beach" width="600" height="400">
  </a>
  <div class="desc">Waterfall On The Beach</div>
</div>

<div class="gallery">
  <a target="_blank" href="photo6.jpg">
    <img src="photo6.jpg" alt="Fog Moving In" width="600" height="400">
  </a>
  <div class="desc">Fog Moving In</div>
</div>

</body>
</html>

Output



Bistro Blog HTML

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Lighthouse Island Bistro</title>
        <meta charset="utf-8">
        <link rel="stylesheet" href="lighthouse.css">
    </head>
    <body>
        <div id="wrapper">
            <header>
                <h1>Lighthouse Island Bistro</h1>
                <h6>the best coffee on the coast</h6>
            </header>
            <nav>
            <ul>
                <li><a href="index.html">Home</a></li>
                <li><a href="rooms.html">Menu</a></li>
                <li><a href="directions.html">Directions</a></li>
                <li><a href="contact.html">Contact</a></li>
                </ul>
            </nav>
        <div id="content">
            <h5 id="box">Watch for the March Madness Wrap next month!</h5>
            <h2>Bistro Blog</h2>
            <h2><font color="#000066"> Hari Malaysia Wrap</font></h2>
            <p>September 16,2019</p>
            <p>The September special sandwich is the Hari Malaysia Wrap - heart-healthy organic chicken with roasted red peppers on a whole wheat wrap.</p>
            <h2><font color="#000066">New Coffee of the Day Promotion</font></h2>
            <p>September 16,2019</p>
            <p>Enjoy the best coffee on the coast in the comfort of your home. We will feature a different flavor of our gourmet,locally roasted coffee each day with free bistro tastings and a discount on one-pound bags.</p>
            </div>
         
            <footer>Copyright &copy; 2019</footer>
        </div>
    </body>
</html>
     
Bistro Blog CSS

body{background-color:#00005D;
    font-family:Verdana,Arial,sans-serif;}
 
#wrapper{text-align:left;
        width:80%;
        min-width: 940px;
        color:#000066;
        background-color: #B3C7E6;
        margin: auto; }

header{background-color: #869DC7;
        color:#00005D;
        font-size: 145%;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-right: 10px;
        padding-left: 155px;
        height:135px;
        background-image: url(lighthouselogo.jpg);
        background-repeat: no-repeat;
        background-size:contain;}

nav{float:left;
    width:200px;
    font-weight: bold;
    letter-spacing: 0.1em;}

#content{background-color: #FFFFFF;
        color: #000000;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 20px;
        padding-right: 20px;
        overflow: auto;}

footer{font-size: 70%;
        text-align: center;
        padding: 10px;
        background-color: #869DC7;
        clear: both;}
h2{color:#869DC7;
    font-family: arial,verdana,sans-serif;}

#floatright{float: right;
    margin: 10px;}

ul{list-style-type: none;
    margin: inherit;
    padding: inherit;}

nav a:link{text-decoration: none;
    padding: 20px;
    background-color: #B3C7E6;
    border-bottom: 1px solid white;
    display: block;}
nav a:link{color: #FFFFFF;}
nav a:visited{color: #EAEAEA;}
nav a:hover{color:#869DC7;
        background-color: #EAEAEA;}

h6{text-align: right;}

#box{
    width:250px;
    border: 1px;
    padding: 10px;
    position: fixed;
    right: 180px;
    background-color:lightgray;
    box-shadow: 5px 5px 10px darkgray;}
                 
 Output

  

Thursday, November 28, 2019

Lighthouse

Lighthouse HTML

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Lighthouse Island Bistro</title>
        <meta charset="utf-8">
        <link rel="stylesheet" href="lighthouse.css">
    </head>
    <body>
        <div id="wrapper">
            <header>
                <h1>Lighthouse Island Bistro</h1>
            </header>
            <nav>
            <ul>
                <li><a href="index.html">Home</a></li>
                <li><a href="rooms.html">Menu</a></li>
                <li><a href="directions.html">Directions</a></li>
                <li><a href="contact.html">Contact</a></li>
                </ul>
            </nav>
        <div id="content">
            <h2>Locally Roasted Free-Trade Coffee</h2>
            <p>Indulge in the aroma of freshly ground roast coffee.Specially drinks are available hot or cold.</p>
            <h2>Specialty Pastries</h2>
            <p>Enjoy a selection of our fresh-baked,organic pastries,including  fresh-fruit muffins,scones,croissants,and cinamon rolls.</p>
            <img src="lighthouseisland.jpg" width="250" height="355" id="floatright" alt="Lighthouse Island">
            <h2>Lunchtime is Anytime</h2>
            <p>Savor delicious wraps and sandwiches on hearty,whole-grains breads with locally-grown salad,fruit,and vegetables.</p>
            <h2>Panoramic View</h2>
            <p>Take in some scenery!</p>
            <p>The top of our lighthouse offers a panoramic view of the countryside.Challenge your friends to climb our 100-stair tower.</p>
            </div>
            <footer>Copyright &copy; 2014</footer>
        </div>
    </body>
</html>
     
Lighthouse CSS
       
 body{background-color:#00005D;
    font-family:Verdana,Arial,sans-serif;}
   
#wrapper{text-align:center;
        width:80%;
        min-width: 940px;
        color:#000066;
        background-color: #B3C7E6;
        margin: auto;}

header{background-color: #869DC7;
        color:#00005D;
        font-size: 150%;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-right: 10px;
        padding-left: 155px;
        height:130px;
        background-image: url(lighthouselogo.jpg);}

nav{float:right;
    width:150px;
    font-weight: bold;
    letter-spacing: 0.1em;}

#content{background-color: #FFFFFF;
        color: #000000;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 20px;
        padding-right: 20px;
        overflow: auto;}

footer{font-size: 70%;
        text-align: center;
        padding: 10px;
        background-color: #869DC7;
        clear: both;}
h2{color:#869DC7;
    font-family: arial,verdana,sans-serif;}

#floatright{float: right;
    margin: 10px;}

ul{list-style-type: none;
    margin: zero;
    padding: zero;}

nav a:link{text-decoration: none;
    padding: 20px;
    background-color: #B3C7E6;
    border-bottom: 1px solid white;
    display: block;}
nav a:link{color: #FFFFFF;}
nav a:visited{color: #EAEAEA;}
nav a:hover{color:#869DC7;
        background-color: #EAEAEA;}     

 
Output


Wednesday, October 30, 2019

Lab 3-Web Architecture

<!DOCTYPE html>
<html>
   
    <head>
<style type="text/css">
    p{font-family:courier new,Lucida Console,monospace;font-size:90%;font-weight:bold;} 
body{background-color:#E6E6FA'
color:#191970;}
h1{background-color:#191970;
color:#E6E6FA;
    background-image:url('sea.jpg');
    background-repeat:no-repeat;
    background-position:right;
    line-height: 200%;}
h2{background-color:#AEAED4;
color:#191970;}
.hello{color:red;}
    .font{font-style: italic;}
    .bold{font-weight: bold;}
    footer{font-size: .80em;font-style: italic;}
    .notes{text-align:left;}
</style>
        <body>
            <span class="notes">
        <h1><span class="bold">Trillium Media Design</span></h1>
            <span class="bold"><a href="homepage.html">Home</a> <a href="second%20page.html">Services</a> <a href="Third%20page.html">Contact</span></a>
           
<h2><font color="#0000A0">New Media and Web Design</font></h2>
<p><font color="#0041C2"><font-family>Trillium Media Design will bring your company's Web presence to the nxt level.We offer a comprehensive range of services:</font-family></font></p>
            <ul>
    <font color="#56A5EC">
            <li>Website Design</li>
            <li>Interactive Animation</li>
    <li>E-Commerce Solutions</li>
    <span class="hello"><li>Usability Studies</span></li>
    <span class="hello"><li>Search Engine Optimization</span></li>
            </font>
    </ul>
<h2><font color="#0000A0">Meeting Your Business Needs</font></h2>
<p><font color="#0041C2"><span class="font">Our expert designers are creative and eager to work with you.</span></font></p>
            <footer>Copyright &copy Karmen</footer>
        </span>
        </body>
    </head>
</html>

Wednesday, September 25, 2019

Lab 2 - web architecture

index.html

<!DOCTYPE html>
<html>
   
    <head>
    <style type="text/css">
    body{background-color:#E6E6FA'
    color:#191970;}
    h1{background-color:#191970;
    color:#E6E6FA;}
    h2{background-color:#AEAED4;
    color:#191970;}
    .hello{color:red;}
    </style>
        <body>
        <h1>Trillium Media Design</h1>
            <a href="homepage.html">Home</a> <a href="second%20page.html">Services</a> <a href="Third%20page.html">Contact</a>
           
    <h2><font color="#0000A0">New Media and Web Design</font></h2>
        <p><font color="#0041C2">Trillium Media Design will bring your company's Web presence to the nxt level.We offer a comprehensive range of services:</font></p>
            <ul>
        <font color="#56A5EC">
            <li>Website Design</li>
            <li>Interactive Animation</li>
        <li>E-Commerce Solutions</li>
        <span class="hello"><li>Usability Studies</span></li>
        <span class="hello"><li>Search Engine Optimization</span></li>
            </font>
        </ul>
    <h2><font color="#0000A0">Meeting Your Business Needs</font></h2>
        <p><font color="#0041C2">Our expert designers are creative and eager to work with you.</font></p>
            <footer>
                <small><i>Copyright &copy Karmen</i></small>
            </footer>
        </body>
    </head>
</html>


service.html

<!DOCTYPE html>
<html>
   
    <head>
    <style type="text/css">
    body{background-color:#E6E6FA'
    color:#191970;}
    h1{background-color:#191970;
    color:#E6E6FA;}
    p{background-color:#AEAED4;
    color:#191970;}
    </style>
    <body>
    <h1>Trillium Media Design</h1>
            <p><a href="homepage.html">Home</a> <a href="second%20page.html">Services</a> <a href="Third%20page.html">Contact</a></p>
        <h2><font color="#728FCE">Our Services Meet Your Business Needs</font></h2>
        <dl>
        <dt><b><font color="#56A5EC">Website Design</font></b></dt>
            <dd><font color="#2B60DE">Whether your needs are large or small,Trillium can get you on the Web!</font></dd>
        <dt><b><font color="#56A5EC">Interactive Animation</font></b></dt>
        <dd><font color="#2B60DE">Multimedia training and marketing animations are our specialty.</font></dd>
    <dt><b><font color="#56A5EC">E-Commerce Solutions</font></b></dt>
            <dd><font color="#2B60DE">Trillium offers quick entry into the e-commerce marketplace.</font></dd>
        <dt><b><font color="#56A5EC">Usability Studies</font></b></dt>
        <dd><font color="#2B60DE">Trillium can access the usability of your current site and suggest improvements.</font></dd>
    <dt><b><font color="#56A5EC">Search Engine Optimization</font></b></dt>
                <dd><font color="#2B60DE">Most people find new sites using search engines.Trillium can get your website noticed.</font></dd>
        </dl>
        <footer>
            <small><i>Copyright &copy 2014 Karmen</i></small>
        </footer>
        </body>
    </head>
</html>

CSS Two-Column Page Layout

CSS Two-Column Page Layout HTML <!DOCTYPE html> <html lang="en"> <head>     <title>Lighthouse Island ...