Jump to content

A simple HTML question


Recommended Posts

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

<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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...