Jump to content

Image location


Fire Dragon

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

There are many many ways to do it.I only showed one of the more easy (or lazy) ways of doing it :)The beauty of CSS is that there is no one "way" to do something. There's so many options to accomplish the same thing :)

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...