Computer King
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Computer King

If your pc has problems this site has your answer.
 
HomePortalLatest imagesSearchRegisterLog in

 

 Placing Images Anywhere.

Go down 
AuthorMessage
Texas325
Moderator
 Moderator
Texas325


Number of posts : 53
Registration date : 2008-08-08

Placing Images Anywhere. Empty
PostSubject: Placing Images Anywhere.   Placing Images Anywhere. EmptySun Aug 24, 2008 7:27 pm

If you are planning on creating a web site with mostly HTML, then you might want to look at this.

<style>
.content {position:absolute; left:50%; top:XXXpx;
margin-left:XXXpx; width:XXXpx; text-align:center;
border:0px black solid; background-color:transparent;
padding:5px;}
<img src= URL TO IMAGE>
</div

I know you probably don't understand that. So, I'll explain.

The First thing you need to know:

<img src= URL TO IMAGE> <<<You need a valid image URL.
</div


The second thing you need to know:

.content {position:absolute; left:50%; top:XXXpx;
margin-left:XXXpx; width:XXXpx; text-align:center;

As you may have noticed the X's need to be changed. That is the only thing that needs to be messed with.

For the top:XXXpx; you must place a higher number to move it further down and a lower number to set it higher. If you set it to 0 it will be all the way at the top.

For the width:XXXpx; of course, a higher number makes the image wider and a lower number makes an image thinner horizontally. If you set it to 0 the image will disappear.

For the margin left:XXXpx; you must place a higher number to move it further right and a lower number to set it left. If you set it to 0 then it will be place all the way left.

________________________________________

That's about it for image placement. If you have any problems with it please let me know.
Back to top Go down
 
Placing Images Anywhere.
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Computer King :: Internet & Networking :: Web Site Development-
Jump to: