Aligning a picture

Posted on 1998-09-01
Last Modified: 2010-04-09
I have an html page with only one image. I want that there will be not space between the top and left of the page with the image. How can I do it ? ? ?
Question by:juanryahoo
  • 2

Accepted Solution

JerreBatson earned 100 total points
ID: 1837272
Add this style code to the heading of your page ...
<STYLE> <!--
            margin-top: 0;
            margin-left: 0;
            padding: 0;
--> </STYLE>

Expert Comment

ID: 1837273
The above example would not work for me in Netscape 4.05 for some reason, but the following does work in IE 4 AND Netscape 4.x:
<BODY marginheight=0 marginwidth=0 topmargin=0 leftmargin=0>


Author Comment

ID: 1837274
Perfect ! ! !

Expert Comment

ID: 1837275
Did you use my solution or JerreBatson's solution?  The reason I ask is because you have graded his answer, so he gets the points.  If you had used my solution, you should have rejected the answer, and asked me to answer it so you could grade me.
I just wanted to make sure you understood how the grading worked.

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

813 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

15 Experts available now in Live!

Get 1:1 Help Now