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

  • SEARCH
  • Home
  • 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 8561423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:29:59+00:00 2026-06-11T16:29:59+00:00

I have the following div tag: <div id=headerimage></div> associated with this is the following

  • 0

I have the following div tag:

    <div id="headerimage"></div>

associated with this is the following css:

    #headerimage
    {
     width: 897px;
     height: 65px;
     background: url('../images/headerimg.jpg'); 
    }

I need the background image to be clickable to where when the user clicks it, it goes to url.

I did the following and it works but not sure if there is a more elegant way (Note how I have it within an anchor tag:

     <a href="http://www.myurl.com">
      <div id="headerimage"></div>
     </a>
  • 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-06-11T16:30:00+00:00Added an answer on June 11, 2026 at 4:30 pm

    Nate,

    You could just turn your anchor tag into a block element: http://jsfiddle.net/Vdfz8/

    Hope that helps, and maybe even simplifies things for ya.

    Cheers

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

Sidebar

Related Questions

Say you have the following CSS applied to a div tag .divtagABS { position:
I have the following tag in HTML: <div data-dojo-type=dojox.data.XmlStore data-dojo-props=url:'http://135.250.70.162:8081/eqmWS/services/eq/Equipment/All/6204/2', label:'text' data-dojo-id=bookStore3></div> I have
Hi I have a following css : div.container { height:20px; overflow: hidden; margin: 15px
I have following HTML markup, <div id=subcontent_l> <p> <a href=/membership-packages/><img height=202 width=644 alt= src=http://74.52.72.231/wp-content/uploads/2010/06/banner1.jpg
i have the following problem with that code in my html tag: <div id=searchbar><input
For example, I have the following tag which its content is short <div>It is
I have the following div and paragraphs: <div id=container> <p class=jsavoutput jsavscroll readonly=readonly style=width:225px;
I'd like to have the following div tag display a tool-tip on mouse hover.
I have the following that I would like wrapped as units. <div class='tag-box'> <a
I have following html: <div class=rows> <div class=row><input type=text onchange=javascript:getIndex(this); value= /></div> <div class=row><input

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.