Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Floating issue

Reply
Thread Tools

Floating issue

 
 
mizzchief@gmail.com
Guest
Posts: n/a
 
      01-16-2008
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.
 
Reply With Quote
 
 
 
 
Neredbojias
Guest
Posts: n/a
 
      01-17-2008
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.
 
Reply With Quote
 
 
 
 
dorayme
Guest
Posts: n/a
 
      01-17-2008
In article
<(E-Mail Removed)
>,

http://www.velocityreviews.com/forums/(E-Mail Removed) 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
floating point issue? kevin0051 Perl Misc 10 03-06-2010 02:39 AM
floating point issue? kevin0051 Perl Misc 3 03-03-2010 04:02 AM
Convert from text string "Hello" to floating-point number issue ITrishGuru Java 15 10-03-2007 12:59 PM
floating point problem... floating indeed :( teeshift Ruby 2 12-01-2006 01:16 AM
DVD Verdict reviews: A STORY OF FLOATING WEEDS / FLOATING WEEDS: CRITERION COLLECTION and more! DVD Verdict DVD Video 0 04-20-2004 09:04 AM



Advertisments