Professional Documents
Culture Documents
al
Leksion Nr. 3
Ndertimi I faqjeve web Html dhe formati I struktures se tyre duke perdorur tabelat dhe CSS.
<html>
<head>
</head>
<body>
<div id="koka">
</div>
<div id="trupi">
<div id="menu">menuja</div>
<div id="permbajtja">Permbajtja</div>
</div>
<div id="fundi">
Email: endrit.xhina@fshn.edu.al
<p>
Copyright Information
</p>
</div>
</body>
</html>
Ketu ruajme style.css file-in e CSS, qe e therrasim tek .html ne baze te clasave dhe id-ve
/* CSS Document */
#koka
background-color:#336699;
min-height:120px;
width:700px;
margin-left:auto;
margin-right:auto;
padding:10px;
#koka h1
color:#ffffff;
visibility:visible;
Email: endrit.xhina@fshn.edu.al
font-size:24px;
#trupi
background-color:#fafafa;
min-height:200px;
width:700px;
margin-left:auto;
margin-right:auto;
padding:10px;
#fundi
background-color:#336699;
min-height:40px;
width:700px;
margin-left:auto;
margin-right:auto;
padding:10px;
#fundi p
{
Email: endrit.xhina@fshn.edu.al
color:#ffffff;
text-align:center;
font-style:italic;
#menu
min-height:200px;
width:150px;
background-color:#6699cc;
<a href="http://www.facebook.com">f</a>
<a href="http://www.twitter.com">t</a>
<a href="http://www.instagram.com">i</a>
</div>
</div>
<div id="trupi">
<div id="side_panel">
paneli anash
</div>
<div id="main_content">
<div class="big_banner">
baner i madh
</div>
<div class="small_banner">
baner i vogel
</div>
<div class="small_banner">
baner i vogel
</div>
<div class="small_banner">
baner i vogel
</div>
<div class="small_banner">
baner i vogel
</div>
<div class="small_banner">
Email: endrit.xhina@fshn.edu.al
baner i vogel
</div>
</div>
</div>
<div id="fundi">
copyright etj
</div>
</body>
</html>
style.css
#koka {
background-color: #0099FF;
width: 90%;
min-height:100px;
margin-left:auto;
margin-right:auto;
#logo
float:left;
}
Email: endrit.xhina@fshn.edu.al
#logo img
width:150px;
margin-left:15px;
margin-top:15px;
#social
float:right;
margin-top:35px;
margin-right:15px;
#social a
padding-top:10px;
padding-left:17px;
padding-bottom:10px;
padding-right:17px;
background-color:#fafafa;
color:#333333;
font-weight:bold;
font-size:24px;
line-height:24px;
text-decoration:none;
border-radius:25px;
}
Email: endrit.xhina@fshn.edu.al
#social a:hover
background-color:#cccccc;
font-size:28px;
color:#6699ff;
#trupi
width:90%;
min-height:350px;
margin-left:auto;
margin-right:auto;
#fundi
width:90%;
min-height:50px;
margin-left:auto;
margin-right:auto;
#side_panel
Email: endrit.xhina@fshn.edu.al
min-height:350px;
width:20%;
float:left;
background-color:#cccccc;
#main_content
min-height:350px;
width:80%;
float:left;
background-color:#fafafa;
.big_banner
min-height:150px;
width:95%;
margin-left:auto;
margin-right:auto;
margin-top:10px;
margin-bottom:10px;
.small_banner
{
Email: endrit.xhina@fshn.edu.al
min-height:150px;
width:250px;
margin-left:10px;
margin-bottom:10px;
float:left;
tabele1.html
<html>
<head>
<title>table sample</title>
</head>
<body>
<table width="700" border="1" align="center">
Email: endrit.xhina@fshn.edu.al
<tr>
<td bgcolor="#00CCFF"> </td>
</tr>
<tr>
<td>
<table width="100%" border="1">
<tr>
<td width="100">
<p><img src="images/twiter.png" width="100" ></p>
<p>
<table width="100%" border="1">
<thead>
<tr>
<th>Site Menu</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="#">item1</a></td>
</tr>
<tr>
<td><a href="#">item1</a></td>
</tr>
<tr>
<td><a href="#">item1</a></td>
</tr>
<tr>
<td><a href="#">item1</a></td>
</tr>
</tbody>
</table>
</p>
<p> </p>
<p> </p>
<p> </p>
<p>menu</p></td>
<td>content</td>
<td width="150">baner</td>
</tr>
</table>
</td>
</tr>
Email: endrit.xhina@fshn.edu.al
<tr>
<td> </td>
</tr>
</table>
</body>
</html>
shuma3.html
<html>
<head>
<title>DOM</title>
<script language="JavaScript">
function shuma()
{
var a,b,c;
a=document.getElementById('nr1');
b=document.getElementById('nr2');
c=document.getElementById('sh');
c.value=parseInt(a.value)+parseInt(b.value);
function boshatis2()
{
document.myform.nr2.value='';
}
</script>
Email: endrit.xhina@fshn.edu.al
</head>
<body>
<form name="myform">
<table width="250">
<tr>
<td height="40" onMouseOver="this.bgColor='#0099FF';"
onMouseOut="this.bgColor='#FFFFFF';">
<p>Nr1: €
<input type="text" value="enter nr1" name="nr1" id="nr1"
onClick="this.value='';" >
</p>
</td>
</tr>
<tr>
<td height="40" onMouseOver="this.bgColor='#0099FF';"
onMouseOut="this.bgColor='#FFFFFF';">
<p>Nr2: ¥
<input name="nr2" type="text" id="nr2" onClick="this.value='';"
value="enter nr2" size="10" maxlength="5">
</p>
</td>
</tr>
<tr>
<td height="40" onMouseOver="this.bgColor='#0099FF';"
onMouseOut="this.bgColor='#FFFFFF';">
<p>
Shuma:
<input name="sh" type="text" id="sh">
</p>
</td>
</tr>
<tr>
<td height="40" onMouseOver="this.bgColor='#0099FF';"
onMouseOut="this.bgColor='#FFFFFF';">
<p>
<input type="button" value="gjej shumen" onClick="shuma();" >
</p>
</td>
</tr>
Email: endrit.xhina@fshn.edu.al
</table>
</form>
<br>
</body>
</html>
Shembull me bootstrap
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap</title>
</head>
<body>
<div>
<div class="page-header">
<h1>Butona</h1>
</div>
<p>
</p>
Email: endrit.xhina@fshn.edu.al
<p>
</p>
<p>
</p>
<p>
</p>
<div class="page-header">
Email: endrit.xhina@fshn.edu.al
<h1>Tabela</h1>
</div>
<div class="row">
<div class="col-md-5">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<td>3</td>
<td>Larry</td>
<td>the Bird</td>
Email: endrit.xhina@fshn.edu.al
<td>@twitter</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-5">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<td>3</td>
Email: endrit.xhina@fshn.edu.al
<td>Larry</td>
<td>the Bird</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="col-md-5">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2">1</td>
<td>Mark</td>
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<td>Mark</td>
<td>Otto</td>
Email: endrit.xhina@fshn.edu.al
<td>@TwBootstrap</td>
</tr>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<td>3</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-5">
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Mark</td>
Email: endrit.xhina@fshn.edu.al
<td>Otto</td>
<td>@mdo</td>
</tr>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>@fat</td>
</tr>
<tr>
<td>3</td>
<td>@twitter</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="page-header">
<h1>Labela</h1>
</div>
<p>
</p>
<div class="page-header">
<h1>Badges</h1>
</div>
<p>
</p>
<br/><br/>
</ul>
<div class="page-header">
<h3>Navs</h3>
</div>
</ul>
<br/><br/>
</ul>
<div class="page-header">
<h3>Navbars</h3>
</div>
<div class="container">
<div class="navbar-header">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
<li class="dropdown">
<li><a href="#">Action</a></li>
Email: endrit.xhina@fshn.edu.al
<li class="divider"></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container">
<div class="navbar-header">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
Email: endrit.xhina@fshn.edu.al
<li class="dropdown">
<li><a href="#">Action</a></li>
<li class="divider"></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="page-header">
<h1>Alerts</h1>
</div>
</div>
</div>
</div>
</div>
<div class="page-header">
<h1>Progress bars</h1>
</div>
<div class="progress">
</div>
<div class="progress">
</div>
<div class="progress">
</div>
<div class="progress">
</div>
<div class="progress">
Email: endrit.xhina@fshn.edu.al
</div>
<div class="progress">
</div>
<div class="progress">
</div>
<div class="page-header">
<h1>List groups</h1>
</div>
<div class="row">
<div class="col-sm-4">
<ul class="list-group">
</ul>
<div class="col-sm-4">
<div class="list-group">
</a>
</div>
<div class="col-sm-4">
<div class="list-group">
</a>
</a>
</a>
</div>
Email: endrit.xhina@fshn.edu.al
</div>
<div class="page-header">
<h1>Panels</h1>
</div>
<div class="row">
<div class="col-sm-4">
<div class="panel-heading">
</div>
<div class="panel-body">
Panel content
</div>
</div>
<div class="panel-heading">
</div>
<div class="panel-body">
Panel content
</div>
</div>
<div class="col-sm-4">
<div class="panel-heading">
</div>
<div class="panel-body">
Panel content
</div>
</div>
<div class="panel-heading">
</div>
<div class="panel-body">
Panel content
</div>
</div>
<div class="col-sm-4">
<div class="panel-heading">
</div>
<div class="panel-body">
Panel content
</div>
</div>
<div class="panel-heading">
</div>
<div class="panel-body">
Panel content
</div>
Email: endrit.xhina@fshn.edu.al
</div>
</div>
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></scr
ipt>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="bootstrap/js/docs.min.js"></script>
</body>
</html>