Оцените презентацию от 1 до 5 баллов!
Тип файла:
ppt / pptx (powerpoint)
Всего слайдов:
31 слайд
Для класса:
1,2,3,4,5,6,7,8,9,10,11
Размер файла:
446.05 kB
Просмотров:
60
Скачиваний:
0
Автор:
неизвестен
Слайды и текст к этой презентации:
№1 слайд![Lecture CSS Properties](/documents_6/30c7f18f74967775c506b9023a3f62f4/img0.jpg)
Содержание слайда: Lecture 5 CSS Properties
Sarsenova Zh.N.
№2 слайд![The position property The](/documents_6/30c7f18f74967775c506b9023a3f62f4/img1.jpg)
Содержание слайда: The position property
The position property specifies the type of positioning method used for an element
Elements are then positioned using the top, bottom, left, and right properties. However, these properties will not work unless the position property is set first. They also work differently depending on the position value.
static,
relative,
absolute
fixed
№3 слайд![Static Static positioned](/documents_6/30c7f18f74967775c506b9023a3f62f4/img2.jpg)
Содержание слайда: Static
Static positioned elements are not affected by the top, bottom, left, and right properties.
An element with position: static; is not positioned in any special way; it is always positioned according to the normal flow of the page:
№4 слайд![Relative An element with](/documents_6/30c7f18f74967775c506b9023a3f62f4/img3.jpg)
Содержание слайда: Relative
An element with position: relative; is positioned relative to its normal position.
Setting the top, right, bottom, and left properties of a relatively-positioned element will cause it to be adjusted away from its normal position. Other content will not be adjusted to fit into any gap left by the element.
№5 слайд![Absolute An element with](/documents_6/30c7f18f74967775c506b9023a3f62f4/img4.jpg)
Содержание слайда: Absolute
An element with position: absolute; is positioned relative to the nearest positioned ancestor (instead of positioned relative to the viewport, like fixed).
However; if an absolute positioned element has no positioned ancestors, it uses the document body, and moves along with page scrolling.
Note: A "positioned" element is one whose position is anything except static.
№6 слайд![Fixed An element with](/documents_6/30c7f18f74967775c506b9023a3f62f4/img5.jpg)
Содержание слайда: Fixed
An element with position: fixed; is positioned relative to the viewport, which means it always stays in the same place even if the page is scrolled. The top, right, bottom, and left properties are used to position the element.
A fixed element does not leave a gap in the page where it would normally have been located.
Notice the fixed element in the lower-right corner of the page. Here is the CSS that is used:
№7 слайд![Floating Boxes The floating](/documents_6/30c7f18f74967775c506b9023a3f62f4/img6.jpg)
Содержание слайда: Floating Boxes
The floating box sits wherever you place it, and the rest of the content flows around that box.
The float property specifies whether or not an element should float.
In its simplest use, the float property can be used to wrap text around images.
№8 слайд![Clear property The clear](/documents_6/30c7f18f74967775c506b9023a3f62f4/img7.jpg)
Содержание слайда: Clear property
The clear property specifies on which sides of an element floating elements are not allowed to float:
№9 слайд![Display property The display](/documents_6/30c7f18f74967775c506b9023a3f62f4/img8.jpg)
Содержание слайда: Display property
The display property specifies the type of box used for an HTML element.
№10 слайд![CSS Lists The CSS list](/documents_6/30c7f18f74967775c506b9023a3f62f4/img9.jpg)
Содержание слайда: CSS Lists
The CSS list properties allow you to:
Set different list item markers for ordered lists
Set different list item markers for unordered lists
Set an image as the list item marker
Add background colors to lists and list items
№11 слайд![An Image as The List Item](/documents_6/30c7f18f74967775c506b9023a3f62f4/img10.jpg)
Содержание слайда: An Image as The List Item Marker
The list-style-image property specifies an image as the list item marker:
Position The List Item Markers
The list-style-position property specifies whether the list-item markers should appear inside or outside the content flow:
№12 слайд![List - Shorthand property](/documents_6/30c7f18f74967775c506b9023a3f62f4/img11.jpg)
Содержание слайда: List - Shorthand property
When using the shorthand property, the order of the property values are:
list-style-type (if a list-style-image is specified, the value of this property will be displayed if the image for some reason cannot be displayed)
list-style-position (specifies whether the list-item markers should appear inside or outside the content flow)
list-style-image (specifies an image as the list item marker)
№13 слайд![Styling List With Colors We](/documents_6/30c7f18f74967775c506b9023a3f62f4/img12.jpg)
Содержание слайда: Styling List With Colors
We can also style lists with colors, to make them look a little more interesting.
Anything added to the <ol> or <ul> tag, affects the entire list, while properties added to the <li> tag will affect the individual list items:
№14 слайд![CSS border-collapse Property](/documents_6/30c7f18f74967775c506b9023a3f62f4/img13.jpg)
Содержание слайда: CSS border-collapse Property
The border-collapse property sets whether the table borders are collapsed into a single border or detached as in standard HTML.
№15 слайд![Separate value](/documents_6/30c7f18f74967775c506b9023a3f62f4/img14.jpg)
Содержание слайда: Separate value
№16 слайд![Collapse value](/documents_6/30c7f18f74967775c506b9023a3f62f4/img15.jpg)
Содержание слайда: Collapse value
№17 слайд![](/documents_6/30c7f18f74967775c506b9023a3f62f4/img16.jpg)
№18 слайд![CSS cursor Property The](/documents_6/30c7f18f74967775c506b9023a3f62f4/img17.jpg)
Содержание слайда: CSS cursor Property
The cursor property specifies the type of cursor to be displayed
CSS Syntax
cursor: value;
ayed when pointing on an element.
№19 слайд![Property Values](/documents_6/30c7f18f74967775c506b9023a3f62f4/img18.jpg)
Содержание слайда: Property Values
№20 слайд![last-child Selector The](/documents_6/30c7f18f74967775c506b9023a3f62f4/img19.jpg)
Содержание слайда: :last-child Selector
The :last-child selector matches every element that is the last child of its parent.
Tip: p:last-child is equal to p:nth-last-child(1).
№21 слайд![Example](/documents_6/30c7f18f74967775c506b9023a3f62f4/img20.jpg)
Содержание слайда: Example
№22 слайд![Quiz . Which is the correct](/documents_6/30c7f18f74967775c506b9023a3f62f4/img21.jpg)
Содержание слайда: Quiz
. Which is the correct CSS syntax?
body {color: black;}
body:color=black;
{body:color=black;}
{body;color:black;}
№23 слайд![How do you insert a comment](/documents_6/30c7f18f74967775c506b9023a3f62f4/img22.jpg)
Содержание слайда: How do you insert a comment in a CSS file?
// this is a comment
' this is a comment
/* this is a comment */
// this is a comment //
№24 слайд![How do you add a background](/documents_6/30c7f18f74967775c506b9023a3f62f4/img23.jpg)
Содержание слайда: How do you add a background color for all <h1> elements?
all.h1 {background-color:#FFFFFF;}
h1.all {background-color:#FFFFFF;}
h1 {background-color:#FFFFFF;}
№25 слайд![How do you display hyperlinks](/documents_6/30c7f18f74967775c506b9023a3f62f4/img24.jpg)
Содержание слайда: How do you display hyperlinks without an underline?
a {text-decoration:no-underline;}
a {text-decoration:none;}
a {decoration:no-underline;}
a {underline:none;}
№26 слайд![How do you make each word in](/documents_6/30c7f18f74967775c506b9023a3f62f4/img25.jpg)
Содержание слайда: How do you make each word in a text start with a capital letter?
text-transform:uppercase
text-transform:capitalize
You can't do that with CSS
№27 слайд![How do you display a border](/documents_6/30c7f18f74967775c506b9023a3f62f4/img26.jpg)
Содержание слайда: How do you display a border like this:
The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel?
border-width:10px 20px 5px 1px;
border-width:10px 5px 20px 1px;
border-width:5px 20px 10px 1px;
border-width:10px 1px 5px 20px;
№28 слайд![How do you make a list that](/documents_6/30c7f18f74967775c506b9023a3f62f4/img27.jpg)
Содержание слайда: How do you make a list that lists its items with squares?
list-style-type: square;
list-type: square;
list: square;
№29 слайд![How do you select all p](/documents_6/30c7f18f74967775c506b9023a3f62f4/img28.jpg)
Содержание слайда: How do you select all p elements inside a div element?
div p
div + p
div.p
№30 слайд![What is the default value of](/documents_6/30c7f18f74967775c506b9023a3f62f4/img29.jpg)
Содержание слайда: What is the default value of the position property?
static
fixed
absolute
relative
№31 слайд![Thank You!](/documents_6/30c7f18f74967775c506b9023a3f62f4/img30.jpg)
Содержание слайда: Thank You!