/    Sign up×
Community /Pin to ProfileBookmark

Wrapping IFRAMES

I have an IFRAME in my page, however I want to wrap the text in it. How do I do this?

Thanks

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@StefanJan 02.2003 — Normally the text in an iframe will auto wrap when the text doesn't fit on one row, just like on a normal page.

If it's not doing that it's becuse you have done something to prevent it wraping normally.

To know what that is however requires that you leave a link to your site.
Copy linkTweet thisAlerts:
@ollmorrisauthorJan 02.2003 — I have included the script. You need to open EDITOR.HTML and see the IFRAME. Thanks

[upl-file uuid=77e313e4-1c4a-431e-ae63-bf321ff9735b size=4kB]iframe.zip[/upl-file]
Copy linkTweet thisAlerts:
@StefanJan 02.2003 — Ok, this is considerably more complex then you first description of your page.

You are not loading an iframe, you seem to be trying to make webbased editor and the code is prettyu banged up.

For starters, this is what your iframe looks like

<font size="2" face="Verdana, Helvetica"></font>

That is VERY far from how a HTML page should look like, which is something like this

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<meta http-equiv="Content-Script-Type" content="text/javascript">

<meta http-equiv="Content-Style-Type" content="text/css">

<title></title>

</head>

<body>

</body>

</html>

However are you sure you are not really looking for the <textarea> tag instead of an <iframe> ?

Also your JavaScript is broken and only works on IE.
Copy linkTweet thisAlerts:
@ollmorrisauthorJan 02.2003 — Of course it will only work in IE. It uses DOM.

Anyway I use an IFRAME because it can be used to display HTML and is what you are told to do when you create a content manager.

Thanks anyway
Copy linkTweet thisAlerts:
@StefanJan 03.2003 — [i]Originally posted by ollmorris [/i]

Of course it will only work in IE. It uses DOM.
[/QUOTE]


JFYI

DOM = Document Object Model of which there is a perfectly fine standards crossbrowser version.

http://www.w3.org/DOM/

Apart from that one there is an old IE proprietary format just as there are other old proprietary format for eg NS 4.x.

In short, all JS browsers have a DOM of some sort.

If you can't get your JS to work in Netscape 6+ it's generally becuse you are stuck in the late 1990-ies coding with a browserspecific proprietary DOM instead of a modern one that works crossbrowser.


In any case, your page linebreaks just fine in IE 6.01 when I tried it.

However it will only linebreak if there actually IS somewhere to linebreak (that means a space). If you have 200 chars in one row and no space the row will be minimum 200 chars long.

The reason i suggested textarea before is that IE has a special property in were it actually makes linebreaks even in compact (no space) text if entered in textareas.
×

Success!

Help @ollmorris spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...