Hide text using css

0 votes

I have a tag in my HTML like this:

<h1>My Website Title Here</h1>

I want to replace the wording with my actual logo using CSS. I easily added the logo thereby enlarging the tag and using CSS to include a background picture. I'm not sure how to get rid of the writing, but. I've essentially seen it done previously by shoving the text off the screen. The issue is that I can't recall where I saw it.

Jul 29, 2022 in CSS by Edureka
• 13,620 points
1,471 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
Just add font-size: 0; to your element that contains text.
answered Nov 21, 2022 by anonymous

edited Mar 5

Related Questions In CSS

0 votes
1 answer

How do I give text or an image a transparent background using CSS?

Use either a semi-transparent PNG or SVG ...READ MORE

answered May 27, 2022 in CSS by Edureka
• 12,690 points
718 views
0 votes
1 answer

How to hide image broken Icon using only CSS/HTML?

Because CSS/HTML has no means of knowing ...READ MORE

answered May 31, 2022 in CSS by Edureka
• 12,690 points
4,586 views
0 votes
1 answer

How to insert spaces/tabs in text using HTML/CSS

For spaces, use &nbsp;, for (less than, ...READ MORE

answered Jun 1, 2022 in CSS by Edureka
• 12,690 points
738 views
0 votes
1 answer

Multi-Colored text using only CSS

Put your text inside a span> tag ...READ MORE

answered Jun 28, 2022 in CSS by Edureka
• 12,690 points
3,261 views
0 votes
1 answer

Text border using css (border around text)

To apply borders to fonts in CSS, ...READ MORE

answered Jun 28, 2022 in CSS by Edureka
• 12,690 points
10,297 views
0 votes
1 answer

How to set Bullet colors in UL/LI html lists via CSS without using any images or span tags

I use jQuery for this: jQuery('li').wrapInner('<span class="li_content" />'); & ...READ MORE

answered May 27, 2022 in CSS by Edureka
• 12,690 points
1,136 views
0 votes
2 answers

Define a SQL query? What is the difference between SELECT and UPDATE Query? How do you use SQL in SAS?

HI.. SQL is Structured Query Language, which is ...READ MORE

answered Aug 8, 2020 in PHP by anonymous
11,024 views
0 votes
1 answer

Using/Handling colon inside a JSF generated HTML element ID in CSS selector

Yes, you can.  Just Backslash (\) the colon.  Like ...READ MORE

answered Nov 14, 2018 in Others by DataKing99
• 8,250 points
2,993 views
0 votes
1 answer

What is a css selector and where is it used?

CSS Selector is a combination of element ...READ MORE

answered Nov 21, 2018 in Data Analytics by Kalgi
• 52,350 points
1,055 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP