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!
I've discovered css but have a question
Post new topic   Reply to topic    HTML Help Forum Index -> General HTML
View previous topic :: View next topic  
Author Message
Rischen



Joined: 29 Oct 2004
Posts: 6

PostPosted: Mon Nov 01, 2004 7:03 am     I've discovered css but have a question Reply with quote

Okay, yay! I've discovered css for image placement. (Many of you will have seen me struggling with image placement Smile )

One small thing though--

How do you place multiple images using css?

A little stylesheet like this allows you to place anything in a <P> tag to its co-ordinates

<STYLE TYPE="text/css">
<!--
P { position: absolute; left: 78px; Top: 51px }
-->
</STYLE>

but say you've got a little nest of gif hrefs that you want to place absolutely and one under the other, what's the css for that. You know, halfway down the page you've got a nest of links to sections in your website like this--

|picturehreflinkpicture|


|picturehreflinkpicture|


|picturehreflinkpicture|


|picturehreflinkpicture|


|picturehreflinkpicture|

Is there a way to make the co-ordinates in the css blank and then point to it in the <IMG SRC> so that you can have one image at 20px; 100px, one at 20px; 110, one at 20px; 120 and so on? Or is there another css way?

I'd appreciate your time,

Rischen
eXcentra



Joined: 12 May 2004
Posts: 91

PostPosted: Mon Nov 01, 2004 3:56 pm     Reply with quote

Try using margin-top and margin-left properties.
Code:
p.img {
margin-top: x;
margin-left: x;

<p class="img"><img src="img.gif" /></p>

I'm not exactly sure if this is what you want. Try giving it a shot, though and tell me if it is or not.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> General HTML 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