Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 21st, 2004, 09:28 PM
Authorized User
 
Join Date: Jul 2003
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to assign font type and size of IFRAME

I put a IFRAME into a table,then I assign font type and size of IFRAME,but when I run it,I found the font type and size of IFRAME not changed,why? How to do it?
My code is follows:
<table>
<td align=left class=tabform>

<IFRAME SRC="" id='richedit' height=42pt; width=100%;>
</IFRAME>

</td>
</table>

Any idea will be appreciated!
Edward


 
Old March 22nd, 2004, 06:37 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Actually my reference doesn't list height as a valid property but I think that is an oversight. It does state though that dimensions for width skould be pixels or percentage.
Code:
<IFRAME SRC="" id='richedit' height="42px" width="100%">
I don't think you can set the font height for the iframes contents by using surrounding font tags. You need to modify its document. Is it coming from your domain? Otherwise you won't be able to manipulate it programatically.

Joe

--

Joe





Similar Threads
Thread Thread Starter Forum Replies Last Post
Font Size in buttons jmss66 Classic ASP Basics 4 September 20th, 2006 02:13 PM
how to get font ,color,font size of text in win32 satishsatao Visual C++ 0 April 5th, 2006 05:05 AM
font-size problem in CSS crmpicco CSS Cascading Style Sheets 2 August 22nd, 2005 09:31 PM
Access Report Font Size ritag Access 2 November 5th, 2004 11:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.