A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/css/cssom/properties/hasLayout below:

hasLayout ยท WebPlatform Docs

hasLayout

Property of css/cssom/CSSStyleDeclaration/CSSStyleDeclarationcss/cssom/CSSStyleDeclaration/CSSStyleDeclaration

Syntax
var result = declaration.hasLayout;
declaration.hasLayout = value;
Return Value

Returns an object of type StringString

Examples

The following example shows how to use the hasLayout property to determine whether an object has layout.

<DIV ID="oWidthSet" STYLE="width:100%">
    DIV element A has its width set to 100%.</DIV>
<DIV ID="oNotSet">DIV element B is not positioned,
    and neither its height nor width is set.</DIV>
<P>Which DIV element has layout?</P>
<BUTTON onclick="alert(oWidthSet.currentStyle.hasLayout)">
    DIV Element A</BUTTON>
<BUTTON onclick="alert(oNotSet.currentStyle.hasLayout)">
    DIV Element B</BUTTON>

View live example

Notes Remarks

The following table shows Cascading Style Sheets (CSS) properties and corresponding values that, if set, cause an element to have a layout. {

Syntax

hasLayout: VARIANT_FALSE | VARIANT_FALSE

Requirements

{

See also Related articles CSSOM Related pages Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4