/    Sign up×
Community /Pin to ProfileBookmark

align on top

Hi all,
I want my text be align on top how to do it?

[CODE]<tr><td colspan=”4″>&nbsp;&nbsp;</td> <td colspan=”2″ alight=”right”>
<table ><tr><td width=”30px”> ¤£¾A¥Î</td>
<td width=”10″>&nbsp;&nbsp;&nbsp;</td>
<td width=”20px”>»á¾A¥Î,©Î</td>
<td width=”20px”>¶¡¤¤¾A¥Î</td>
<td width=”10px” >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td width=”20px” >«Ü¾A¥Î,©Î</td>
<td width=”20px”>±`±`¾A¥Î</td>
<td width=”10px”>&nbsp;&nbsp;&nbsp;</td>
<td width=”20px”>³Ì¾A¥Î,©Î</td>
<td width=”20px”>±`±`¾A¥Î</td>
</tr></table> </td>
</tr>[/CODE]

to post a comment
CSS

10 Comments(s)

Copy linkTweet thisAlerts:
@aravelliMar 05.2008 — <style type="text/css"

td {

width:50px;

height:50px;

border:1px solid #000;

vertical-align:top;

}

</style>

add this into your <head> </head>


find the difference

i hope this may work for you
Copy linkTweet thisAlerts:
@WebJoelMar 05.2008 — width="20" and height="10" is a bit ...small (20 being the thickness of a scrollbar, 10 being half that...) but this:

<td colspan="2" [B]alight[/B]="right">[/quote]
is not correct.

you mean "align"
Copy linkTweet thisAlerts:
@HJCauthorMar 06.2008 — hi , thsk you for the reply, but not work,, they still align on center?
Copy linkTweet thisAlerts:
@stalebrewMar 06.2008 — What are you trying to align on what? like align the text to the right of each TD or what?
Copy linkTweet thisAlerts:
@HJCauthorMar 10.2008 — align on td the first td only have three word , other 's have four, so the first Td is lower then other.
Copy linkTweet thisAlerts:
@WebJoelMar 10.2008 — Noticed this:
<td width="20[B]px[/B]">&#187;&#225;&#190;A&#165;&#206;,&#169;&#206;</td>

<td width="20[B]px[/B]">&#182;&#161;&#164;&#164;&#190;A&#165;&#206;</td>

<td width="10[B]px[/B]" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>

<td width="20[B]px[/B]" >&#171;&#220;&#190;A&#165;&#206;,&#169;&#206;</td>

<td width="20[B]px[/B]">&#177;&amp;#177;&#190;A&#165;&#206;</td>

<td width="10[B]px[/B]">&nbsp;&nbsp;&nbsp;</td>

<td width="20[B]px[/B]">&#179;&#204;&#190;A&#165;&#206;,&#169;&#206;</td>

<td width="20[B]px[/B]">&#177;&amp;#177;&#190;A&#165;&#206;</td>[/quote]
"px" is CSS, as used here, it is not correct.

HTML is [B][U]width="20"[/U] [/B](correct)

CSS is [B][U]style="width:20px;"[/U] [/B](correct)



Remove the "[B]px[/B]" ?
Copy linkTweet thisAlerts:
@CentauriMar 10.2008 — align on td the first td only have three word , other 's have four, so the first Td is lower then other.[/QUOTE]

In your example you posted above, there [B]are[/B] no words, let alone different numbers of words in each cell. The vertical-align [I]aravelli[/I] posted above should work unless the style is being over-ridden by something else.
Copy linkTweet thisAlerts:
@HJCauthorMar 13.2008 — HI,

Thank your for all the suggestion,

I change width<td style="width:30px" class="a">

and in css I have .td.a{

high: 50px;

vertical-align:top;}

it just not work?
Copy linkTweet thisAlerts:
@CentauriMar 13.2008 — Remove the full stop before the td - the style rule should be [COLOR="Red"]td.a[/COLOR] not [COLOR="Blue"].td.a[/COLOR]
Copy linkTweet thisAlerts:
@WebJoelMar 13.2008 — td.a{

[B] high:[/B] 50px;

vertical-align:top;}[/QUOTE]
and what -the-heck is this? I bet you mean "[B]height[/B]"
×

Success!

Help @HJC spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...