Free Website Templates

...ασύγχρονα μαθήματα από τους guru της κοινότητας

Συντονιστής: the_eye

Free Website Templates

Δημοσίευσηαπό linuxs » 02 Απρ 2012, 01:33

Καλησπέρα σε όλους θα προσπαθήσω παρακάτω να δώσω κάποια βασικά templates σχετικά με webdesign που θα περιέχουν κώδικα σε HTML+CSS/CSS2 αρχικά. Αν πάει καλά και υπάρχει ενδιαφέρον πιθανώς να προχωρήσω και σε κάτι παραπάνω όπως javascript κτλ. Να ενημερώσω πως ότι δείτε παρακάτω είναι καθαρά για εκμμάθηση και δεν προσπαθώ να δείξω κάτι(θα το καταλάβετε και αν δείτε τις εικόνες). Αρχικά θα υπάρχουν πολύ βασικά και χωρίς λεπτομέρεια καθώς δεν έχω χρόνο αυτή τη στιγμή μόλις καταφέρω και κάνω κάτι καλύτερο(θέμα χρόνου) θα προσπαθήσω να σας το δώσω. Ερωτήσεις-Απορίες-Προτάσεις είναι ΦΥΣΙΚΑ ΔΕΚΤΕΣ :) Καλή ανάγνωση...

Οργάνωση...
Για δικιά σας ευκολία αντιγράψτε τους παρακάτω κώδικες σε δυο αρχεία με ονόματα index.html & style.css. Το αρχείο style.css βάλτε το σε έναν φάκελο με όνομα style. Αν δεν το κάνετε αυτό θα πρέπει να τροποποιήσετε λίγο τον κώδικα.


Template - 000



index.html
Κώδικας: Επιλογή όλων
<html>

<head>
   <title>Personal webpage of cs091770-billys(ΤΖΙΒΑΡΑΣ ΒΑΣΙΛΕΙΟΣ)</title>

   <meta name="description" content="website description" />
   <meta name="keywords" content="website keywords, website keywords" />
   <meta http-equiv="content-type" content="text/html; charset=UTF-8" />

   <link rel="stylesheet" type="text/css" href="style/style.css" title="style" />
</head>

<body>   
      <div id="header">
         <div id="header_title">
            <p> Title </p>
         </div>
         
         <div id="header_menubar">
            <li > <a class="selected" href="index.html"> Page0    </a></li>
            <li > <a class="selected" href="studying.html"> Page1 </a></li>
            <li > <a class="selected" href="music.html"> Page2 </a></li>
            <li > <a class="selected" href="support.html"> Page3 </a></li>
            <li > <a class="selected" href="contact.html"> Page4 </a></li>
         </div>
      </div> <!-- end of header -->

      <div id="content">
         <p> Content </p>
      </div> <!-- end of content -->

      <div id="footer">
         <p> Footer </p>
      </div>
</body>
</html>


style.css
Κώδικας: Επιλογή όλων
/*********************************************************************

-------------------------     MY CSS       ---------------------------
by vasilis tzivaras
*********************************************************************/

/* (body) => (header =>(header_title, header_menu), content, footer) */


/*************** MAIN CONTENT ***************/

body {
   margin: 0px 0px 0px 0px;
   background: black;
}

#header {
   height: 200px;
   background: blue;
   /*background-image: url('../images/final_bg.png');*/
}

#header_title {
   height: 150px;
   margin: 0px 0px 0px 0px;
   background: green;
   text-align: center;   
}

#header_menubar {
   height: 50px;
   margin: 15px 0px 15px 0px;;
   text-align: center;
}

#content {
   text-align: left;
   width: 1000px;
   overflow: hidden;
   margin: 20px auto 0 auto;
   padding: 10px 10px 10px 10px;
   background: white;
}
/*
#footer {
   height: 20px;
   width: 1000px;
   background: white;
   font: 'Comic Sans MS';
   text-align: center;
   text-transform: uppercase;
   margin: 10px 0px 0px 0px;
   padding: 0px 0px 0px 0px;
}*/

#footer {
   width: 100%;
   height: 33px;
   color: white;
   font-family: 'Comic Sans MS';
   text-align: center;
   text-transform: uppercase;
   padding: 10px 0 0 0;
   margin: 5px 0 0 0;
   background: white;
}


/***************** HEADERS ******************/
h2 {
   font: normal 175% 'Comic Sans MS';
   color: #1293EE;
   margin: 0 0 15px 0;
   padding: 15px 0 5px 0;
}

/***************** MENU BAR *****************/
ul {
   list-style-type: none;
   width: 100%;
   padding: 0;
   margin:  0;
}

li {
   display: inline;
}

.selected {
   color: black;
   text-decoration: none;
   word-spacing: 20px;
   font-family: 'Comic Sans MS';
   font-size: 26px;
}

a {
   text-decoration: none;
}

a:hover {
   color: 0099FF;
}


Template - 001



index.html
Κώδικας: Επιλογή όλων
<html>

<head>
   <title>Personal webpage of cs091770-billys(ΤΖΙΒΑΡΑΣ ΒΑΣΙΛΕΙΟΣ)</title>

   <meta name="description" content="website description" />
   <meta name="keywords" content="website keywords, website keywords" />
   <meta http-equiv="content-type" content="text/html; charset=UTF-8" />

   <link rel="stylesheet" type="text/css" href="style/style.css" title="style" />
</head>

<body>   
      <div id="header">
         <div id="header_title">
            <p> Title </p>
         </div>
         
         <div id="header_menubar">
            <li > <a class="selected" href="index.html"> Page0    </a></li>
            <li > <a class="selected" href="studying.html"> Page1 </a></li>
            <li > <a class="selected" href="music.html"> Page2 </a></li>
            <li > <a class="selected" href="support.html"> Page3 </a></li>
            <li > <a class="selected" href="contact.html"> Page4 </a></li>
         </div>
      </div> <!-- end of header -->
      
      <div id="main">
         <div id="sidebar">
            <p>Sidebar</br>Sidebar</br>Sidebar</br>Sidebar</br>Sidebar</br>Sidebar</br>Sidebar</br>Sidebar</br>Sidebar</br>Sidebar</br></p>
         </div>
         
         <div id="content">
            <p> Content</br> Content</br> Content</br> Content</br> Content</br> Content</br> Content</br> Content</br> Content </br>Content</p>
         </div> <!-- end of content -->
      </div>
      <div id="footer">
         <p> Footer </p>
      </div>
</body>
</html>


style.css
Κώδικας: Επιλογή όλων
/*********************************************************************

-------------------------     MY CSS       ---------------------------
by vasilis tzivaras
*********************************************************************/

/* (body) => (header =>(header_title, header_menu), content, footer) */


/*************** MAIN CONTENT ***************/

body {
   background: black;
}

#header {
   height: 200px;
   background: blue;
   /*background-image: url('../images/final_bg.png');*/
}

#header_title {
   height: 150px;
   background: green;
   text-align: center;   
}

#header_menubar {
   height: 50px;
   text-align: center;
}

#main {
   background: purple;
   margin: 0px auto 0px auto;
   width: 1000px;
}

#sidebar {
   width: 200px;
   background: yellow;
   float: left;
   padding-top: 5px;
}

#content {
   float: left
   text-align: left;
   width: 800px;
   overflow: hidden;
   padding: 5px 0px 0px 0px;
   background: white;
}

#footer {
   width: 1000px;
   height: 33px;
   color: black;
   font-family: 'Comic Sans MS';
   text-align: center;
   text-transform: uppercase;
   padding: 10px 0 0 0;
   margin: 5px auto 0 auto;
   background: white;
}

/***************** HEADERS ******************/
h2 {
   font: normal 175% 'Comic Sans MS';
   color: #1293EE;
   margin: 0 0 15px 0;
   padding: 15px 0 5px 0;
}

/***************** MENU BAR *****************/
ul {
   list-style-type: none;
   width: 100%;
   padding: 0;
   margin:  0;
}

li {
   display: inline;
}

.selected {
   color: black;
   text-decoration: none;
   word-spacing: 20px;
   font-family: 'Comic Sans MS';
   font-size: 20px;
}

a {
   text-decoration: none;
}

a:hover {
   color: 0099FF;
}

Τελευταία επεξεργασία από linuxs και 02 Απρ 2012, 01:34, έχει επεξεργασθεί 1 φορά/ες συνολικά
Αιτία: επεξεργασία
Αν το πρόβλημά μας επιλυθεί. Επιλέγουμε το θέμα που βοήθησε στην επίλυση και πατάμε το κουμπάκι Εικόνα.
Γνώσεις ⇛ Linux: Μέτριο┃Προγραμματισμός: C┃Αγγλικά: Καλά
Λειτουργικό ⇛ Linux Ubuntu 10.4 LTS
Προδιαγραφές ⇛ Intel Pentium @T4500 2.3GHz│ 512GB VRAM│ 500 HDD│ ATI RADEON HD545v 512 MB │ Screen: 15.6''
Άβαταρ μέλους
linuxs
daemonTUX
daemonTUX
 
Δημοσιεύσεις: 1060
Εγγραφή: 02 Ιούλ 2010, 13:19
Τοποθεσία: GR
IRC: linuxs
Εκτύπωση

Επιστροφή στο Το Σχολείο του Φόρουμ - Ασύγχρονα Μαθήματα