• spiritfolk

    (@spiritfolk)


    Hello

    I have my header image linked back to the homepage using the below code in the header.php:

    <div id=”header”onclick=location.href=”https://www.spiritfolk.com&#8221; style=”cursor: pointer;”>
    <div id=”headerimg”></div>

    How do i put an alt=”” tag in the header image so when the mouse pointer hovers of the image “Home” appears.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter spiritfolk

    (@spiritfolk)

    Can anyone help?

    whooami

    (@whooami)

    youre using CSS or (javascript??) to display the image. alt tags are intended for images that are displayed the old fashion way, ie <img src=...

    For that reason, I don’t think you can can do that, not THAT way at least.

    If you want to do it an other way, take a read here:

    https://meyerweb.com/eric/css/edge/popups/demo.html

    (8 months late but…)

    maybe you could add title= attribute in your <div> tag to get that tooltip.

    don’t know if that’s what you are looking for though… is it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Alt=”” In header image’ is closed to new replies.