Positioning text on the screen exactly with css

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Mythic Fr0st
Forum Contributor
Posts: 137
Joined: Sat Dec 02, 2006 3:23 am
Contact:

Positioning text on the screen exactly with css

Post 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?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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?
Mythic Fr0st
Forum Contributor
Posts: 137
Joined: Sat Dec 02, 2006 3:23 am
Contact:

hmm

Post by Mythic Fr0st »

Just position content on the page

specificly
not like 'left right center etc..' more like 385, 591 for exact coordinates
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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)
Mythic Fr0st
Forum Contributor
Posts: 137
Joined: Sat Dec 02, 2006 3:23 am
Contact:

hmm

Post 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
Post Reply