Jump to content

positioning


runnerjp

Recommended Posts

hey hey guys

ok iv got a table and i want to align it in the page but its not to left or right or center its around these pixels where i want it [quote]left:186px;top:155px[/quote]
how can i make the table apear in this position
table is shown below..any help any one??

[code]<table width="627" height="44" border="0" align="center" cellpadding="" cellspacing="0" bordercolor="#111111" id="AutoNumber1">
  <tr>
    <div style="left:186px;top:155px">
    <td width="91" height="44" background="http://www.runnerselite.com/image/shout1.bmp" align="center"><p align="center">
        <BODY LINK="#ffffff">
        <b><font color="#FFFFFF"> Shout-Outs</font></b><br>
        <a href="javascript:TagBox=void(window.open('http://www.runnerselite.com/tag/tag.php','TagBox','scrollbars=1,width=400,height=600,top=60,left=400'))"> Post a shout</a></td>
    <td width="536" height="44" background="http://www.runnerselite.com/image/shoutbox2.bmp">&nbsp;
      <?php include("tag/maq.php")?>    </td>
  </tr>
</table>[/code]

Link to comment
Share on other sites

It's hard to say without knowing exactly how your page is set up, but there are a couple things you could try:

1) Margins - add margins to your table with the following style:
[code]
margin: 155px 0 0 186px;
[/code]

2) Absolute positioning - add the following style to your table:
[code]
position: absolute;
top: 155px;
left: 186px;
[/code]
Link to comment
Share on other sites

ok i can help you out even more lol ok i have a template set out and there is an area on my template where i want my image and php script to aprear [url=http://www.runnerselite.com]www.runnerselite.com[/url] if you go to the url you will see my background then you will see the table im trying to position. i need to put it into the area where its just blue. this is above the white space where all my website stuff will go.

hope this helps

also if i am to add [code]position: absolute;
top: 155px;
left: 186px;[/code]

to

[code]<table width="627" height="44" border="0" align="center" cellpadding="" cellspacing="0" bordercolor="#111111" id="AutoNumber1">
  <tr>
    <div style="left:186px;top:155px">
    <td width="91" height="44" background="http://www.runnerselite.com/image/shout1.bmp" align="center"><p align="center">
        <BODY LINK="#ffffff">
        <b><font color="#FFFFFF"> Shout-Outs</font></b><br>
        <a href="javascript:TagBox=void(window.open('http://www.runnerselite.com/tag/tag.php','TagBox','scrollbars=1,width=400,height=600,top=60,left=400'))"> Post a shout</a></td>
    <td width="536" height="44" background="http://www.runnerselite.com/image/shoutbox2.bmp">&nbsp;
      <?php include("tag/maq.php")?>    </td>
  </tr>
</table>[/code]

where would i do this>???

in past i have used wysiwyg editors but as i have been told they use alot of junk html in it and slow page loading down ect im doing it myself and comeing across problems like this lol
Link to comment
Share on other sites

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.