This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > April 2007 > Aligning content in table cell to top of cell





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Aligning content in table cell to top of cell
JJA

2007-04-26, 6:19 pm

Please advise on how I can get this content (from "Choose a Map" down
to the "Show Map" button) to be positioned at the top of this table
cell.

Please see:

http://www.mortgagedataweb.com/devm...tcustommaps.asp

I know I should not be using HTML tables for presentation structure
but this is legacy stuff I need to modify quickly.

John Hosking

2007-04-26, 10:17 pm

JJA wrote:
> Please advise on how I can get this content (from "Choose a Map" down
> to the "Show Map" button) to be positioned at the top of this table
> cell.
>
> http://www.mortgagedataweb.com/devm...tcustommaps.asp
>
> I know I should not be using HTML tables for presentation structure
> but this is legacy stuff I need to modify quickly.


1. Ick
2. That much JavaScript should be moved to external .js files.
3. <td id="mapSelection" width="20%" valign="top">
^^^^^^^^^^^^^--add this
4. Ick.

--
John
dorayme

2007-04-27, 3:19 am

In article
<1177610109.528994.204230@u32g2000prd.googlegroups.com>,
JJA <johnadams41@XXXXXXXXXX> wrote:

> Please advise on how I can get this content (from "Choose a Map" down
> to the "Show Map" button) to be positioned at the top of this table
> cell.
>
> Please see:
>
> http://www.mortgagedataweb.com/devm...tcustommaps.asp
>
> I know I should not be using HTML tables for presentation structure
> but this is legacy stuff I need to modify quickly.


You could try:

<td id="mapSelection" width="20%" valign="top">

--
dorayme
dorayme

2007-04-27, 3:19 am

In article <46313fbf$1_6@news.bluewin.ch>,
John Hosking <John@DELETE.Hosking.name.INVALID> wrote:

> JJA wrote:
[color=darkred]
> 3. <td id="mapSelection" width="20%" valign="top">
> ^^^^^^^^^^^^^--add this


John, I noticed too late you had already answered this!

--
dorayme
John Hosking

2007-04-27, 6:16 am

dorayme wrote:
> In article <46313fbf$1_6@news.bluewin.ch>, John Hosking wrote:
>
>
>
> John, I noticed too late you had already answered this!


No worries, Ben C provided an even better answer (with actual CSS) over
in c.i.w.a.h even before I posted mine here.

--
John
dorayme

2007-04-27, 6:16 am

In article <4631a463$1_6@news.bluewin.ch>,
John Hosking <John@DELETE.Hosking.name.INVALID> wrote:

> dorayme wrote:
>
> No worries, Ben C provided an even better answer (with actual CSS) over
> in c.i.w.a.h even before I posted mine here.


Have not yet seen it, but I am not surprised. We are the quick
and dirty handybeings, he is the tradesman. <g>

--
dorayme
Jonathan N. Little

2007-04-27, 6:17 pm

dorayme wrote:

> You could try:
>
> <td id="mapSelection" width="20%" valign="top">
>

On in stylesheet, (this is ciwas right?),

#mapSelection { vertical-align: top; }

or

TD { vertical-align: top; }

if you want change the default and have all of your tables cell aligned
at the top.


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews