Вебмастер
Санкт-Петербург
Частный вебмастер Услуги Контакты Справочная информация Статьи и публикации Полезные сервисы Букварь вебмастера
   Букварь вебмастера

Атрибут position


position Attribute

{ position: absolute | relative | static}

Specifies whether the element can be positioned. When set to relative, the object is placed relative to its parent object. When set to absolute, it is placed relative to the document.

<DIV align=center> Hello

<SPAN Style="position:relative; top:100; left:100"> World </SPAN>

</DIV>

The word "Hello" will be placed in the center of the screen. The word "World" will be placed down 100 and right 100 relative to the word "Hello".

This attribute is not inherited.

Смотрите далее: text-align »

  Атрибуты CSS