Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Help for getting HTML element width info.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jiang He  
View profile  
 More options Oct 22 2006, 10:10 pm
Newsgroups: mozilla.dev.tech.layout
From: "Jiang He" <you...@gmail.com>
Date: Sun, 22 Oct 2006 21:10:20 -0500
Local: Sun, Oct 22 2006 10:10 pm
Subject: Help for getting HTML element width info.
Hello, everyone,

I just joined this group, and I hope some more advanced members may
enlighten me about the following question:

Can I use the Gecko engine to get the width information of some HTML
elements (such as table,tr,td)? The element width information is not always
available in the HTML source, but when the element is displayed, the width
information is required. I think the layout engine calculates the width. Is
there a way to retrieve the width of the element from the layout engine?

Thanks,

Jiang


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martijn  
View profile  
 More options Oct 23 2006, 4:14 am
Newsgroups: mozilla.dev.tech.layout
From: Martijn <martijn.mart...@gmail.com>
Date: Mon, 23 Oct 2006 10:14:49 +0200
Local: Mon, Oct 23 2006 4:14 am
Subject: Re: Help for getting HTML element width info.
On 10/23/06, Jiang He <you...@gmail.com> wrote:

> Can I use the Gecko engine to get the width information of some HTML
> elements (such as table,tr,td)? The element width information is not always
> available in the HTML source, but when the element is displayed, the width
> information is required. I think the layout engine calculates the width. Is
> there a way to retrieve the width of the element from the layout engine?

As far as I can see, you can just use the offsetWidth property.

Regards,
Martijn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »