Forum Moderators: coopster

Message Too Old, No Replies

Text Alignment Using Php

Can You

         

theriddla1019

11:01 pm on Jan 9, 2004 (gmt 0)

10+ Year Member



Maybe someone could point me in the right direction where i might find some info. The problem is I have two large data fields next to each other. One field will be only a single number the other field will be filled out with a bunch of information. There is a possibility that up to 3 sets of this information will be put into here. How can i keep the two fields next to each other aligned with their respective data? I thought of doing set multiple tables but one set of data might be the whole page or might be one line. If you are as confused as i am over what i just wrote im sorry....hard to explain easy to show :P

ergophobe

6:12 pm on Jan 10, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Well, honestly, I am confused by what you wrote.

If I understand right, what you want to do is handle this with CSS. It isn't really a PHP question at all.

You need a left hand column that holds the first data field and a right hand col that holds any associated data. Each row consists of one cell on the left and however many cells are needed on the right.

Is that close?

theriddla1019

2:01 pm on Jan 13, 2004 (gmt 0)

10+ Year Member



Yes i just need to keep the top line of the right column and the left column aligned because there is possibly more than one field.

ergophobe

5:09 pm on Jan 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



As I say, this isn't really a PHP question. First you need to go to something like the CSS forum and work out the markup to get the layout you want. At that point, generating it dynamically will be very easy and folks over here will give you lots of help if you need it.

Remember, PHP doesn't control layout per se. It processes and creates the HTML and CSS that will control layout. You need to figure out your destination first and then figure out how to get there.

Cheers,

Tom

domokun

5:20 pm on Jan 13, 2004 (gmt 0)

10+ Year Member



not used php much, but you could use the float style

<div style="float: left;">
...
</div>
<div>
...
</div>

ergophobe

9:26 pm on Jan 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



As I say, that is not PHP. This thread should be moved to the CSS forum.