Solved

Aligning a picture

Posted on 1998-09-01
4
147 Views
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 ? ? ?
Thanks..........
0
Comment
Question by:juanryahoo
  • 2
4 Comments
 

Accepted Solution

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

Expert Comment

by:jbirk
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>

-Josh
0
 

Author Comment

by:juanryahoo
ID: 1837274
Perfect ! ! !
Thanks...
0
 
LVL 8

Expert Comment

by:jbirk
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.
-Josh
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

708 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

12 Experts available now in Live!

Get 1:1 Help Now