Jump to content

Trying to position things on the screen ++ big problem


Recommended Posts

Ok, I have big problem, I have a 1000 line code, now, its a game, one of my buttons 'attack' on click messes the rest up, it makes almost all my buttons have big gaps between them (about the size of the actual button), now if I have other text or anything i've included from other files, it does this also

I was talking to my php friend, he said I shouldnt be using <div style='position: absolute; top: x; left: y;'>

he was sayin something else but it didnt make sense:P

So im trying to use css to position stuff, (tables/text and so on)

im doing this over one of my tables right now...

<style type='text/css'>p1{position:absolute; left:100px; top:100px;}</style> then

where my table and other php stuff is

I do

<p1>

and </p> at the end of it

Nothing works, it just defaults to topleft of screen

I need a way to position lots of text/tables and so on, anyway will do that will work
Can someone help me
absolute positioning supoort is not too hot in ie 6 and less. try to avoid it for now.

without deeing your page - what it shoudl look like and where it fails - that is all the advice I can give.
This is my idea ...

Give ur table's a selector like


table.tableonleft { an ur positioning things in here  }


and the same with <p> or br <h1> ... ect  for the text


eg

p {    positioning in here }



u can assign an class to it as well .. just add it to the p like p.whateverhere {}


... any how if thats not clear enough just say

an dont for get div's have built in br so it will space things out or away from it

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.