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
Position Absolute in CCS
Old 02-01-2005, 05:35 AM Position Absolute in CCS
Novice Talker

Posts: 5
Trades: 0
Wotcha, folkls.

I've created a body {position:absolute} in my CSS at the beginning of my web page, but it doesn't seem to carry through to the actual page itself.

If I want to correctly position a picture, I have to then use <img src="piccie" style="position:absolute; left:0px; top:80px">. Without the Position:absolute it places the image a few pixels below where I want it to be.

Any ideas why?

Ta,

Jack.
JollyJack is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-01-2005, 06:35 AM
SilatPupil's Avatar
Ultra Talker

Posts: 260
Location: Northern Ireland
Trades: 0
Why dont you put your css in an external file.....much easier:

#splash{
position:absolute;
left:0;
top:80;
width:30;
}


then in your html file:

<div id="splash">
<img src="piccie.gif">
</div>
__________________
"All vague notions must fall before a pupil can call himself a master." - Bruce Lee


Please login or register to view this content. Registration is FREE
Ultimate Tattoo and Piercing Site
SilatPupil is offline
Reply With Quote
View Public Profile Visit SilatPupil's homepage!
 
Old 02-03-2005, 04:44 PM
troatie's Avatar
Skilled Talker

Posts: 64
Trades: 0
instead of using position:abosolute with the body

body {position:absolute;}

use it with a specific class, or id

Code:
img.classname{position:absolute;left:0px;top:80px;}
or
Code:
img#idname{position:absolute;left:0px;top:80ps;}
then use

HTML Code:
<img src="piccie" class="classname">
 or 
<img src="piccie" id="idname">, respecitively
__________________

Please login or register to view this content. Registration is FREE
troatie is offline
Reply With Quote
View Public Profile Visit troatie's homepage!
 
Reply     « Reply to Position Absolute in CCS
 

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.68263 seconds with 12 queries