Floating issue

Discussion in 'HTML' started by mizzchief@gmail.com, Jan 16, 2008.

  1. Guest

    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.
     
    , Jan 16, 2008
    #1
    1. Advertising

  2. Neredbojias Guest

    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.
     
    Neredbojias, Jan 17, 2008
    #2
    1. Advertising

  3. dorayme Guest

    In article
    <
    >,

    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
     
    dorayme, Jan 17, 2008
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ITrishGuru
    Replies:
    15
    Views:
    639
    Andrew Thompson
    Oct 3, 2007
  2. Srini
    Replies:
    11
    Views:
    988
    Arne Vajhøj
    Jun 1, 2008
  3. teeshift
    Replies:
    2
    Views:
    283
    Chris Pearl
    Dec 1, 2006
  4. kevin0051

    floating point issue?

    kevin0051, Mar 3, 2010, in forum: Perl Misc
    Replies:
    3
    Views:
    98
    Jürgen Exner
    Mar 3, 2010
  5. kevin0051

    floating point issue?

    kevin0051, Mar 3, 2010, in forum: Perl Misc
    Replies:
    10
    Views:
    159
    Keith Thompson
    Mar 6, 2010
Loading...

Share This Page