W3C home > Mailing lists > Public > www-style@w3.org > April 2011

Is it possible to align by text

From: Mark Kenny <beingmrkenny@gmail.com>
Date: Fri, 29 Apr 2011 13:15:03 +0100
Message-ID: <BANLkTinL3Wfe7u=U+sie3QNYkNQ3BZrLzw@mail.gmail.com>
To: www-style list <www-style@w3.org>
Recently I had a situation where I wanted to align the right hand side of
the text with the right hand border of a DIV. The width of the H1 was 100%
and I wanted it to extend all the way out of view, so couldn't use the right
hand border of the H1 for alignment.

You can see the (unfinished) example at beingmrkenny.co.uk/portfolio -- the
H1 in question is the text "PORTFOLIO" currently in purple and yellow at the
top of the page.

The text in that H1 will vary in length, but I'd like to align it by the
right edge. Obviously there's nothing in the spec at the moment, but I was
wondering if this would be possible / considered for the future, or if
there's a way of doing it currently that I'm not aware of.



Mark Kenny
Received on Friday, 29 April 2011 12:15:50 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:45 UTC