It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

text moves in td that was correct before

text moves in td that was correct before

Postby jeaddy on Sat Jan 26, 2008 9:10 pm

Hello everyone,

I have a problem position my text where I want to in table data. If I position it right and where I wanted in my browser, but if I go to so other browser like a friend's computer etc, the text moved and wasn't where I wanted.

So could someone explained to me why that is and how I can get this to fix?

Code: Select all
<table border=1 width="100%">
<td valign="top">

</td>
</table>


if I don't put valign then the text goes to the middle.

Thanks [/code]
jeaddy
 
Posts: 24
Joined: Thu Dec 20, 2007 12:35 am

Postby dflynn on Sat Jan 26, 2008 9:58 pm

You should work on asking questions first because yours really doesn't make any sense...

From what I gathered out of your ramblings is that you want to align text in a table.

To do this use somethin like:

<td align="center"> Centered text </td

Where center is replace it with "left" or "right " if you so wish.
If you are trying to align text back and forth within a single column use <div> tags:

<td><div align="center"> Centered text</div>
<div align="left"> Left aligned text on the next line</div></td>


Good Luck
User avatar
dflynn
500+ Club
 
Posts: 860
Joined: Wed Oct 03, 2007 9:06 pm
Location: Guelph, Canada

Postby jeaddy on Sat Jan 26, 2008 10:24 pm

Thanks for your response. Ok the thing is that I created this forms and then I have text in the form. It looks good as I wanted in my browser, perfectly align, but then when I go to work and then use their browser to access the page I created the text in the form is not align.

here is the code example:

<center>
<td valign="top">
text
</td>
</center>

in my browser it is center, but my work browser the text moves to the right. I think it has to do with td valign="top"

so what I do to change it is that I remove this td valign="top" in <td> and now the text is in the center both side ways and top/bottom ways(if you know what I mean). So how can I move my text to the top and middle without altering in another browser?

Thanks
jeaddy
 
Posts: 24
Joined: Thu Dec 20, 2007 12:35 am

Postby dflynn on Sun Jan 27, 2008 2:12 pm

move the <center> tag into the <td> tag.

<td valign="top" align="center"> </td>
User avatar
dflynn
500+ Club
 
Posts: 860
Joined: Wed Oct 03, 2007 9:06 pm
Location: Guelph, Canada


Who is online

Users browsing this forum: No registered users and 10 guests