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 5952919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:45:01+00:00 2026-05-22T17:45:01+00:00

This is driving me nuts. I am trying to set a background image to

  • 0

This is driving me nuts. I am trying to set a background image to a link which I have given the class attribute replace. When I use the code I have written below it only shows the background picture for the length of the text ‘Logo link’ and it has not height to it, even though I specify the width and height to be 334 by 67 pixels in the style tage below. What am I doing wrong?

<style type="text/css">
#head #logo a { background: url('www.example.com') !important; width: 334px !important;}
#logo .replace
{
width: 334px;
height: 67px;
}
</style>
<body>
<div id="head">
<p id="logo"><a href="/" class="replace">Logo link</a></p>
</div>
</body>
  • 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-22T17:45:02+00:00Added an answer on May 22, 2026 at 5:45 pm

    Because, by default, the a element is inline, and cannot have height. Try adding the rule display:block to the #head #logo a section.

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

Sidebar

Related Questions

NHibernate is driving me 'Nuts'!!! I have the following mapping. Which returns this error
This is driving me nuts. I am trying to setup a webiste on our
This is probably a silly error, but it's driving me nuts trying to fix
This is driving me nuts, maybe I'm missing something but I'm trying to upgrade
OK, this is driving me nuts. I'm trying to screen-scrape the following bit of
OK, what am I doing wrong, this is driving me nuts. I am trying
This is driving me nuts. I have two tables that I am attempting to
This is driving me nuts - I have been round and round in circles,
This is driving me nuts. I am using some 3rd-party code in a Windows
Ok, this is driving me nuts. I've done just about everything I can to

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.