The Cascading Style Sheets Structure and Rules Каскадні таблиці стилів структуру і правила
The Cascading Style Sheets are made up of 2 parts, the selector and the declaration . Каскадні таблиці стилів складаються з 2 частин, Selector і Декларації.
The selector comes first and it describes the element on the page that is going to be control through this rule. Селектор приходить першим і описує елемент на сторінці, яка буде контроль через це правило.
In the image below you will see the selector which will control all the h1 in the current document. На зображенні нижче ви побачите Selector який буде контролювати всі H1 в поточному документі.

Next to the selector you will see the declaration . Поруч з селектором ви побачите декларації. The declaration are contain in between these curly brackets { } which tells the browsers that all properties inside { } should be apply to the element identify as the selector (in this example h1 selector) Декларації містити між цими фігурних дужках (), який говорить, що всі браузери властивостей всередині () слід застосовувати до елементів визначити як селектор (в даному прикладі h1 Selector)
Inside the declaration we have the property and values . Всередині ми декларації майна і цінностей. Notice they are separated by : and ends with ; this tell the browsers to move to the next property if there are any available. Про нас вони розділені, і закінчується, це розповісти браузерів, щоб перейти до наступного майна, якщо такі є доступні.
In this example, our rule will take all the h1 and make them all Arial with the font size at 1.4em and the color will be white. У цьому прикладі нашої влади візьмуть всі H1 і змусити їх усіх Arial з розміром шрифту в 1.4em і колір буде білим.
You can use Dreamweaver to do this for you, or if you want and you have memorialize all the selector and declaration you can always hand code them. Ви можете використовувати Dreamweaver, щоб робити це за вас, або якщо ви хочете, і ви повинні увічнити пам'ять всіх Selector та декларацію ви завжди можете кодувати їх боку.
Find more info on Cascading Style Sheets Structure and Rules with the text links below. Знайти більше інформації про каскадних таблиць стилів структури і правил з текстовими посиланнями нижче.























