runnerjp Posted December 1, 2006 Share Posted December 1, 2006 hey hey guysok 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 positiontable 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"> <?php include("tag/maq.php")?> </td> </tr></table>[/code] Quote Link to comment Share on other sites More sharing options...
obsidian Posted December 1, 2006 Share Posted December 1, 2006 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] Quote Link to comment Share on other sites More sharing options...
runnerjp Posted December 1, 2006 Author Share Posted December 1, 2006 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 helpsalso 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"> <?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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.