100 Web Space
http://forum.100webspace.com/

IFRAME Problem
http://forum.100webspace.com/viewtopic.php?f=4&t=7599
Page 1 of 1

Author:  r3bol [ Sat Aug 25, 2007 2:31 pm ]
Post subject:  IFRAME Problem

I'm using an IFRAME to display a .txt file on my web page http://leosuo.100webspace.net and was wondering how I could get the text to wrap instead of continue horizontally?

I was also wondering if I could pick the colour of the IFRAME's background?

And would this be possible to do without breaking into JavaScript :oops:

Thanks super cool forum people!

Author:  leohom [ Sun Aug 26, 2007 8:16 am ]
Post subject: 

I'm not familiar with iframes. Why not just use tables? The rest of your page already uses them, so why not just add in another cell in the existing table and format the colors there?

Author:  r3bol [ Sun Aug 26, 2007 4:22 pm ]
Post subject: 

Quote:
Why not just use tables?
because i wanted to restrict the size of the text area to be shown using a scroll feature. But you just gave me an idea. I could stick in a TEXTAREA and call the text in through php because you can prefill the textarea with text (i think).

Author:  r3bol [ Mon Aug 27, 2007 7:24 am ]
Post subject: 

Thanks, great post!

Author:  r3bol [ Tue Aug 28, 2007 2:47 pm ]
Post subject: 

I tried the PHP and it worked, but the textarea box was a bad idea. It appears to be different sizes on different OS, even though i used the same browser.

I'm going to try the CSS one method next. :cry:

Author:  r3bol [ Tue Aug 28, 2007 4:21 pm ]
Post subject: 

OK so the CSS worked pretty well :evil:
I havent made it look pretty or anything yet, but if anyone is interested...
http://leosuo.100webspace.net/

I really didn't want to get too involved with CSS, but now you have made me lust after it :twisted:

Thanks :D

Author:  leohom [ Tue Aug 28, 2007 6:23 pm ]
Post subject: 

Yep - the text area looks a lot better now.

I think the only downside to CSS is that there's a bit of a learning curve involved as opposed to table design which is just a matter of sticking things together on a page - easy but slightly messy.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/