HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Placing these Icons
Post new topic   Reply to topic    HTML Help Forum Index -> MySpace
View previous topic :: View next topic  
Author Message
NickiP



Joined: 21 Feb 2008
Posts: 2

PostPosted: Sun Mar 09, 2008 10:22 am     Placing these Icons Reply with quote

I have a bunch of thumbnails and icons that i want to put on my myspace... problem is, is that they go one on top of the other.... i want them to sit side by side... like in a 3 by 3 box or something... i cant seem to make the code work.. or find one that just may help me... THANK YOU in advance
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1408
Location: Biloxi, MS

PostPosted: Thu Jul 31, 2008 4:20 pm     Reply with quote

Try this:

<div style="width: XXpx; margin: 1% auto;">
<img style="width: XXpx; height: YYpx; border: 0;" src="URL_to_Image1" title="Mouseover Description" alt="Text Description"><img style="width: XXpx; height: YYpx; border: 0;" src="URL_to_Image2" title="Mouseover Description" alt="Text Description"><img style="width: XXpx; height: YYpx; border: 0;" src="URL_to_Image3" title="Mouseover Description" alt="Text Description"> </div>

Set the width: XXpx to the width that all three images will need. Div height should adjust automatically, but you can add height: YYpx; to the div styling and set it to the highest image.

The margin: 1% auto; sets the div container with a top/bottom margin of 1% and centers it in whatever container the div itself is.

If you still have problems with images not side by side, make sure div width is wide enough for all images and/or set inside all the image tags' styling:

float: left;
HTMLsucker



Joined: 17 Aug 2008
Posts: 3

PostPosted: Sun Aug 17, 2008 6:47 am     Reply with quote

I need help with that too. Could you make that easier for a beginner please? Embarassed
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1408
Location: Biloxi, MS

PostPosted: Mon Aug 18, 2008 1:23 pm     Reply with quote

@HTMLsucker:

Not sure about easier as I have no idea what you don't understand about the code given.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> MySpace All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial