Beruflich Dokumente
Kultur Dokumente
Module 5
http://www.lipsum.com/
http://www.w3.org/TR/CSS2/box.html#box-dimensions
Paddin
g
Border
Margin
Normal Flow
border-width
border-style
border-color
hr is an element
border is a property
Border is a ________
Block element
default width of element extends to browser margin (or
specified width)
begin on a new line
Inline element
Border closely outlines the element content
An
Background
border
http://border-radius.
com/
Configures ______________
padding-bottom
padding-left
padding-right
padding-top
margin-bottom
margin-left
margin-right
margin-top
*, *:before, *:after {
box-sizing: border-box; }
In Practice pp 68-72
https://css-tricks.com/box-sizing/
Positioning
Relative
Absolute
Float
http://www.barelyfitz.com/screencast/html-training/css/positioning/
Relative Positioning
h1 { background-color:#ccc;
padding:5px;
color: #000;
}
#myContent { position: relative;
left:30px;
font-family: Arial,sans-serif;
}
Changes the
location of an
element in is
positioned
relative to its
normal position
Absolute Positioning
Precisely specifies the location of an element in
the browser window
h1 { background-color:#ccc;
padding:5px;
color: #000;
}
#content {position: absolute;
left:200px;
top:100px;
font-family:Arial,sans-serif;
width:300px;
}
#tiger_section {
position: relative;
top: 50px;
}
#tiger_rock{
position: absolute;
top:15px;
right: 15px;
}
Control elements
absolutely in relation to
their parent element.
Float Property
Float Property
Float Property
Always 2 parts
float: left;
width: 100px;
http://css.maxdesign.com.au/floatutorial/
Clear Property