折り返されたテキストの最初の行の最後の単語の後にインラインで配置したい小さな「詳細」アイコンがあります。この例の疑問符のように...
If this is my pretend ?
sentence, then I want the
icon to be in the position
where you see the question
mark... line #1 above.
答えはそうではないfloat: right;
かposition: absolute; top: 0; right: 0;
これらを使うとこんな感じになります…
If this is my pretend ?
sentence, then I want the
icon to be in the position
where you see the question
mark... line #1 above.
アイコンをインラインで表示したいのですが、テキストが動的に挿入されるため、実際にはインラインに配置したくなく、どこに配置するかを決めるのが面倒です。また、軽量なものが欲しいので、理想的には Javascript や jQuery はありません。
純粋なCSSでこれを行う方法はありますか?
jsFiddle >> http://jsfiddle.net/JTSEU/