Jump to content


alternate to iframes?


7 replies to this topic

#1 karnage

    Young Padawan

  • Members
  • Pip
  • 50 posts
  • Location:behind da tree, come der nd u gonna get shot by ma neighbour
  • Interests:Chillin, a lil web designin, photoshoppin, ballin and rapping.

Posted 17 August 2005 - 09:38 PM

Ive herd u can like div overlay or sumn in css like dat instead of i frames, if any1 can tell me how to do this and gimme da code i wud really appreciate it. Cus i just wanna put sum text in my content boxes, and iframes are screwin everything up. I herd this way is easier, can any1 help?

#2 NGPixel

    Senior Programmer

  • P2L Staff
  • PipPipPipPip
  • 1,410 posts
  • Gender:Male
  • Location:Montreal, Canada
  • Interests:Web Design : Coding : Animation

Posted 17 August 2005 - 10:18 PM

iframes are not allowed in XHTML, you should use a php include or a javascript.

<?php include('yourfile.php'); ?>


#3 InFnit

    P2L Jedi

  • Members
  • PipPipPip
  • 822 posts
  • Interests:My interests are my:&lt;br&gt;&lt;br&gt;iidsite - http://iid.outer-heaven.net&lt;br&gt;iidblog - http://iid.outer-heaven.net/blog/&lt;br&gt;iidcommunity - http://iid.outer-heaven.net/forums/&lt;br&gt;P2L - http://www.pixel2life.com

Posted 18 August 2005 - 12:19 AM

NGP beat me to it, also CSS is just a way to make it aP (aesthetically pleasing) AKA pretty :D

It has nothing to do with content import like iframes and php includes

#4 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 18 August 2005 - 06:03 AM

i think he wants a div with a scrollbar to put some text into without having to make a whole new page just for some text like u have to do with iframes and the layout wont expand because of the fixed size. if its that what u meant try this

<div style="width:150px; height:150px; z-index:1; overflow: auto;"></div>


#5 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 18 August 2005 - 10:56 AM

to basically put everything together, this would be a PHP/CSS style "iframe"
<div style="width:150px; height:150px overflow:auto;">
<? include('filename.php'); ?>
</div>
Basically, you don't need the z-index thingy, and you can change the height and width to what ever you want. Also, there are close to 1k tutorials on how to do the php include thing, just search the the php coding's navigation section (example titles: "pages using ?id=blah", "navigation using includes", etc...).

#6 karnage

    Young Padawan

  • Members
  • Pip
  • 50 posts
  • Location:behind da tree, come der nd u gonna get shot by ma neighbour
  • Interests:Chillin, a lil web designin, photoshoppin, ballin and rapping.

Posted 18 August 2005 - 10:54 PM

Avalanche, on Aug 18 2005, 11:03 AM, said:

i think he wants a div with a scrollbar to put some text into without having to make a whole new page just for some text like u have to do with iframes and the layout wont expand because of the fixed size. if its that what u meant try this

<div style="width:150px; height:150px; z-index:1; overflow: auto;"></div>
yea this wat wat i was lookin for, but umm can u tell me wer to put my text in this code? Cus basically i just wanna put sum text in a place, nothing advance or anything, and with a scrollbar. Thanks gys, so do u think u cud tell me wer to put my text in this pls? im new to coding.

#7 coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 18 August 2005 - 11:00 PM

like rc69 said, the z index isnt necessary, so here's how you would do it.

<div style="width:150px; height:150px overflow:auto;">
text goes here...
</div>

basically the same as rc's...

#8 karnage

    Young Padawan

  • Members
  • Pip
  • 50 posts
  • Location:behind da tree, come der nd u gonna get shot by ma neighbour
  • Interests:Chillin, a lil web designin, photoshoppin, ballin and rapping.

Posted 19 August 2005 - 12:11 AM

o alright thx a lot gys, i really appreciate it. :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users