draighox Posted June 12, 2005 Share Posted June 12, 2005 I started learning HTML and encountered a problem. How do I set inline frame in the middle of a page? I wrote the following code and used the align="middle" tag, but it didn't work. It works with right, left, top and bottom, though. Test1.html<html> <iframe align="middle" src="test2.html" width="500" height="700"></iframe> </html> Test2.html<html> <head> <title>Test</title> </head> <body bgcolor="black"> </body> </html> Any help? EDIT: Sorry, it doesn't work with "bottom" too. Link to comment Share on other sites More sharing options...
ThetaOrionis01 Posted June 12, 2005 Share Posted June 12, 2005 Try "center" instead of "middle"... or even better, don't use frames at all.... Link to comment Share on other sites More sharing options...
draighox Posted June 12, 2005 Author Share Posted June 12, 2005 Nope, "center" doesn't work either. Link to comment Share on other sites More sharing options...
Switch Posted June 12, 2005 Share Posted June 12, 2005 <iframe> eh? I haven't come across that tag before and I've done a HTML web design course. :D Handy one that. Anyway, I cracked it: <center> <iframe align="middle" src="test2.html" width="500" height="700"></iframe> </center> That'll centre the frame for you. Link to comment Share on other sites More sharing options...
draighox Posted June 12, 2005 Author Share Posted June 12, 2005 Wow, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.