Giter VIP home page Giter VIP logo

box-model's Introduction

box-model

1- What is the box model? it's a box thw wrap every elemnt in HTML.

2- What is the difference between margin and padding? the margin is the space outside the border and the padding is the space inside the border.

3- What is the purpose of the box-sizing CSS property? box sizing is allow us to count the padding and the border with the total height and width of the element.

4- What does the outline property do? it's a line outside the border and its not count any space.

5- How do you add a background image in CSS? the property is background-image and the value is URL.

6- Given a div with a width of 200px, margin of 20px and padding of 20px, what is the calculated width by the browser? 240px.

7- Given a div with a height of 100px, border of 10px and padding of 20px, what is the calculated height by the browser? 160px.

8- What does margin:auto do? we can center the element with margin auto it will split the space between right and left.

box-model's People

Contributors

ruwaidah avatar

Watchers

 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.