Coder Social home page Coder Social logo

html-css-2's Introduction

Exercices HTML/CSS 2

Démarrage

git clone https://github.com/simplon-roanne/html-css-2
cd html-css-2
docker-compose up

Server will be ready on http://localhost:8080

Exercice

Mettre en oeuvre les media queries pour différencier l'affichage des élements du site en fonction du support utilisé. Ouvrez les fichiers index.html et style.css, et complétez le fichier CSS selon les consignes suivantes:

Affichage sur Smartphones

  • Ne pas afficher l'élément aside sur smartphones
  • Ajouter les media-queries selon les breakpoints communs de supports actuels pour un affichage sur Tablettes et Desktops

Affichage sur Tablettes

  • Modifier la largeur du body à 75%

Element aside

  • Afficher l'élément avec la propriété display: flex;
  • Une hauteur de 150px
  • Une couleur de fond #00ff99
  • Affichage sur Desktops

Affichage sur Desktops

  • Attribuer une position relative à la div de class container (Pour que les éléments enfants en position absolue se placent par rapport à cet élément)

Element aside

  • Une largeur de 23%
  • Une position absolue
  • Placer l'élément en haut à droite de son parent
  • Pas de marge extérieure en haut
  • Une hauteur de 100%

Element section

  • Une largeur de 70%
  • Une hauteur de 220px

Accomplissement

Réduisez, agrandissez votre fenêtre et observez les changements s'opérer ;)

Recherches utiles

  • media queries for common device breakpoints
  • guide to flexbox css

html-css-2's People

Contributors

pedroidmkr avatar zzgael avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.