Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - [css] align to top

 
Thread Tools Search this Thread
Old 06-25-2003, 12:34 PM   #1
Default [css] align to top


Hi,
how can I using CSS align text in each <td> to be top-right ?

Right I can have using text-align: top but how to align verticaly?

Btw. why this property is name TEXT-align, while it aligns not only
text, but all content (including <img> <div> <span> etc) ?

--
:. http://www.raf256.com/from-news .: ~~~~~~~l-.~~~~~~\ SSN 688
:.:. Rafal (at) Raf256 (dot) com .:.: ____| ]____, '--------
:. :. Rafal 'Raf256' Maj .: .: * ) . . _
:.:.:.:. GG - 1175498 .:.:.:.: ,"----------"


Rafal 'Raf256' Maj
  Reply With Quote
Old 06-25-2003, 12:50 PM   #2
Steve Pugh
 
Posts: n/a
Default Re: [css] align to top
"Rafal 'Raf256' Maj" <> wrote:

>how can I using CSS align text in each <td> to be top-right ?


vertical-align: top;
text-align: right;

>Right I can have using text-align: top


No such thing.
See http://www.w3.org/TR/CSS2/text.html#propdef-text-align
Value: left | right | center | justify | <string> | inherit

>but how to align verticaly?


In a <td>, by using vertical-align.
See http://www.w3.org/TR/CSS2/visudet.ht...vertical-align

>Btw. why this property is name TEXT-align, while it aligns not only
>text, but all content (including <img> <div> <span> etc) ?


Some browsers are buggy. It should only align inline content (so <img>
is aligned) not child blocks, though it will align the content of
those child blocks. See the above URI.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <> <http://steve.pugh.net/>


Steve Pugh
  Reply With Quote
Old 10-29-2009, 03:09 PM   #3
Jason Nich
Junior Member
 
Join Date: Oct 2009
Posts: 1
Default Need some assistance with CSS alignment
Hello,
I require some assistance with regards to alignment. That is similar to the above post.

The Requirement:
I need to have my h6 heading and my p paragraph, inline and top aligned. Also the paragraph should not wrap around the h6 heading.
Please refer to the applicable sample HTML code and the CSS I applied to the HTML to present the HTML below.

The HTML code:
<code>
<h6> par 31. </h6>
<p> The contents of the applicable paragraph, that relatest the h6 heading, that I would like to have side be side and vertical-align: top with the h6 heading </p>
</code>

The CSS code: (to align the above the HTML)

h6 { float: left; }

p { padding-left: 4em; }

My Solution is not perfect because...
I need the h6 heading to be "vertical-align: top" to be inline with the first line of the paragraph (p), but the vertical-align:top does not work on h6 float left.


Jason Nich

Last edited by Jason Nich : 10-29-2009 at 06:00 PM.
Jason Nich is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to align this drop down box?plz help indumathi General Help Related Topics 0 03-04-2008 11:10 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46