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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:56:15+00:00 2026-05-26T17:56:15+00:00

fiddle Screenshot Source <a href=#><img width=200 height=200></a> Question Notice how the black border only

  • 0

fiddle

Screenshot

Source

<a href="#"><img width="200" height="200"></a>

Question

Notice how the black border only appears around the bottom part of the image? How do I fix that so that it appears around the whole thing?

I’ve done it before, but I can’t remember how…

  • 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-26T17:56:15+00:00Added an answer on May 26, 2026 at 5:56 pm

    Try this:

    HTML

    <a href="#">
        <img width="200" border="0" height="200" />
    </a>
    

    CSS

    a {
        border:1px solid black;
        display: block;
        float: left;
    }
    img
    {
       display: block;   
    }
    

    Live demo can be found here

    It is probably better to edit the border of the <img> tag instead of the <a>

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

Sidebar

Related Questions

I got a CSS question related to this fiddle: http://jsfiddle.net/r584e/ Here the relevant screenshot
I have this Fiddle: http://jsfiddle.net/GSA5R/2/ Whereby i use the border property to create the
Here's the fiddle I'm working with: http://jsfiddle.net/Scd9b/ How can I delay the href function
Here's a fiddle . I need to make the <fieldset> the width of its
Here's my fiddle: http://jsfiddle.net/gFA4p/84/ In this screenshot, the green lines represent where I'm trying
Fiddle here: http://jsfiddle.net/csaltyj/mbnWm/ <style type=text/css> #container { border: 2px solid #000; position: absolute; width:
Fiddle here: http://jsfiddle.net/F6nJu/ I have a colored box: <div id=colorblock></div> #colorblock { background:#3ff; width:
Please view this fiddle in IE6: http://jsfiddle.net/rS4dE/2/ Unless I add a width of 1%
fiddle: http://jsfiddle.net/vVJGD/ ::-webkit-scrollbar{ width: 10px; padding-top: 40px; } ::-webkit-scrollbar-track{ -webkit-box-shadow: inset 0 0 1px
I am just starting to fiddle with Excel via C# to be able 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.