Solved

Displaying image on the top left without border

Posted on 2000-03-10
10
172 Views
Last Modified: 2013-12-24
I'm trying to make my image flush to the top-left of the screen with no white space around it.  It looks great in Frontpage but when previewed in a browser I get a thin white space on the top of the image and going down the left side.  I tried putting it in a table and turning the cell-padding to zero but that did not seem to work.
0
Comment
Question by:snocross
  • 3
  • 2
  • 2
  • +3
10 Comments
 
LVL 9

Expert Comment

by:TTom
ID: 2606703
Have you tried putting the image at the top of your page and adding:

<body topmargin=0 leftmargin=0>

You may also need some other variation to deal with NS, but this might work for IE.

Tom
0
 
LVL 3

Expert Comment

by:fibdev
ID: 2607007
Tom's suggestion will solve the problem in msie, but netscape does not support 0 margins :(  I very badly wish that it did.  You could also use absolute positioning, but only newer versions of netscape will support it, and not very well from a stability point of view I might add.

<span style="position: absolute; left: 0; top: 0"><img border="0" src="images/myimage.gif" width="100" height="50"></span>

It's worth a shot.
0
 
LVL 5

Author Comment

by:snocross
ID: 2609995
I did have my topmargin and leftmargin set to zero and it does work in IE but not Netscape
0
 
LVL 2

Expert Comment

by:READER
ID: 2610982
I think your problem has to do with "Browser Offset".

If so you will find an explanation and some solutions to this problem  at the following address

http://www.dsiegel.com/tips/wonk14/
0
 
LVL 3

Accepted Solution

by:
bark10 earned 50 total points
ID: 2612072
for netscape use "marginheight="0"" and "marginwidth="0"" along with topmargin and leftmargin in the body tag.  this may not help your problem but if you frequently set the top and left margins for ie it is good practice to use these two also.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Expert Comment

by:ProWebSites
ID: 2773901
  Put this in you body tag:
<BODY topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

   This should work in any browser that happens by your site.

  This has already been answered in this thread, but in code, like above.

Warmest Regards,
Steven Fredette
President ProWebSites.net
Indianapolis, Indiana. USA http://www.prowebsites.net
Site includes: FrontPage help, and links to other FrontPage help sites.
For the rest of this sig. file http://www.prowebsites.net/sig.htm
0
 
LVL 3

Expert Comment

by:bark10
ID: 2773958
Steven

If you admit that these answers have already been given by others, then why resubmit them as yours for points?
0
 

Expert Comment

by:ProWebSites
ID: 2773997
  So I don't receive the points is why. The reason I even answered is it wasn't in code form, and thought the person asking the question might not understand the other folks that answered, but didn't spell it out in coding for both IE and NN.

Warmest Regards,
Steven Fredette
President ProWebSites.net
Indianapolis, Indiana. USA http://www.prowebsites.net
Site includes: FrontPage help, and links to other FrontPage help sites.
For the rest of this sig. file http://www.prowebsites.net/sig.htm
 
0
 
LVL 5

Author Comment

by:snocross
ID: 2776825
Thanks for trying to help but It's only fair I give the points to bark10...
0
 
LVL 5

Author Comment

by:snocross
ID: 2776831
This worked, thank you.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now