Jump to content

Image location


Recommended Posts

Well,this may be little stupid question,but I learned html in school,and teacher never say how to do this,and I can't find answer in w3schools.So my question are,how put images on diffrent locations in webpage?Example these two smileys: :) -----------------------DISTANCE------------------------- :) So how?I heard something that x and y coordinates,what have something to do with this,but I don't know...Thanks.

Link to post
Share on other sites

there are so many ways to do this - but primarily there is old school and new school.the old school way would be to use tables, the new school using CSS. In between there is a crazy mix of code anyone could create to reproduce the look. what tends to drive any chosen method of coding, is what happens next on the page.Do you want to see code?

Link to post
Share on other sites
there are so many ways to do this - but primarily there is old school and new school.the old school way would be to use tables, the new school using CSS.  In between there is a crazy mix of code anyone could create to reproduce the look.  what tends to drive any chosen method of coding, is what happens next on the page.Do you want to see code?

no i do not see the code.
Link to post
Share on other sites

I would be interested in the newschool method. I am using the oldschool but the CSS method sounds more efficcent. could you explain the codes in use?

Link to post
Share on other sites

You can add margin or padding to do this probablyHere's an example

<html><head><style type='text/css'>.img1 {	padding-right: 100px;}.img2 {	padding-left: 100px;}</style></head><body><p>	<img src='http://img132.imageshack.us/img132/9268/smilie9ex.gif' class='img1' alt='' />	<img src='http://img132.imageshack.us/img132/9268/smilie9ex.gif' class='img2' alt='' /></p></body></html>

I tested this and it works

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...