Как создать сайт с нуля за 7 дней? (Урок 3)
Здравствуйте! Продолжаем нашь урок по созданию сайта. Сегодня мы будем будем приводить к исходному виду наш сайт. Нужно сайту сделать верхнюю шапку. Берём изображение шириной 190 пикселей, а высоту гдето 100 пикселей. Сохраняем это изоброжение под именем header, теперь создовайте нижний графический элемент. Размер этого изоброжения: ширина — 690 px, длина — 18 px, имя файла — footer. И фон — размер — 3 на 3 пикселей, имя — bg. Создаём папку, где лежит наш сайт, под именем — img и загружаем эти графические файлы в эту папку. Изоброжения вы можете скачать внизу по ССЫЛКЕ. Код таблици должен выглядить так. Это получились таблици с нашим хедером и футером.
< table width=»690» border=»0» align=»center» >
< tr >
< td >< img src=»img/header.jpg» width=»690» height=»100» >< /td >
< /tr >
< tr >
< td > < /td >
< /tr >
< tr >
< td >< img src=»img/footer.jpg» width=»690» height=»18» >< /td >
< /tr >
< /table >
Создаём в центральной табличке ещё одну тобличку. Она будет содержать один ряд и две калонки.
Код будет выглядить следующим образом:
< table width=»690» border=»0» align=»center» >
< tr >
< td >< img src=»img/header.jpg» width=»690» height=»100» >< /td >
< /tr >
< tr >
< td >< table width=»690» >
< tr >
< td width=»182px» > < /td >
< td > < /td >
< tr >
< /table >< /td >
< /tr >
< tr >
< td >< img src=»img/footer.jpg» width=»690» height=»18» >< /td >
< /tr >
< /table >
И я предлогаю левой ячейке создать стиль. Переходим в файл со стилями. Создаём стиль:
.left {background-color:#f6f6f6; border-right:1px solid #424242;}
И пропишем этот стил таблице:
< table width=»690» border=»0» align=»center» >
< tr >
< td >< img src=»img/header.jpg» width=»690» height=»100» >< /td >
< /tr >
< tr >
< td >< table width=»690» >
< tr >
< td width=»182px» valign=»top»18» >< /td >
< /tr >
< /table >
Теперь создаём сайт фон. В стилях прописуем:
body {background-image:url (img/bg.gif)}
Заполняем сайт текстом:
< table width=»690» border=»0» align=»center» >
< tr >
< td >< img src=»img/header.jpg» width=»690» height=»100» >< /td >
< /tr >
< tr >
< td >< table width=»690» >
< tr >
< td width=»182px» valign=»top» class=»left» > < /td >
< td >< p >ВАШ ТЕКСТ< /p >< /td >
< tr >
< /table >< /td >
< /tr >
< tr >
< td >< img src=»img/footer.jpg» width=»690» height=»18» >< /td >
< /tr >
< /table >
Теперь создаём навигацию. В стилях встовляем следующее:
p.title {
background-color: #A72E37;
color: #ffffff;
font-weight:bold;
margin:5px;
padding:5px;
}
#coolmenu{
border: 1px solid gray; /*Стиль рамки */
border-bottom-width: 0;
width: 93%; /*Ширина меню */
background-color: #f6f6f6; /*Фоновый цвет ячейки*/
margin:7px; /*Ширина отступов*/
}
* html #coolmenu{
width: 150px;/*Ширина меню для Internet Explorer*/
}
#coolmenu a{
font: bold 13px Verdana; /*Шрифт текста*/
padding: 2px; /*Внутренний отсутп текста ссылки от краев ячейки*/
padding-left: 4px;/*Внутренний отсутп текста ссылки от левого края ячейки*/
display: block;
width: 100%; /*Ширина ячейки*/
color: #000000; /*Цвет текста*/
text-decoration: none; /*Подчеркивание у ссылок — нет*/
border-bottom: 1px solid gray;
}
html >body #coolmenu a{
width: auto;
}
#coolmenu a:hover{
background-color: #cccccc; /*Фоновый цвет ячейки при наведение курсора*/
color: #000000; /*Цвет текста при наведении курсора*/
}
Теперь навигация:
< table width=»690» border=»0» align=»center» >
< tr >
< td >< img src=»img/header.jpg» width=»690» height=»100» >< /td >
< /tr >
< tr >
< td >< table width=»690» >
< tr >
< td width=»182px» valign=»top»title» >Навигация< /p >
< div id=»coolmenu» >
< a href=»http://go.blog.ru/?index.php» >Главная< /a >
< a href=»http://go.blog.ru/?articles.php» >Статьи< /a >
< a href=»http://go.blog.ru/?lessons.php» >Уроки< /a >
< a href=»http://go.blog.ru/?contacts.php» >О нас< /a >
< /div >
< /td >
< td >< p >ВАШ ТЕКСТ< /p >< /td >
< tr >
< /table >< /td >
< /tr >
< tr >
< td >< img src=»img/footer.jpg» width=»690» height=»18» >< /td >
< /tr >
< /table >
Всё, наш сайт уже начинает воображается. В следующем уроке будем создавать базовые страници. Досвидание!
Comments are currently closed.
Создание сайта
The MacBook Air I obtained two years in the
past was really an enormous upgrade over the previous MacBook Professional in that regard.
The relative multimedia robustness of Scorpion was in a position to hold
this SoC over the finish line, but simply barely. Most likely the most important argument against the Retina MacBook Professional
that I’ve heard is from those who need to look forward to this display to come to an Air.
Whereas Netflix routinely adjusts your stream high quality based mostly on your
internet capacity, users who could be trying to use less information may also control the setting on their very own. Due to the info
sensitivity of the Bluray disk the burner for the
Bluray on common reaches speeds of as much as 8X. Depending on the amount
of layers on the bluray disk the amount they’ll hold
is 25GB per layer. Regardless of its smaller sizing, the Mac mini offers a full vary of ports to be able to connect to your current peripherals—from keyboards and mice to exterior laborious disk
drives and shows (via the actual Thunderbolt and HDMI ports).