How to hide text using CSS?

How to make fooinvisible using CSS (CSS3, if necessary), while maintaining barand fizz?

<table>
  <tr>
    <td>
      <textarea>bar</textarea>
      <input type='button' title='fizz' />
      foo
    </td>
  </tr>
</tbody>

Creating fooin the same color as the background is acceptable, but the trick - the background - is an image, therefore - it fooshould be transparent, not a solid color.

JavaScript is also not an option.

Modifying HTML is also not an option.

Any ideas?

+3
source share
7 answers

EDIT: Scott is better. Use it.

I do not think that the right solution will be enough.

td {
    position: relative;
    left: 9001px;
}

textarea {
    position: relative;
    right: 9001px;
}
+3
source

IE8 Firefox (IE7 , , , font-color -, , . , text-area input .

td {font-size: 0;}

WOW , ! IE7-8, Firefox Safari

td {visibility: hidden}
td textarea,
td input {visibility: visible;}

, div, , div div, div , .

-, visibility , ( opacity) , visibility, hidden visible , hidden .

+7

, div, .

0

td , textarea ( CSS width height), overflow: hidden TD, , hide ?

0

whoops... OP . , , html .

css , ( ?):

...
   <textarea class="hideme">bar</textarea>
...

css:

.hideme {
   display: hidden;
}

'hidden' ( ), , . , , display: none.

0

Amber -

overflow: hidden TD, , , padding-bottom textarea button.

0

IE, :

table {
    background-color: cyan;
}
td {
    color: rgba(255,255,255,0);
}
td textarea, td input {
    color: #000;
}
0

Source: https://habr.com/ru/post/1756234/


All Articles