🗊Презентация CSS Properties. The position property

Нажмите для полного просмотра!
CSS Properties. The position property, слайд №1CSS Properties. The position property, слайд №2CSS Properties. The position property, слайд №3CSS Properties. The position property, слайд №4CSS Properties. The position property, слайд №5CSS Properties. The position property, слайд №6CSS Properties. The position property, слайд №7CSS Properties. The position property, слайд №8CSS Properties. The position property, слайд №9CSS Properties. The position property, слайд №10CSS Properties. The position property, слайд №11CSS Properties. The position property, слайд №12CSS Properties. The position property, слайд №13CSS Properties. The position property, слайд №14CSS Properties. The position property, слайд №15CSS Properties. The position property, слайд №16CSS Properties. The position property, слайд №17CSS Properties. The position property, слайд №18CSS Properties. The position property, слайд №19CSS Properties. The position property, слайд №20CSS Properties. The position property, слайд №21CSS Properties. The position property, слайд №22CSS Properties. The position property, слайд №23CSS Properties. The position property, слайд №24CSS Properties. The position property, слайд №25CSS Properties. The position property, слайд №26CSS Properties. The position property, слайд №27CSS Properties. The position property, слайд №28CSS Properties. The position property, слайд №29CSS Properties. The position property, слайд №30CSS Properties. The position property, слайд №31

Вы можете ознакомиться и скачать презентацию на тему CSS Properties. The position property. Доклад-сообщение содержит 31 слайдов. Презентации для любого класса можно скачать бесплатно. Если материал и наш сайт презентаций Mypresentation Вам понравились – поделитесь им с друзьями с помощью социальных кнопок и добавьте в закладки в своем браузере.

Слайды и текст этой презентации


Слайд 1





Lecture 5      CSS Properties 
Sarsenova Zh.N.
Описание слайда:
Lecture 5 CSS Properties Sarsenova Zh.N.

Слайд 2





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
Описание слайда:
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 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:
Описание слайда:
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 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.
Описание слайда:
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 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.
Описание слайда:
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 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:
Описание слайда:
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 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.
Описание слайда:
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 property specifies on which sides of an element floating elements are not allowed to float:
Описание слайда:
Clear property The clear property specifies on which sides of an element floating elements are not allowed to float:

Слайд 9





Display property
The display property specifies the type of box used for an HTML element.
Описание слайда:
Display property The display property specifies the type of box used for an HTML element.

Слайд 10





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
Описание слайда:
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 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:
Описание слайда:
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
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)
Описание слайда:
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 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:
Описание слайда:
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
The border-collapse property sets whether the table borders are collapsed into a single border or detached as in standard HTML.
Описание слайда:
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
Описание слайда:
Separate value

Слайд 16





Collapse value
Описание слайда:
Collapse value

Слайд 17


CSS Properties. The position property, слайд №17
Описание слайда:

Слайд 18





CSS cursor Property
The cursor property specifies the type of cursor to be displayed
CSS Syntax
cursor: value;
ayed when pointing on an element.
Описание слайда:
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
Описание слайда:
Property Values

Слайд 20





 :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).
Описание слайда:
 :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
Описание слайда:
Example

Слайд 22





Quiz
. Which is the correct CSS syntax?
 body {color: black;}
 body:color=black;
 {body:color=black;}
 {body;color:black;}
Описание слайда:
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 in a CSS file?

 // this is a comment
 ' this is a comment
 /* this is a comment */
 // this is a comment //
Описание слайда:
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 color for all <h1> elements?

 all.h1 {background-color:#FFFFFF;}
 h1.all {background-color:#FFFFFF;}
 h1 {background-color:#FFFFFF;}
Описание слайда:
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 without an underline?
 a {text-decoration:no-underline;}
 a {text-decoration:none;}
 a {decoration:no-underline;}
 a {underline:none;}
Описание слайда:
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 a text start with a capital letter?
 text-transform:uppercase
 text-transform:capitalize
 You can't do that with CSS
Описание слайда:
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 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;
Описание слайда:
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 lists its items with squares?

 list-style-type: square;
 list-type: square;
 list: square;
Описание слайда:
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 elements inside a div element?

 div p
 div + p
 div.p
Описание слайда:
How do you select all p elements inside a div element?  div p  div + p  div.p

Слайд 30





What is the default value of the position property?

 static
 fixed
 absolute
 relative
Описание слайда:
What is the default value of the position property?  static  fixed  absolute  relative

Слайд 31





Thank You!
Описание слайда:
Thank You!



Похожие презентации
Mypresentation.ru
Загрузить презентацию