How to do Alt for Header IMG
-
Hi, I’ve currently got an image placed via style sheets into the background of the header (code below). I’ve been trying to figure out a way for an “alt” style text box to appear, saying something (go back to main page). I can’t figure it out as it seems that alt doesn’t work on the “div” tag, are there any ideas how to do this?
Thanks,
Leo#header { margin: 0 !important; margin: 0 0 0 1px; padding: 0px; height: 262px; width: 760px; }
#headerimg { margin: 0px 0px 0; height: 262px; width: 760px; }
#headerimg { background: url(‘<?php bloginfo(‘stylesheet_directory’); ?>/images/personalheader.jpg’) no-repeat top;}</style>
<?php wp_head(); ?>
</head>
<body>
<div id=”page”><div id=”header”>
<div id=”headerimg” onclick=”location.href=’https://seamsters.net/’;” style=”cursor: pointer;”></div>
</div>
<hr />
- The topic ‘How to do Alt for Header IMG’ is closed to new replies.