Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-15-2002, 11:55 PM   PM User | #1
sharpshooter
Banned

 
Join Date: Jul 2002
Location: england
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
sharpshooter is an unknown quantity at this point
can you HELLP!??

i need to get my banner on my site http://www.angelfire.com/wrestling/jwtapes in the right place of the top frame.... any ideas on how to do this? thanks.
sharpshooter is offline   Reply With Quote
Old 07-16-2002, 12:03 AM   PM User | #2
boxer_1
Regular Coder

 
Join Date: May 2002
Location: Maine, USA
Posts: 574
Thanks: 0
Thanked 0 Times in 0 Posts
boxer_1 is an unknown quantity at this point
In the page that loads into the top frame (containing the banner), add the following to the head section:

<style type="text/css">
body {margin: 0px;}
</style>

Then, add the following to the body tag of the same page:

<body...topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">

Good luck .
__________________
boxer_1
CodingForums Moderator
"How did a fool and his money get together in the first place?"
boxer_1 is offline   Reply With Quote
Old 07-16-2002, 12:16 AM   PM User | #3
sharpshooter
Banned

 
Join Date: Jul 2002
Location: england
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
sharpshooter is an unknown quantity at this point
the weirdest thing has happened... i added the html and the banner appears at the very top of the page in preview, but not when the url is typed in... yes I checked it saved properly and yes I have tried hitting the refresh button. Any ideas?
sharpshooter is offline   Reply With Quote
Old 07-16-2002, 12:23 AM   PM User | #4
boxer_1
Regular Coder

 
Join Date: May 2002
Location: Maine, USA
Posts: 574
Thanks: 0
Thanked 0 Times in 0 Posts
boxer_1 is an unknown quantity at this point
Quote:
Originally posted by sharpshooter
the weirdest thing has happened... i added the html and the banner appears at the very top of the page in preview, but not when the url is typed in... yes I checked it saved properly and yes I have tried hitting the refresh button. Any ideas?
Ok, you added the style part ok, but the body part I gave you was not meant to be added seperately, but inside of the body tag you already have. You have this:

<body...topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<body bgcolor=black>

Should have:

<body bgcolor="black" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">

See what I mean?
__________________
boxer_1
CodingForums Moderator
"How did a fool and his money get together in the first place?"
boxer_1 is offline   Reply With Quote
Old 07-16-2002, 11:49 AM   PM User | #5
sharpshooter
Banned

 
Join Date: Jul 2002
Location: england
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
sharpshooter is an unknown quantity at this point
Thanks for the help... but it hasnt made a difference.
sharpshooter is offline   Reply With Quote
Old 07-16-2002, 12:07 PM   PM User | #6
MCookie
Regular Coder

 
Join Date: Jun 2002
Location: NL
Posts: 421
Thanks: 0
Thanked 0 Times in 0 Posts
MCookie is an unknown quantity at this point
Hi, try adding the marginheight attribute to your bannerframe;

<frameset rows="64,*">
<frame name="banner" scrolling="no" noresize marginheight="0" target="contents"
MCookie is offline   Reply With Quote
Old 07-16-2002, 12:10 PM   PM User | #7
MCookie
Regular Coder

 
Join Date: Jun 2002
Location: NL
Posts: 421
Thanks: 0
Thanked 0 Times in 0 Posts
MCookie is an unknown quantity at this point
Forgot, there's also framespacing="0"
MCookie is offline   Reply With Quote
Old 07-16-2002, 12:10 PM   PM User | #8
boxer_1
Regular Coder

 
Join Date: May 2002
Location: Maine, USA
Posts: 574
Thanks: 0
Thanked 0 Times in 0 Posts
boxer_1 is an unknown quantity at this point
Hmm...you have a couple of problems in the source. You have 2 closing body tags and you should close your tags in the same case as you open them. For example, you have:

<body bgcolor="black" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"> </BODY>
<center><img src="images/banner.jpg"></center>
</BODY>

Try replacing the above with:

<body bgcolor="black" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<center>
<img src="images/banner.jpg" border="0" width="586" height="75">
</center>
</body>

Notice I also added the proper dimensions to your image as well as a border of "0". Good luck .
__________________
boxer_1
CodingForums Moderator
"How did a fool and his money get together in the first place?"
boxer_1 is offline   Reply With Quote
Old 07-16-2002, 01:58 PM   PM User | #9
MCookie
Regular Coder

 
Join Date: Jun 2002
Location: NL
Posts: 421
Thanks: 0
Thanked 0 Times in 0 Posts
MCookie is an unknown quantity at this point
QUOTE: hi thanks for all your help but i still cant get the damn image to load at the top of the page.

Well sharpshooter, when I borrowed your code and tried it offline without the Angelfire stuff I really couldn't see even one pixel of space between the banner and the frame. So it must be their code causing this. Bad luck..
MCookie is offline   Reply With Quote
Old 07-16-2002, 02:06 PM   PM User | #10
sharpshooter
Banned

 
Join Date: Jul 2002
Location: england
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
sharpshooter is an unknown quantity at this point
ok thanks everyone....hmmm damn you angelfire..
sharpshooter is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:06 PM.


Advertisement
Log in to turn off these ads.