Box model: margin border padding content margin-top border-top padding-top padding-bottom border-bottom margin-bottom margin-left border-left padding-left.

Slides:



Advertisements
Similar presentations
Ripasso. 2 Proprietà del testo body { font-family: Verdana, Geneva, Arial, sans-serif; } Ciao sans-serifserif.
Advertisements

CSS3 OVERVIEW Owen Williams Owen at dynabooks daht com.
LIS650 lecture 4 Thomas Krichel today Advice CSS Properties –Box properties-- List properties –Table properties-- Classification properties.
LIS650 lecture 4 Thomas Krichel today CSS Properties –Box properties-- List properties –Table properties-- Classification properties –(Audio.
LIS650 lecture 4 Thomas Krichel today Advice CSS Properties –Box properties –List properties –Classification properties Fun with selectors.
Working with Tables for Page Design – Lesson 41 Working with Tables for Page Design Lesson 4.
1 Cascading Style Sheets Continued Different kinds of selectors in a style sheet –Simple- Pseudo-Class –Contextual- Pseudo-Element –Class Image Styles.
CSS Layout Crash Course An Advance CSS Tutorial. Inline vs. Block Many HTML elements have a default display setting of Block. Block elements take up the.
Murach's PHP and MySQL, C1© 2010, Mike Murach & Associates, Inc.Slide 1.
Client-Side Internet and Web Programming
With CSS, a color is most often specified by: a HEX value - like "#ff0000" an RGB value - like "rgb(255,0,0)" a color name - like "red“ Example h1.
CIS 1310 – HTML & CSS 6 Layout. CIS 1310 – HTML & CSS Learning Outcomes  Describe & Apply the CSS Box Model  Configure Float with CSS  Designate Positioning.
Floating Elements CS380.
Cascading Style Sheets Color and Background Controls Border and Margin Controls (Boxes)
MORE Cascading Style Sheets (The Positioning Model)
CSS Margins. The Margin properties define the space around elements. It is possible to use negative values to overlap content. The top, right, bottom,
Slide 1 of 83 Table Borders To specify table borders in CSS, use the border property. The example below specifies a black border for table, th, and td.
CSS Box Model. What is the CSS Box Model? The “Box Model” is a tool we use to lay out our web pages in a number of individual "boxes" or "containers".
CSS The Definitive Guide Chapter 8.  Allows one to define borders for  paragraphs  headings  divs  anchors  images  and more.
+ Cascading Style Sheets Positioning for any XHTML container tag (selected by name, class or id)
Doncho Minkov Telerik Web Design Course html5course.telerik.com Technical Trainer
Floating Elements CS The CSS float property (reference) 2 img.headericon { float: right; width: 130px; } CSS  removed from normal document flow;
Cascading Style Sheets Chapters 5-6 Color and Background Controls Border and Margin Controls.
>> The “Box” Model. Pre-requisite Create a new project in Netbeans called Week5 Create a new html file and name it box.html Create a new css file and.
THE BOX MODEL Putting layouts together with CSS. The Box Model  How would you describe a box?  Container?  Tags or elements are “containers”  puts.
1 CS428 Web Engineering Lecture 08 Border, Margin, Padding … (CSS - III)
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, you will learn:  CSS Box Model  CSS properties for border  CSS properties for.
11/12/2015 Box Model Reed Crouch. 11/12/2015  HTML elements can be considered as boxes. In CSS, the term "box model" is used when referring to layout.
Extra-simplified.  Only truly happen when the CSS and HTML are defined as separate files (external style sheet) Introduction The main idea of CSS is.
Tutorial 4 Creating Page Layouts with CSS
CIS234A Lecture 6 Instructor Greg D’Andrea. Span and Div The span and div elements are a generic means by which we can add structure to documents. The.
Week 5.  Normal document flow  Affecting document flow with float and position properties using CSS  Using these properties to create layouts.
End User Computing Applied CSS: Building our course homepage Sujana Jyothi Department of Computer Science
Chapter 5 pp HTML Elements & Attributes Format Content Or Examples This Text Is A Hyperlink.
CHAPTER 15 Floating and Positioning. FLOAT VS. POSITION  Floating an element moves it to the left or right, allowing the following text to wrap around.
CSS.
CSS Box Model.
CSS Box Model.
CSS Box Model.
Cascading Style Sheets Boxes
CSS Layouts: Grouping Elements
>> The “Box” Model
Cascading Style Sheets (Formatting)
BOX DIMENSIONS width, height div { height: 300px; width: 400px; background-color: #ee3e80;} p { height: 75%; width: 75%; background-color:
Web Development & Design Foundations with HTML5 8th Edition
Objectives Create a reset style sheet Explore page layout designs
Cascading Style Sheets
The Internet 10/13/11 The Box Model
CSS Borders and Margins.
MORE Cascading Style Sheets (The Positioning Model)
HTML5 Level I Session III
HTML5 Level I Session III
Cascading Style Sheets
CSS Box Model.
Float Property Elements that seem to “float" on the right or left side of either the browser window or another element are often configured using.
List Properties Box Properties Pseudoclass
Cascading Style Sheets
Web Development & Design Foundations with H T M L 5
Web Development & Design Foundations with H T M L 5
More CSS Page layout Boriana Koleva Room: C54
How to use the CSS box model for spacing, borders, and backgrounds
The Box Model.
CSS Box Model.
CSS Boxes CS 1150 Fall 2016.
CS3220 Web and Internet Programming More CSS
CSS Box Model.
CSS Box Model.
CS3220 Web and Internet Programming More CSS
ITI 133: HTML5 Desktop and Mobile Level I
Positioning Boxes Using CSS
Presentation transcript:

box model: margin border padding content margin-top border-top padding-top padding-bottom border-bottom margin-bottom margin-left border-left padding-left padding-right border-right margin-right contenuto left top outline height width fino a IE6 la width comprendeva anche padding e margin

overflow, overflow-x: overflow-y visible | hidden | auto | scroll

outline è un bordo…. …all’esterno del bordo! #box { border: double 15px #808080; outline: dotted 10px green; }

white-space normal va a capo quando non ci sta più nowrap non va mai a capo, finchè non c’è pre vengono mantenuti spazi e tab e CR pre-line vengono mantenuti solo CR (rit.a capo) pre-wrap come pre ma rispettando il margine del contenitore inherit eredita dal contenitore