Box Model

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Box Model - Presentation Transcript

    1. CSS BOX MODEL Il modello box css Lezione di gennaio 2009 Modulo HtmlCss
    2. Immagine del Box model
    3. Struttura del box model
    4. Box model - terminologia
    5. The Content Area
      • The content area includes text or images and the box the browser traces around that content (which is just big enough to fit the content).
      NOTE: The dashed line above illustrates the content area box. A browser would not draw an actual line!
    6. Padding
      • Around the content area box, we can have optional padding. Padding is transparent and we can use it to create "visual whitespace" between the content area and the border.
    7. Border
      • An element's border surrounds the padding. It is a line around the content and provides a "visual separation between" elements.
    8. Margin
      • A margin gives space between an element and other elements in a web page. Like the padding, a margin is transparent.
    9. Esempio di uso del Box Model
    10. Stile del bordo del Box Model
    11. Inline e block element
      • Ad ogni elemento è assegnata la proprietà inline o block
      • Gli elementi inline si allineano orizzontalmente
      • Gli elementi block si dispongono l’uno sotto l’altro
      • Ad esempio, i paragrafi sono elementi block, mentre le singole parole sono inline perché si dispongono orizzontalmente in una riga
    12. Esempio: menù di link
    13. Menù di link con block stile
    14. Stile al menù di link -1
    15. Stile al menù di link -2
    16. Stile al menù di link -3
    17. Esempio con un immagine
      • Supponiamo di avere il seguente codice html con un elemento paragrafo ed un immagine al suo interno che per default è inline
      Ciò significa che l’immagine si allineerà orizzontalmente con il testo del paragrafo
    18. Creiamo una cornice attorno l’immagine
      • <p> This is a picture of Hexxa:
      • <img src=&quot;images/Hexxa.jpeg&quot; alt=&quot;Hexxa&quot; />I took this picture at the fair.
      • </p>

    + silvanonatalizisilvanonatalizi, 11 months ago

    custom

    516 views, 0 favs, 1 embeds more stats

    box model

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 516
      • 512 on SlideShare
      • 4 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 9
    Most viewed embeds
    • 4 views on http://didatticasilvanonatalizi.blogspot.com

    more

    All embeds
    • 4 views on http://didatticasilvanonatalizi.blogspot.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories