Re: negative margin for sup/sub-scripting

W dniu 31.07.2014 12:21, Alan Gresley pisze:
> On 31/07/2014 7:22 PM, Rafał Pietrak wrote:
>> Hello the list,
>>
>> Checking on sub/super-script styling, from
>> (http://www.w3.org/TR/CSS2/box.html) I read: "Negative values for margin
>> properties are allowed, but there may be implementation-specific 
>> limits."
>>
[--------------------]
>
> The reason it does not work is because <sup> is an inline element. See 
> 'margin-top', 'margin-bottom'  in section 8.3 [1] where it states:
>
>   | These properties have no effect on non-replaced
>   | inline elements.

I see.

>
> If you change it to 'display:inline-block', the line is shifted enough 
> where there is no extra space between each <tr>
>
>
> 1. http://www.w3.org/TR/2011/REC-CSS2-20110607/box.html#margin-properties
>

Ok. Works fine (I admit, it takes an expert to get all this stuff right :)

Thex,

-R

Received on Thursday, 31 July 2014 14:50:37 UTC