About 15,000,000 results
Open links in new tab
  1. css - Hide text, leave icon elements - Stack Overflow

    Nov 30, 2015 · In some cases the best solution to set "invisible" label for interactive element is to use "aria-label" HTML property: <button onclick="..." aria-label="Send" /> or. <a href="..." aria-label="Next"></a> Description at MDN Web Docs. Assuming the width of the icons is 1em, you can do something like. display:inline-block; width:1em; height:1em;

  2. Hide text using css - Stack Overflow

    Jan 23, 2009 · To hide text from html use text-indent property in css .classname { text-indent: -9999px; white-space: nowrap; } /* for dynamic text you need to add white-space, so your applied css will not disturb. nowrap means text will never wrap to the next line, the text continues on the same line until a <br> tag is encountered

  3. CSS to hide INPUT BUTTON value text - Stack Overflow

    Feb 10, 2015 · I am currently styling an <input type='button'/> element with the following CSS: background: transparent url(someimage); color: transparent; I want the button to show as an image, but I don't want the value text to display on top of it.

  4. How to Hide a Value or Text from the HTML Input control

    Apr 2, 2024 · In this approach, we will use the HTML <input type="hidden"> property to hide a value or text from the HTML Input control. The type="hidden" attribute specifies that the input field should be hidden from the user interface.

  5. CSS visibility Property - W3Schools

    Hide a <h3> element: More "Try it Yourself" examples below. The visibility property specifies whether or not an element is visible. Tip: Hidden elements still take up space on the page. Use the CSS display property to both hide and remove an element from the document layout! Show demo . yes. Read about animatable.

  6. The 6 Best Ways to Hide Text in HTML Code - html-tuts.com

    Feb 12, 2023 · With HTML/CSS, you can set the CSS style to display:none, visibility:hidden, content-visibility:hidden, or set the opacity to zero. In HTML forms, setting the input type to hidden will hide the HTML field. 1. Hide Text in HTML code with the Global Hidden Attribute. The global hidden attribute is exactly what the name suggests.

  7. How TO - Toggle Hide and Show - W3Schools

    Toggle between hiding and showing an element with JavaScript. Click the button! This is my DIV element. Tip: For more information about Display and Visibility, read our CSS Display Tutorial.

  8. CSS Buttons - W3Schools

    Use the box-shadow property to add shadows to a button: Use the opacity property to add transparency to a button (creates a "disabled" look). Tip: You can also add the cursor property with a value of "not-allowed", which will display a "no parking sign" when you …

  9. Quick Tip (s): Using CSS to hide button text - Appnovation

    Sep 13, 2011 · Just a few quick tips today about using css to hide button or link text. This is especially useful when you can’t form alter to make the . First of all, make sure to set this rule: text-align: left; Otherwise, the indent won’t work!

  10. Show or Hide any HTML element with a Button Click

    Dec 30, 2021 · To toggle (show/hide) an HTML element with a button click you need to do one simple trick in the onclick handler of that button. Let me show you how it’s done.

  11. Some results have been removed
Refresh