Quantcast
Channel: CSS text-indent - remove text but not content added using :after - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by G-Cyr for CSS text-indent - remove text but not content added using...

By defaut, pseudo element are inline element and follow text-indent. If you make it, float or a block boxe , it will stay in view. Then you still need to reset to it text-indent to 0; it can be then :...

View Article



Answer by Sandro Paganotti for CSS text-indent - remove text but not content...

You can try something like this: http://jsfiddle.net/sandro_paganotti/HupTL/ div{ position: relative; text-indent: -9000px; } div:after{ content: 'hi!'; display: block; position: absolute; text-indent:...

View Article

CSS text-indent - remove text but not content added using :after

I am using a slider that I can't modify the navigation text (next / previous) but I would like to replace the text with an arrow I have added the arrows with the following css: #carousel...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images