Page 1 of 1

Positioning text on the screen exactly with css

Posted: Sat Dec 23, 2006 12:50 am
by Mythic Fr0st
Ok, im trying to position text on the screen exactly where I want

I have about 20 different things placed on the screen
using <div style='position: absolute; top: x; left: y;'>

and i've been told to change that by a friend...

So im looking for a way to do the same thing purely in css

however, my text is not, and CAN NOT be grouped all in one, so using something like

p {
top:30px
left:25px
}
or w/e it is, wont work

Can anyone tell me what to use o_O?

Posted: Sat Dec 23, 2006 5:21 am
by Luke
umm... this is pure css man

Code: Select all

<div style='position: absolute; top: x; left: y;'> 
That's inline css, but it's still css.

absolute positioning is more often than not, a bad idea... in my opinion. I'd consider setting up something a little less 1998ish. What exactly are you trying to accomplish? Maybe with more details I can better assist you?

hmm

Posted: Sat Dec 23, 2006 5:39 am
by Mythic Fr0st
Just position content on the page

specificly
not like 'left right center etc..' more like 385, 591 for exact coordinates

Posted: Sat Dec 23, 2006 2:43 pm
by Luke
I understand that... I'm just wondering what your layout is like. I'm wondering if maybe you showed it to me if I could come up with a better solution than absolute positioning (an I bet I could)

hmm

Posted: Sat Dec 23, 2006 4:04 pm
by Mythic Fr0st
let me try and draw it o_O

nvm, bad idea lol

nvm explaining bad idea (removes spaces LOL)

if you had msn/aim/icq/yahoo I could send you a screen shot of it?
Please lol