Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 10-08-2006, 04:29 AM Image positioning
Super Talker

Posts: 103
Name: Ewan T.
Location: Toronto
Trades: 0
Hey I am using the code below to position an image at 0, 0 but I have a problem. Its going over my text. What can I do to make it in line with text?

Quote:
<IMG STYLE="position:absolute; TOP:45px; LEFT:180px; WIDTH:100px; HEIGHT:100px" SRC="image.gif">
Thank you.

Last edited by Ewan; 10-08-2006 at 04:30 AM..
Ewan is offline
Reply With Quote
View Public Profile Visit Ewan's homepage!
 
 
Register now for full access!
Old 10-08-2006, 05:08 AM Re: Image positioning
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
don't use position:absolute. set it as the background for a sized div
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-08-2006, 04:53 PM Re: Image positioning
Super Talker

Posts: 103
Name: Ewan T.
Location: Toronto
Trades: 0
I do not want it as a background. I already have a background. I just used that code to make the image start at 0 TOP, 0 LEFT on the page. I need it to be inline with text.
Ewan is offline
Reply With Quote
View Public Profile Visit Ewan's homepage!
 
Old 10-08-2006, 05:24 PM Re: Image positioning
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Well it won't be at 0,0 if you set it to top:45px and left:180px

define "inline with text", it's a bit of an ambiguous statement. I know what I would mean by that but you may mean something different.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-08-2006, 05:34 PM Re: Image positioning
Super Talker

Posts: 103
Name: Ewan T.
Location: Toronto
Trades: 0
By inline with text I mean I do not want my text to go behind the image. I want the text to begin right under the image. Do you know what I mean now?

Quote:
45px and left:180px
I changed those ^ to 0 and 0 I was just showing everyone the code I was using which I copied from another site.

Last edited by Ewan; 10-08-2006 at 05:36 PM..
Ewan is offline
Reply With Quote
View Public Profile Visit Ewan's homepage!
 
Old 10-08-2006, 05:50 PM Re: Image positioning
beta's Avatar
Extreme Talker

Posts: 169
Trades: 0
hehe, its a good to have the right data, what you did was like going to the vetinary and telling him your dog had a battery stuck in its ear and needed help, then the vet looks at the dog and says 'This dogs fine, theres no problem' then you say 'Oh yeah, this is some dog i picked up on the way here, mines still at home with a battery in its ear'.


Unless you have some other elements set, if you place and <img> tag it should automatically default to the top left of whatever box/window its in anyways. check your text alignment and take out any padding if you need to make it closer.

If you could post a link to the page that would be even better.
beta is offline
Reply With Quote
View Public Profile
 
Old 10-08-2006, 08:42 PM Re: Image positioning
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Yes, do NOT use position:absolute as Chris told you. Absolute positioning takes the object completely out of the document flow, it is then no longer affected in any way by any other element that may become before or after it.

If you want the image to be 'inline' with your text, either use the normal document flow (NO positioning at all), or float it left.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Image positioning
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19468 seconds with 12 queries