Re: Hortizontal filler

Giuseppe Bilotta wrote:
> On Mon, Jan 12, 2009 at 9:24 AM, Rijk van Geijtenbeek <rijk@opera.com> wrote:
>> Op Mon, 12 Jan 2009 05:26:09 +0100 schreef Giuseppe Bilotta
>> <giuseppe.bilotta@gmail.com>:
>>
>> 'how to' questions are better suited for how-to lists such as CSS-Discuss
>> <http://www.css-discuss.org/>
> 
> Oh, thanks for the reference.
> 
> This request can easily turn into a feature request for CSS though, I
> suspect ;-)

As far as I understand your task then you need flex units here:

a[href=bar] {
   display:inline-block;
   width: ...;
   margin-right:1*;
}

and markup:

<div>
   <a href=foo>outer linked content</a>
   <a href=bar>inner</a>
</div>


margin-right attribute is given in flex units (1*) thus
margin-right behaves as a spring (filler in your terms)
shifting a[href=bar] to the left inside line box it is
in.


-- 
Andrew Fedoniouk.

http://terrainformatica.com

Received on Monday, 12 January 2009 17:04:29 UTC