Jump to content
  • Advertisement

Archived

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

SSJCORY

HTML Question

This topic is 5305 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When i load an image which is supposed to be my banner I get a space between the banner and the top of the page. How do i eliminate that and make the image at the top of the page. Heres the website shit:
<html>
<head><title>Cory''s Page</title></head>
<body bgcolor = "black">
<img src="banner.bmp">
</body>
</html>

Favorite Quotes:Gandalf: You shall not pass!|Smeagol: We don''t need you!|Sloth: Hey you guys!|

Share this post


Link to post
Share on other sites
Advertisement

<html>
<head>
<title>Cory''s Page</title>
</head>
<body bgcolor = "black">
<div style="position:absolute;top:0">
<img src="banner.bmp">
</div>
</body>
</html>




First make it work, then make it fast. --Brian Kernighan

The problems of this world cannot possibly be solved by skeptics or cynics whose horizons are limited by the obvious realities. We need men and women who can dream of things that never were. - John Fitzgerald Kennedy(35th US President)

Do not interrupt your enemy when he is making a mistake. - Napolean Bonaparte

Share this post


Link to post
Share on other sites
Thanks that worked



Favorite Quotes:Gandalf: You shall not pass!|Smeagol: We don''t need you!|Sloth: Hey you guys!|

Share this post


Link to post
Share on other sites
Another question how do I make a link appear in a new window?



Favorite Quotes:Gandalf: You shall not pass!|Smeagol: We don''t need you!|Sloth: Hey you guys!|

Share this post


Link to post
Share on other sites
<a target = "_blank" href = "http://www.somelink.com">somelink</a> 


[edited by - JohnyB on May 8, 2004 12:45:09 AM]

Share this post


Link to post
Share on other sites
Thanks johny i knew i saw it like that somewhere i just couldn''t remember exactly how to do it.



Favorite Quotes:Gandalf: You shall not pass!|Smeagol: We don''t need you!|Sloth: Hey you guys!|

Share this post


Link to post
Share on other sites
Another possible solution to your first problem is to set the padding of the page to 0 using CSS (but the first solution works just fine and neither is really better than the other AFAIK).

CSS Tutorial

Share this post


Link to post
Share on other sites
quote:
Original post by CaptainJester

<html>
<head>
<title>Cory's Page</title>
</head>
<body bgcolor = "black">
<div style="position:absolute;top:0">
<img src="banner.bmp">
</div>
</body>
</html>




Or just set margin to none.

Jay

Edit: W3 HTML Specs

[edited by - Jason Zelos on May 9, 2004 7:06:31 AM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!