It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Iframes.

Iframes.

Postby Ash on Sun Feb 12, 2006 3:02 pm

I've got a template that could use a iframe but how do I get it to show on the main page and be the right width and height?
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby johneva on Sun Feb 12, 2006 3:35 pm

What do you mean?

Are you just asking how to make an Iframe in a page?
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby Ash on Sun Feb 12, 2006 3:38 pm

I got it now nevermind.
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby Ash on Mon Mar 20, 2006 12:42 am

This may seem like stupid question but with iframes do you have to define a source or can you just use <IFRAME></IFRAME> ?
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby Protege on Mon Mar 20, 2006 1:27 am

<iframe name="iframe1" src="frampage.html" height="100" width="400"></iframe>

Should work..

(if you want to open a page in that iframe, just use this: <a href="new.html" target="iframe1">go</a>)
Protege
50+ Club
 
Posts: 67
Joined: Mon Sep 19, 2005 8:05 am
Location: Scotland

Postby johneva on Mon Mar 20, 2006 9:15 am

That is the way to add iframes but...

iframes suck and should not be used if you can help it you should use either a scrolling div or a server side inculde depending on your needs.
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby Ash on Mon Mar 20, 2006 10:20 am

Well it's for a profile I have so I don't really have to use one. How would I use a scrolling div?
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby johneva on Mon Mar 20, 2006 10:33 am

Make a div set the size you want and use the
Code: Select all
overflow:auto


If you use percentages for the hight of the div and it is set to 100% it wont work though cos the overflow:auto just means scroll when needed.

To get round this instead of setting 100% set it as 101% and it should work then.

Here is a tutorial on it anyways.
http://www.fourlevel.com/nimbus/textare ... lable3.htm

and if you need any help just ask. :)
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby Ash on Mon Mar 20, 2006 12:10 pm

Ok thanks I got it sorted.
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England


Who is online

Users browsing this forum: No registered users and 4 guests

cron