Floating issue
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.
Re: Floating issue
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.
--
Neredbojias
Riches are their own reward.
Re: Floating issue
In article
<148643b3-a893-48a9-9e7d-892f56d380ca [at] d4g2000prg.googlegroups.com
>,
mizzchief [at] gmail.com wrote:
> 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>
--
dorayme