, 14 2009 . 12:12
+
, , . CSS .
border-width
border-color
border-style
border
[border-width]
border-width, thin, medium thick, . :
[border-color]
border-color . - , : "#123456", "rgb(123,123,123)" "yellow" .
[border-style]
. Internet Explorer 5.5. "gold" "thick", , , .
none hidden , .
, , . ,
, , . , , , :
h1 {
border-width: thick;
border-style: dotted;
border-color: gold;
}
h2 {
border-width: 20px;
border-style: outset;
border-color: red;
}
p {
border-width: 1px;
border-style: dashed;
border-color: blue;
}
ul {
border-width: thin;
border-style: solid;
border-color: orange;
}
, , . :
h1 {
border-top-width: thick;
border-top-style: solid;
border-top-color: red;
border-bottom-width: thick;
border-bottom-style: solid;
border-bottom-color: blue;
border-right-width: thick;
border-right-style: solid;
border-right-color: green;
border-left-width: thick;
border-left-style: solid;
border-left-color: orange;
}
[border]
, , border. :
p {
border-width: 1px;
border-style: solid;
border-color: blue;
}
:
p {
border: 1px solid blue;
}
<a href="https://www.liveinternet.ru/users/3532518/post116626194/">Без заголовка</a><br/>Поля и заполнение
В предыдущем уроке мы рассмотрели боксовую модель. В этом уроке объясним, как можно изменять представление элементов свойствами margin и padding.
Установим поля элемента
Установим заполнение элемента
Установим поля элемента
У элемента есть четыре стороны: right, left, top и bottom. Поля margin это расстояние от каждой стороны с до соседних элементов (или краёв документа). См. также диаграмму в Уроке 9.
В качестве первого примера мы разберёмся, как определить поля самогó документа, т. е. элемента . На иллюстрации показано, какие поля нам нужны.
CSS-код ... <a href="https://www.liveinternet.ru/users/3532518/post116626194/">Читать далее...</a>
, 14 2009 . 12:08
+
. , margin padding.
: right, left, top bottom. margin ( ). . 9.
, ó , . . . , .
CSS- :
body {
margin-top: 100px;
margin-right: 40px;
margin-bottom: 10px;
margin-left: 70px;
}
:
body {
margin: 100px 40px 10px 70px;
}
. ,
:
body {
margin: 100px 40px 10px 70px;
}
p {
margin: 5px 50px 5px 50px;
}
, .
/padding , :
h1 {
background: yellow;
}
h2 {
background: orange;
}
, :
h1 {
background: yellow;
padding: 20px 20px 20px 80px;
}
h2 {
background: orange;
padding-left:120px;
}
<a href="https://www.liveinternet.ru/users/3532518/post116626124/">Урок 9</a><br/>Боксовая модель
Боксовая модель в CSS описывает боксы, генерируемые для HTML-элементов. Боксовая модель также имеет детальные опции для определения полей, рамок, заполнения и содержимого каждого элемента. На диаграмме далее показано, как построена боксовая модель:
Боксовая модель в CSS
Эта иллюстрация может показаться слишком научной, поэтому попытаемся использовать эту модель на конкретном примере с заголовком и текстом. HTML нашего примера таков (из Всеобщей Декларации Прав Человека):
Article 1:
All human beings are born free
и equal in dignity и rights.
They are endowed... <a href="https://www.liveinternet.ru/users/3532518/post116626124/">Читать далее...</a>
, 14 2009 . 12:06
+
CSS , HTML-. , , . , :
CSS
, . HTML ( ):
Article 1:
All human beings are born free
equal in dignity rights.
They are endowed with reason conscience
should act towards one another in a
spirit of brotherhood
:
- :
. :
, , , HTML- . , CSS.
<a href="https://www.liveinternet.ru/users/3532518/post116625590/">Урок 6</a><br/>Настроение сейчас - гууудддддддддддУрок 6: Ссылки
Всё изученное в предыдущих уроках вы можете применять и для ссылок/links (например изменять шрифт, цвет, подчёркивание и т. д). Новым будет то, что в CSS эти свойства можно определять по-разному, в зависимости от того, посетили уже ссылку, активна ли она, находится ли указатель мыши над ссылкой. Это позволяет добавить интересные эффекты на ваш web-сайт. Для этого используются так называемые псевдоклассы.
Что такое псевдокласс?
Псевдокласс позволяет учитывать различные условия или события при определении свойств HTM-тэга.
Рассмотрим п... <a href="https://www.liveinternet.ru/users/3532518/post116625590/">Читать далее...</a>
, 14 2009 . 11:51
+
- 6:
/links ( , , . ). , CSS -, , , , . web-. .
?
HTM-.
. , HTML
. CSS a :
a {
color: blue;
}
. , /visited . .
a:link {
color: blue;
}
a:visited {
color: red;
}
|a:link| |a:visited| , . a:active, a:hover, - .
.
: link
:link , .
- .
a:link {
color: #6699CC;
}
: visited
:visited , . - .
a:visited {
color: #660099;
}
: active
:active .
.
a:active {
background-color: #FFFF00;
}
: hover
:hover , .
. , , , CSS :
a:hover {
color: orange;
font-style: italic;
}
1:
. :hover.
1a:
5, letter-spacing. :
a:hover {
letter-spacing: 10px;
font-weight:bold;
color:red;
}
1b: UPPERCASE lowercase
5 text-transform, . :
a:hover {
text-transform: uppercase;
font-weight:bold;
color:blue;
background-color:yellow;
}
. - !
2:
- ?
, , web-. web- , . ! , , web-.
- . , , 5, text-decoration . text-decoration none.
a {
text-decoration:none;
}
text-decoration, , .
a:link {
color: blue;
text-decoration:none;
}
a:visited {
color: purple;
text-decoration:none;
}
a:active {
background-color: yellow;
text-decoration:none;
}
a:hover {
color:red;
text-decoration:none;
}
<a href="https://www.liveinternet.ru/users/3532518/post114787779/">CSS(урок 3)</a><br/>Вы создадите свою первую таблицу стилей/style sheet. Вы узнаете об основах базовой модели CSS и о том, какие коды необходимо использовать для CSS в HTML-документе.
Многие свойства, используемые в Cascading Style Sheets (CSS), аналогичны свойствам HTML. Таким образом, если вы используете HTML для дизайна страниц, вы, наверняка узнáете многие коды. Посмотрим на конкретном примере.
Базовый синтаксис CSS
Скажем, нам нужен красный цвет фона web-страницы:
В HTML это можно сделать так:
С помощью CSS того же самого результата можно добиться так:
body {background-color: #FF... <a href="https://www.liveinternet.ru/users/3532518/post114787779/">Читать далее...</a>
, 19 2009 . 06:02
+
/style sheet. CSS , CSS HTML-.
, Cascading Style Sheets (CSS), HTML. , HTML , , á . .
CSS
, web-:
HTML :
CSS :
body {background-color: #FF0000;}
, HTML CSS. CSS:
CSS
CSS-? .
CSS HTML-
CSS HTML-. . - /external .
1: /In-line ( style)
CSS HTML HTML- style. :
This is a red page
2: ( style)
CSS- - HTML-
<a href="https://www.liveinternet.ru/users/3532518/post114787517/">CSS(урок 2)</a><br/>Возможно, вы уже слышали о CSS, но не знаете, что это такое? Вы узнаете, что такое CSS и что он может сделать для вас.
CSS это акроним для Cascading Style Sheets/Каскадных таблиц стилей.
Что можно делать с помощью CSS?
CSS это язык стилей, определяющий отображение HTML-документов. Например, CSS работает с шрифтами, цветом, полями, строками, высотой, шириной, фоновыми изображениями, позиционированием элементов и многими другими вещами. Потерпите, и увидите!
HTML может (неправильно) использоваться для оформления web-сайтов. Но CSS предоставляет бóльшие возможности и более точен и ... <a href="https://www.liveinternet.ru/users/3532518/post114787517/">Читать далее...</a>
, 19 2009 . 05:57
+
, CSS, , ? , CSS .
CSS Cascading Style Sheets/ .
CSS?
CSS , HTML-. , CSS , , , , , , , . , !
HTML () web-. CSS ó . CSS, , ( ).
CSS web- .
CSS HTML?
HTML . CSS .
, - . , , . .
-, , Tim Berners Lee World Wide Web, HTML . : " - " " - ", HTML-,
.
Web . , ( - Netscape Microsoft) HTML-, , , , HTML- , , .
, ,
, . , , . " X " - web-.
CSS web- , . , .
CSS?
CSS web-. CSS:
* ;
* ;
* (, , . .);
* .
<a href="https://www.liveinternet.ru/users/3532518/post114787483/">CSS(урок 1)</a><br/>Каскадные таблицы стилей/CSS это язык стилей, определяющий отображение HTML-документов Cascading Style Sheets (CSS) это поразительное изобретение для улучшения вида ваших web-сайтов. Оно поможет сэкономить уйму времени и предоставит вам совершенно новые возможности в дизайне web-сайтов. CSS совершенно необходим каждому, работающему с web-дизайном.
Изучение CSS увлекает. Выделяйте достаточное количество времени для экспериментов
Использование CSS требует знания основ HTML. Если вы не знаете HTML, то начните с Учебника HTML, прежде чем перейти к CSS.
Какое программное обеспечение необх... <a href="https://www.liveinternet.ru/users/3532518/post114787483/">Читать далее...</a>
, 19 2009 . 05:54
+
/CSS , HTML- Cascading Style Sheets (CSS) web-. web-. CSS , web-.
CSS .
CSS HTML. HTML, HTML, CSS.
?
, FrontPage, DreamWeaver Word. CSS. , .
.
, Microsoft Windows Notepad. Accessories , Programs. , Pico Linux Simple Text Macintosh.
HTML CSS, . , , .
- , .
!