tanszek:oktatas:techcomm:cascading_style_sheets
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tanszek:oktatas:techcomm:cascading_style_sheets [2024/10/01 09:37] – [9. Margin, padding and border] kissa | tanszek:oktatas:techcomm:cascading_style_sheets [2024/10/01 10:32] (current) – [3. Defining CSS styles] kissa | ||
---|---|---|---|
Line 90: | Line 90: | ||
<code CSS> | <code CSS> | ||
+ | /* styles.css */ | ||
p { | p { | ||
color: blue; | color: blue; | ||
Line 240: | Line 241: | ||
The **box model** is a fundamental concept in CSS that describes how elements are structured and spaced on a webpage. Every HTML element is represented as a rectangular box consisting of four distinct areas: **margin**, **border**, **padding**, | The **box model** is a fundamental concept in CSS that describes how elements are structured and spaced on a webpage. Every HTML element is represented as a rectangular box consisting of four distinct areas: **margin**, **border**, **padding**, | ||
- | |||
- | The '' | ||
{{: | {{: | ||
+ | |||
+ | The '' | ||
The example below shows how to format a button. Try what happens when you change the button' | The example below shows how to format a button. Try what happens when you change the button' | ||
Line 292: | Line 293: | ||
font-weight: | font-weight: | ||
font-style: italic; | font-style: italic; | ||
- | |||
text-decoration: | text-decoration: | ||
text-align: justify; | text-align: justify; | ||
} | } | ||
</ | </ | ||
+ | |||
+ | If you are interested, [[https:// | ||
==== 12. Exercise ==== | ==== 12. Exercise ==== | ||
- | Create the following webpage | + | Create the following webpage using HTML and CSS. Use embedded |
- | Feel free to use online resources (e.g. [[https:// | + | Feel free to use online resources (e.g. [[https:// |
{{: | {{: |
tanszek/oktatas/techcomm/cascading_style_sheets.1727775428.txt.gz · Last modified: 2024/10/01 09:37 by kissa