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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:31:13+00:00 2026-06-18T03:31:13+00:00

I put ‘a’ tag in my html and add position relative to it then

  • 0

I put ‘a’ tag in my html and add position relative to it then append ‘img’ tag in ‘a’ tag and add absolute position, left 0, right 0, top 0, bottom 0, margin auto to ‘img’ tag.

this code not working in ie7. In other browser it works fine.

whats wrong in my code?

I create code as follow:

HTML:

<a href="#" class="img-link-wrap"><img alt="Image 1" src="img/501.jpg"></a>

CSS:

a.img-link-wrap {
border: 1px solid #999;
display: block;
position: relative;
height: 11em;
width: 10em;
text-align: center;
}

a.img-link-wrap img {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
margin: auto;
}

Thanking You.

  • 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-18T03:31:14+00:00Added an answer on June 18, 2026 at 3:31 am

    to center an element, use this code snippet:

    .centered {
      position: based on your choice;
      top: 50%;
      left: 50%;
      margin-top: -(element_height/2);
      margin-left: -(element_width/2);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I put fixed position white-to-transparent PNG over my text on the top of window
I put the strip method in the CarrierWave initializer: def strip manipulate! do |img|
i put div with class=inner-box2 after div with class=inner-box . HTML: <div class=box> <div
I put together a quick WordPress site locally using MAMP, then checked it into
I put an a tag around some text and give it an id mainpage.
when put svg image inside span tag like <span> <svg:svg xmlns=http://www.w3.org/1998/Math/MathML xmlns:svg=http://www.w3.org/2000/svg xmlns:svgmath=http://www.grigoriev.ru/svgmath height=15.405117pt
I put a wamp server on my pc and then downloaded everything from a
Simply put, how do I specify an absolute filesystem path using the require_once keyword
A put a ancor tag on a page. When I click it, I want
I put a background image to my Relative layout using android:background=@drawable/rajat2 , where rajat2

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.