By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,788 Members | 1,115 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,788 IT Pros & Developers. It's quick & easy.

Inherit?

P: n/a
I have a web page that has this in it:

<font size="6"><a name="link1" href="www.adobe.com" onMouseDown="javascript: var zHeight=link1.style ; for(var prop in zHeight){alert('Name = ' + prop + ' value = ' + zHeight[prop])}"

But when I run throgh the style array font-size = 0. How can I access the font size of text in a html document when I really do not know what the font-size is? Thanks.

--
George Hester
__________________________________
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In article <tm********************@twister.nyroc.rr.com> in
comp.infosystems.www.authoring.stylesheets, George Hester
<he********@hotmail.com> wrote:
I have a web page that has this in it:

<font size="6"><a name="link1" href="www.adobe.com" onMouseDown="javascript: var zHeight=link1.style ; for(var prop in zHeight){alert('Name = ' + prop + ' value = ' + zHeight[prop])}"

But when I run throgh the style array font-size = 0. How can I access the font size of text in a html document when I really do not know what the font-size is? Thanks.


I don't see any CSS here at all. Maybe you'd do better in a
Javascript group? (You might want to moderate your line lengths,
also, to make your article easier to read.)

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #2

P: n/a
Oh thanks for the help Stan. I used CSS to get it.

--
George Hester
__________________________________
"Stan Brown" <th************@fastmail.fm> wrote in message news:MP************************@news.odyssey.net.. .
In article <tm********************@twister.nyroc.rr.com> in
comp.infosystems.www.authoring.stylesheets, George Hester
<he********@hotmail.com> wrote:
I have a web page that has this in it:

<font size="6"><a name="link1" href="www.adobe.com" onMouseDown="javascript: var zHeight=link1.style ; for(var prop in zHeight){alert('Name = ' + prop + ' value = ' + zHeight[prop])}"

But when I run throgh the style array font-size = 0. How can I access the font size of text in a html document when I really do not know what the font-size is? Thanks.


I don't see any CSS here at all. Maybe you'd do better in a
Javascript group? (You might want to moderate your line lengths,
also, to make your article easier to read.)

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.