Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ISI Programming Course - 02 - CSS

Jungwon Seo
September 10, 2018
72

ISI Programming Course - 02 - CSS

Jungwon Seo

September 10, 2018
Tweet

Transcript

  1. Things to talk about • How to google • Three

    ways to apply CSS • Selectors • Responsive design - media query • CSS framework: Bootstrap, Materialize
  2. How to Google • Don’t need to be good at

    English. • Google will fix your broken English.
  3. Don’t try to memorize • https://www.w3schools.com/cssref/ • There are so

    many. • You don’t have to memorize. • You just need to know what you want to show. • And google it
  4. Inline Style • We have used this way last time.

    • This is convenient for some temporary changes. • If the style should affect more than two elements, it is not recommended to use inline-style.
  5. Internal Style • Writing styles in the <style> tag. •

    This is really useful when you can’t attach additional css files. • e.g. html email
  6. External Style • Make an additional file just for the

    css. • Include the file(*.css) inside the <head> tag. • The most common way • You can add more than one file.
  7. Selectors • Different background color for every other rows. •

    Different color for the <p> which is located right after <h1>. • Different color when cursor is on the element. • First or last element, all elements, etc. • https://www.w3schools.com/cssref/css_selectors.asp
  8. Class and Id • You can use the user-specified identify

    for each element. • Class • When you want to make a style. • You can mix multiple classes. • Id • When you want to choose one element. • Id should be unique
  9. Responsive Web Design • Mainly because of a smartphone. •

    Making different web sites for each device is not responsive web design. • It is an essential part in modern web design.
  10. CSS framework • It’s like using powerpoint template. • Predefined,

    better than mine but also editable. • It’s also important to be familiar with using frameworks. • It’s not recommended to mix different frameworks.
  11. Exercise-02 : Family • meaning of these , > +

    ~ • first, last, nth child, odd, even Source Code Link
  12. Exercise-03 : id vs class • How to write in

    CSS • Multiple classes Source Code Link