-
How can I know the height of certain layer?
See, I defined my layer as:
<DIV id="mylayer" style="width:100px left:100px top 100px">SomeText</DIV>
For some reasons, I can't set its height at designtime. But I will have to
use its height property. How can I do this?
I've tried document.all.mylayer.style.height, but this won't work.
-
Re: How can I know the height of certain layer?
First, you need to use semicolons to delimit the properties, although I don't
know if this holds true in inline styles. I always link my stylesheets.
Easier to manage the content. You can use in the head:
#mylayer {height: 50px; width:100px; left: 50px;
cursor: n-resize}
</HEAD>
<BODY>
<DIV ID="mylayer">do de do BLAH!</DIV>
Try Danny Goodman's Dynamic HTML , O'Reilly. Great book.
"Funda Wang" <helphand@netease.com> wrote:
>
>See, I defined my layer as:
>
><DIV id="mylayer" style="width:100px left: 50px top 100px">SomeText</DIV>
>
>For some reasons, I can't set its height at designtime. But I will have
to
>use its height property. How can I do this?
>
>I've tried document.all.mylayer.style.height, but this won't work.
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks