SzabiSch / bootcamp-schedule

0 stars 0 forks source link

HTML&CSS Basics: Basic Styling #22

Closed codingbootcampseu closed 3 years ago

codingbootcampseu commented 3 years ago

General Styling

Specific Styling

Hints

You can use Google Fonts to load external fonts into your document.

Use general selectors (like the tag or universal selector) for general styling (i.e. all headings should use this font) and use classes for more specific styling.

You can use pre defined CSS colors i.e. salmon, hotpink or lemonchiffon. Other colors can be found [here])https://htmlcolorcodes.com/color-names/).

A selector list can help you to change styles for a list of elements.

h1,
h2,
h3 {
  color: dodgerblue;
}

Bonus

Use the two value padding shorthand to use different values for vertical and horizontal padding.

.header {
  padding: 48px 16px;
}

The content gets hard to read when the screen is too wide. You can use a max-width for the main element and center it using the margin.

.main {
  max-width: 800px;
  margin: 0 auto;
}

Example Solution and Comparison

SzabiSch commented 3 years ago

I dont see the different with Nico, but my header in main want to be lightsalmon!!! Why? Question for Ask me .. on Monday