html images

Reply

Join Date: Feb 2006
Posts: 26
Reputation: s0312001 is an unknown quantity at this point 
Solved Threads: 0
s0312001 s0312001 is offline Offline
Light Poster

html images

 
0
  #1
Mar 15th, 2006
Guys I am trying to do the following in html
can you please help :cry:
I am having problems positioning images as follows




http://img230.imageshack.us/img230/5721/image5qg.jpg
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 18
Reputation: sbmarsh is an unknown quantity at this point 
Solved Threads: 0
sbmarsh's Avatar
sbmarsh sbmarsh is offline Offline
Newbie Poster

Re: html images

 
0
  #2
Mar 15th, 2006
theres a couple of ways to do it.

the easy way is to just use a table, or else you could do it via css.
img.whateveruwanttocallit
{
position:absolute;
left:0px;
top:0px;
}


<img class="whateveruwanttocallit" src="whatever.jpg" width="100" height="180" />
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 26
Reputation: s0312001 is an unknown quantity at this point 
Solved Threads: 0
s0312001 s0312001 is offline Offline
Light Poster

Re: html images

 
0
  #3
Mar 15th, 2006
Thanks man i will try it and let you know if it works
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 26
Reputation: s0312001 is an unknown quantity at this point 
Solved Threads: 0
s0312001 s0312001 is offline Offline
Light Poster

Re: html images

 
0
  #4
Mar 15th, 2006
what is wrong with this??

<html>
<head>
<title>images positioning</title>

<body>
<div.container { position:relative; /* etc. */ }
img.positioned { position:absolute; height:63px; width:122px; }
img#topleft { top:0; left:3; }
img#topright { top:0; right:6; }
img#bottomleft { bottom:0; left:7; }
img#bottomright { bottom:0; right:0; }>

<div class="container">
<img src="pic1.jpg" class="positioned" id="topleft">
<img src="pic2.jpg" class="positioned" id="topright">
<img src="pic3.jpg" class="positioned" id="bottomleft">
<img src="pic4.jpg" class="positioned" id="bottomright">
<!-- etc. -->
</div>

</body>
</html>
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 18
Reputation: sbmarsh is an unknown quantity at this point 
Solved Threads: 0
sbmarsh's Avatar
sbmarsh sbmarsh is offline Offline
Newbie Poster

Re: html images

 
0
  #5
Mar 15th, 2006
place your css in your head part
<style>
div.container { position:relative; /* etc. */ }
img.positioned { position:absolute; height:63px; width:122px; }
img#topleft { top:0; left:3; }
img#topright { top:0; right:6; }
img#bottomleft { bottom:0; left:7; }
img#bottomright { bottom:0; right:0; }
</style>

</head>

take away the <> parts in the css u done.

then it should work fine
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 26
Reputation: s0312001 is an unknown quantity at this point 
Solved Threads: 0
s0312001 s0312001 is offline Offline
Light Poster

Re: html images

 
0
  #6
Mar 15th, 2006
Thanks a million it works fine, now i will try to figure the right numbers

Thanks again
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC