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?
alternate to iframes?
Started by karnage, Aug 17 2005 09:38 PM
7 replies to this topic
#1
Posted 17 August 2005 - 09:38 PM
#2
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
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 
It has nothing to do with content import like iframes and php includes
It has nothing to do with content import like iframes and php includes
#4
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
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
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>
#7
Posted 18 August 2005 - 11:00 PM
like rc69 said, the z index isnt necessary, so here's how you would do it.
basically the same as rc's...
<div style="width:150px; height:150px overflow:auto;"> text goes here... </div>
basically the same as rc's...
#8
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
