![]() |
Positioning the Layer![]() ![]() ![]() ![]() ![]()
To position a layer, you need a coordinate system that can describe any position within the browser window, no matter the size or shape. For this reason, all coordinates are based from the top left of the browser window.
To ensure compatibility with all possible measurements used in style sheets, a layer supports figures in pixels, inches, centimeters, and percentages. If no measurement system is designated, a layer defaults to pixels. The new page includes both text items starting from the top left corner.
<HTML> <HEAD> <Hl><FONT colorz"red">HERE'S SOME REALLY BIG TEXT</FONT></H1> </LAYER> </BODY> </HTML> In addition to placement, you also can control the width of a layer. A new layer is added to the Web page to control the width of the body text. <HTML> <HEAD> <TITLE>Working with layers</TITLE> </HEAD> <BODY> <P>Here's some text which is not a part of any layer anywhere, and include rather long sentence which stretches clear across the page.</P> <LAYER top=1 50 left=1 50 width=1 00> <P>Here's some main text which is part of another paragraph. Here's some main text which is part of another paragraph. Here's some main text which is part of another paragraph. Here's some main text which is part of another paragraph. Here's some main text which is part of another paragraph.</p>
|
|
Domain NamesDHTML Document Object Model Features of Dynamic HTML HTML Versus DHTML Netscape's Vision of DHTML Microsoft Vision of DHTML Cascading Style Sheets(CSS) Inline Style Sheets Embedded Style for a Page Linked Cascading Style Sheet Text Specific Style AttributesCSS Attributes Assigning Classes Java Script Style Sheets(JSSS) Object Property Functions Methods
Creating Style Sheets with JSSS New JSSS Methods Working Layers Positioning the Layer Using More than One Layer Moving a Layer Around on the Page Events
The mouseOver and mouseOut Events The mouseMove Event The Keyboard Events The mouseDown and mouseUp Events The dragDrop Event Error Event Form Event The Script Tag Changing Text Color Inline Text Attribute Changes Text Dynamically Changing StylesExample of Dynamically Changing Style Dynamically Changing Content HTML Replacement Changing Text Content An Example of HTML Graphics ReplacementWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |