Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 875759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:19:31+00:00 2026-05-15T11:19:31+00:00

Have HTML pages with many sections and each section has a section title displayed

  • 0

Have HTML pages with many sections and each section has a section title displayed as an image (to use nice font). The problem is that even if I specify an ‘alt’ and ‘title’ text on each image/title the Ctrl+F browser functionality does not find the text. Thought two possible solutions but not very happy about them

  1. Use embed fonts.
    Problem: Can not find the font required by client to use and not sure about copyrights.

  2. Have the text in the image in DIV near the image but hidden from user view.
    Problem: Can search engines consider this keyword stuffing? Will browser find text if display:none

Does anybody has a better solution?
Thanks
Riga

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T11:19:32+00:00Added an answer on May 15, 2026 at 11:19 am

    Generally the best approach to image replacement is to do so exclusively within the stylesheet.

    The HTML should still look like:

    <h2 id="fantastic-section-of-awesomeness"><span>This is an Ordinary Heading</span></h2>
    

    Your CSS can then do:

    h2#fantastic-section-of-awesomeness {
        background: ...; /* The replacement image */
    }
    h2 span {
        text-indent: -100000px;
    }
    

    Note that the text is not actually hidden. Some screen readers interpret display: none; incorrectly (even when given in a media="screen" stylesheet). Instead, we simply shift it far off the left side of the screen where it can’t realistically be seen.

    I have not specifically tested this for Ctrl+F, but the fact that the text is still technically visible should allow the browser to find it.

    It will not be able to highlight the image as a match, however, which may still lead to confusion. There’s no real way around that without using an @font-face.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 542k
  • Answers 542k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Use: SELECT p.id as a, p.url as b, t.id as… May 17, 2026 at 3:22 am
  • Editorial Team
    Editorial Team added an answer There are two parts to the problem First Issue You… May 17, 2026 at 3:19 am
  • Editorial Team
    Editorial Team added an answer I thought I'd show the regex approach, too. It doesn't… May 17, 2026 at 3:18 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

It is advisable to use tables in HTML pages (now that we have CSS)?
I have two html pages, when you click on something on the first html,
I have some pages on my site that are plain HTML pages, but I
I have a website which uses PHP and HTML pages, I want to create
I have the following snippet in one of my html pages : <div class=inputboximage>
We have a website; which, till now had only HTML pages. Now we are
I have snippets of Html stored in a table. Not entire pages, no tags
I have to build an HTML table that shows data for users versus pages
I have an HTML page (say welcome.html) which contains an iframe to a page
I have a HTML page that scrolls up and down (not a lot, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.