iframe and text in it

liunx

Guest
must i load an html page into an iframe or can i just write a plain text?<br />
beacuse i have tried to do it and it isnt going :(<!--content--><div style="height:500px; width:500px; overflow:auto;">you text</div><br />
<br />
Forget the iframe.<!--content-->for example at x,y=400,528 ?<!--content-->if it is possible to write textinto an iframe withogu loading another page into it?<!--content-->Originally posted by pelegk1 <br />
if it is possible to write textinto an iframe withogu loading another page into it? No, it is not possible to do this, plus why use an iframe at all, they are terrible, they will give you less control and are inacessable, iframes uterly suck.<br />
<div style="width:500px; margin:0px auto; text-align:left; padding:15px; border:1px dashed #788282;<br />
<br />
background-color:#eee;<br />
<br />
height:500px; overflow:auto;">This will center it, give it a background color, a border, align the text and give it a padding</div><br />
<br />
I actually prefer to do this though<br />
put this in your head<br />
<br />
<style type="text/css"><br />
#contentscroll {<br />
width:500px; <br />
margin:0px auto; <br />
text-align:left; <br />
padding:15px; <br />
border:1px dashed #788282;<br />
background-color:#eee;<br />
height:500px; <br />
overflow:auto;<br />
}<br />
</style><br />
<br />
<br />
then this in your body<br />
<br />
<div id="contentscroll">This will center it, give it a background color, a border, align the text and give it a padding</div><br />
<br />
<br />
This will keep all of those attributes separate, you can also put them in an external file.<!--content-->
 
Back
Top