-3

Is it possible to have multiple texts over each other and yet only one of them readable/visible, without setting the background-color of the text container of the desired readable one ?

I dream about something like:

text-background: hide-other-text;

more info: I need the background color of the elements behind the text, and text "below" needs to go up to the text on top.

4
  • 1
    Just overlay elements and hide using either display none or a z index higher than others
    – Andy
    Jan 30, 2013 at 12:18
  • 1
    CSS display:none or visibility:hidden?:
    – Vucko
    Jan 30, 2013 at 12:18
  • I can honestly say that I don't believe that property will ever make it into any finalised CSS spec, the use-case seems way too limited. Jan 30, 2013 at 12:24
  • When do you wan't text on text - it's unreadable ? "text-background: hide-other-text;" sould be default.
    – Seb
    Jan 30, 2013 at 12:54

1 Answer 1

1

You could use jQuery to hide the one piece of text, and add the other piece of text, if you so desired. That might be much simpler in this case.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.