MakeImage_Behave

liunx

Guest
ok, here's a stupid newbie question! <br />
<br />
When you put an image on a page with nothing in it it's down a bit and to the right, but I want it up all the way to the left hand corner in the top, how do I make images go "EXACTLY" where I want them? :rolleyes: <br />
<br />
example: HTMLPAGELAME_1<br />
_______________________________ <-topof_screen<br />
<br />
--imageis_here<br />
<br />
_______________________________ <-bottomof_screen<br />
<br />
whatI_want: HTMLPAGENOTSOLAME_1<br />
<br />
_______________________________ <-topof_screen<br />
imageis_here_rightnexttotheleftandtopofscreen<br />
<br />
_______________________________ <-bottomof_screen<!--content-->welcome to the forums :)<br />
<br />
you need to remove the pages padding, put this inbetween your head tags<br />
<br />
<br />
<br />
<style type="text/css"><br />
body {padding:0px; margin:0px;}<br />
</style><br />
<br />
<br />
<!-- m --><a class="postlink" href="http://www.w3schools.com">http://www.w3schools.com</a><!-- m --> will help you along :)<!--content-->Originally posted by Ja_DaBeerGod <br />
ok, here's a stupid newbie question! <br />
<br />
When you put an image on a page with nothing in it it's down a bit and to the right, but I want it up all the way to the left hand corner in the top, how do I make images go "EXACTLY" where I want them? :rolleyes: <br />
<br />
example: HTMLPAGELAME_1<br />
_______________________________ <-topof_screen<br />
<br />
--imageis_here<br />
<br />
_______________________________ <-bottomof_screen<br />
<br />
whatI_want: HTMLPAGENOTSOLAME_1<br />
<br />
_______________________________ <-topof_screen<br />
imageis_here_rightnexttotheleftandtopofscreen<br />
<br />
_______________________________ <-bottomof_screen <br />
<br />
i do not recommend this, but, you can always use <br />
<div style="position:absolute;top:crap;left:crap"><br />
not a good way to do it, but it works<!--content-->greg, what is wrong with using the pages normal flow to position something??hmmmmm<br />
and what is wrong with absolute positioning?<br />
<br />
Ja_dabeer will soon learn how to position things on other parts of the page through tables or divs, do you think he knows what should replace the word 'crap' in your example?<br />
maybe he does, but i guess he doesn't!<br />
<br />
Ja_dabeer, you can position something in a fixed manner (it will not chnage position with different size pages) using position absolute and divs, in gregs example you would replace 'crap' with a quantity of pixels, eg:<br />
<br />
<div style="position:absolute;top:30px;left:30px;">content</div><br />
<br />
this will position your div 30 pixels away from the top and 30 from the left.<br />
<br />
<br />
greg, go and stand in the corner!!:P<!--content-->
 
Back
Top