WordPress.org

Ready to get started?Download WordPress

Forums

Alt="" In header image (4 posts)

  1. spiritfolk
    Member
    Posted 7 years ago #

    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="http://www.spiritfolk.com" 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

  2. spiritfolk
    Member
    Posted 7 years ago #

    Can anyone help?

  3. whooami
    Member
    Posted 7 years ago #

    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:

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

  4. dullneon
    Member
    Posted 6 years ago #

    (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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags