The Cascading Style Sheets Structure and Rules Kaskádové štýly štruktúra a pravidlá
The Cascading Style Sheets are made up of 2 parts, the selector and the declaration . Kaskádové štýly sú zložené z 2 častí, výber a vyhlásenia.
The selector comes first and it describes the element on the page that is going to be control through this rule. Volič je na prvom mieste a opisuje prvok na stránke, ktorá bude kontrolu cez toto pravidlo.
In the image below you will see the selector which will control all the h1 in the current document. Na obrázku nižšie, uvidíte voliča, ktorý bude kontrolovať všetky h1 v aktuálnom dokumente.

Next to the selector you will see the declaration . Vedľa voliča uvidíte vyhlásenia. 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) Vyhlásenie obsahujú, sú medzi týmito zložených zátvorkách (), ktorá hovorí prehliadači, že všetky objekty vo vnútri () by sa mala vzťahovať na komponent identifikovať ako volič (v tomto prípade h1 výber)
Inside the declaration we have the property and values . Vnútri vyhlásenia máme majetku a hodnôt. Notice they are separated by : and ends with ; this tell the browsers to move to the next property if there are any available. Všimnite si, že sú oddelené: a končí, to povedať prehliadača sa presuniete do ďalšieho majetku, ak dôjde k dispozícii.
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. V tomto príklade bude naša pravidlo prijmú všetky h1 a všetky Arial sa veľkosť písma v 1.4e a farba bude biela.
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. Môžete použiť Dreamweaver, aby to pre vás, alebo ak chcete a máte memorialize všetky voličov a vyhlásenia, môžete vždy ruku kód je.
Find more info on Cascading Style Sheets Structure and Rules with the text links below. Viac informácií o kaskádových štýlov štruktúra a pravidlá s textom nižšie uvedené odkazy.























