Solved

Displaying image on the top left without border

Posted on 2000-03-10
10
174 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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
 

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
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 insert an Iframe into 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 : Open Page or Post…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…

774 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