Floating issue

M

mizzchief

I have 3 sections of text that need to be aligned one section to the
left, one section in the center, and one section to the right- all on
the same row, like this:
_________________________________________
|
|
| left text center text right text |
|________________________________________|
| | | | | | | |
| |
| | | | | | | |
| |


what I thought would work but didn't:

<table cellpadding="0" cellspacing="0" width="100%"
style="border:solid; border-width:2pt; border-color:#000000;
border-solid:#000000;">

<div style="float:left;">
<tr>
<td colspan="15" style="font-size:10.5pt;">
<b><p>left text</p></b>
</td>
</tr>
</div>

<div style="float:center;">
<tr>
<td colspan="15" style="font-size:10.5pt;">
<b><p>center text</p></b>
</td>
</tr>
</div>

<div style="float:right;">
<tr>
<td colspan="15" style="font-size:10.5pt;">
<b><p>right text</p></b>
</td>
</tr>
</div>

also, putting the divs around the "td"'s instead of the "tr"'s also
didn't work.
 
N

Neredbojias

Well bust mah britches and call me cheeky, on Wed, 16 Jan 2008 23:28:06
GMT scribed:
I have 3 sections of text that need to be aligned one section to the
left, one section in the center, and one section to the right- all on
the same row, like this:
_________________________________________
|
|
| left text center text right text |
|________________________________________|
| | | | | | | |
| |
| | | | | | | |
| |


what I thought would work but didn't:

<table cellpadding="0" cellspacing="0" width="100%"
style="border:solid; border-width:2pt; border-color:#000000;
border-solid:#000000;">

<div style="float:left;">
<tr>
<td colspan="15" style="font-size:10.5pt;">
<b><p>left text</p></b>
</td>
</tr>
</div>

<div style="float:center;">
<tr>
<td colspan="15" style="font-size:10.5pt;">
<b><p>center text</p></b>
</td>
</tr>
</div>

<div style="float:right;">
<tr>
<td colspan="15" style="font-size:10.5pt;">
<b><p>right text</p></b>
</td>
</tr>
</div>

also, putting the divs around the "td"'s instead of the "tr"'s also
didn't work.

Can't do either. You better read up a bit on html because you don't seem
to know what you're doing.
 
D

dorayme

<[email protected]
I have 3 sections of text that need to be aligned one section to the
left, one section in the center, and one section to the right- all on
the same row, like this:
_________________________________________
|
|
| left text center text right text |
|________________________________________|
| | | | | | | |
| |
| | | | | | | |
| |


what I thought would work but didn't:

<table cellpadding="0" cellspacing="0" width="100%"
style="border:solid; border-width:2pt; border-color:#000000;
border-solid:#000000;">

<div style="float:left;">
<tr>
<td

You can't put a div in a table. See
<http://htmldog.com/guides/htmlbeginner/tables/>

If you have three blocks of text that you want side by side why
not look at something like this:

<http://netweaver.com.au/alt/threePs.html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top