Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 함께 해서 번역을 마치도록 도와 주세요!

Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

 

Summary

<spacer> is an HTML element which is used for inserting white spaces to web pages. It was created by NetScape for achieving same effect as a single-pixel layout GIF image, which was something web designers used to use to add white spaces to web pages, without actually using a GIF. However <spacer> is not supported by any major browser and same effects can be created with various CSS rules. In Mozilla applications, support for this element was removed in Gecko 2.0. Therefore usage of <spacer> is unnecessary.

Attributes

Like all other HTML elements, this element supports the global attributes.

type
This attribute determines type of spacer. Possible values are horizontal, vertical and block.
size
This attribute can be used for defining size of spacer in pixels when type is horizontal or vertical.
width
This attribute can be used for defining width of spacer in pixels when type is block.
height
This attribute can be used for defining height of spacer in pixels when type is block.
align
This attribute determines alignment of spacer. Possible values are left, right and center.
 

Example

<span>Just a text node</span>
<spacer type="horizontal" size="10"></spacer>
<span>Just another text node</span>
<spacer type="block" width="10" height="10"></spacer>

문서 태그 및 공헌자

 이 페이지의 공헌자: kscarfone, tregagnon, Sheppy, teoli, jswisher, avsaro
 최종 변경: kscarfone,