W3C home > Mailing lists > Public > www-style@w3.org > December 2010

Re: Two CSS challenges

From: Gérard Talbot <www-style@gtalbot.org>
Date: Mon, 27 Dec 2010 11:20:54 -0800
Message-ID: <026661c632994f4d94fedb9d56f69939.squirrel@cp3.shieldhost.com>
To: "Daniel Glazman" <daniel.glazman@disruptive-innovations.com>
Cc: "Andrew Fedoniouk" <news@terrainformatica.com>, "Andrew Fedoniouk" <andrew.fedoniouk@live.com>, "W3C style mailing list" <www-style@w3.org>

Le Sam 25 décembre 2010 17:38, Daniel Glazman a écrit :
> Le 26/12/10 02:16, Andrew Fedoniouk a écrit :
>
>> I want something like this:
>>
>> ::text
>> {
>> position:relative; left:1px; top:1px;
>> }
>>
>> that is shift in both directions.
>
> Consider a property allowing to "move" the vertical alignment
> of a box by a given offset. That's what I suggested and it addresses
> your need w/o introducing ::text.

Daniel,

vertical-align: -1px;
would achieve that vertical alignment offset goal without introducing a
new property like vertical-align-offset.

Demos:

http://www.gtalbot.org/BrowserBugsSection/css21testsuite/button-like-span-activated-moves-left-v3.html

http://www.gtalbot.org/BrowserBugsSection/css21testsuite/button-like-span-activated-moves-left-v3.1.html

{
<length>
    Raise (positive value) or lower (negative value) the box by this
distance. The value '0cm' means the same as 'baseline'.
}
http://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align

Meilleurs voeux pour le temps des fêtes, Gérard
-- 
CSS 2.1 Test suite RC4 (December 10th 2010)
http://test.csswg.org/suites/css2.1/20101210/html4/toc.html

Contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

Web authors' contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Monday, 27 December 2010 19:21:32 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:35 GMT