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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T13:59:13+00:00 2026-05-21T13:59:13+00:00

The HTML code: <ul> <a href=’index.php’> <li> <img src=’images/icons/home.png’ alt=” /> <p>Home</p> </li> </a>

  • 0

The HTML code:

<ul>
    <a href='index.php'> 
        <li>
            <img src='images/icons/home.png' alt='' />
            <p>Home</p>
        </li> 
    </a>
</ul>

The CSS:

ul {

    height:100%;

    position: absolute;
    right: 0;
    text-align: left;
}

ul li {

    height: 100%;
    width:90px;
    float: left;
}

ul li p {
    margin-top: 4px;
    width: 100%;    
}


ul a li {
    display:block;
}

ul li img {
    margin-top: 8px;
    width: 43px;
    height: 43px;
}

(I’ve left all the properties here except the font stuff)

The problem:

In Internet Explorer only: the whole link (which is a square block with text and an image inside) functions normally as a link except for the part where the image is. In that part when clicked on the link does not work. It does, however, strangely, still, show the link in the status bar when you hover over any part, including the image.

  • 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-21T13:59:14+00:00Added an answer on May 21, 2026 at 1:59 pm

    You should provide a larger sample of your HTML, but I can already see that it’s invalid:

    <a href='index.php'> 
        <li>
            ..
        </li> 
    </a>
    
    • You either have an a element as a direct child of a ul element which is invalid.
    • Or, you don’t have a containing ul element, which is also invalid.
    • It’s only valid to use an li element inside a ul or ol element (and a couple of other less common scenarios).

    Valid HTML would look like this (assuming HTML5!):

    <ul>
        <li>
            <a href="#">
                <img src='images/icons/home.png' alt='' />
                <p>Home</p>
            </a>
        </li>
    </ul>
    

    Once you use valid HTML, it should work in IE.

    (But, you didn’t specify what version of IE, so I’m just guessing that it will.)

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

Sidebar

Related Questions

This is my html code: <img src=http://127.0.0.1/bookManagementProject/asset/images/mainLogo.gif><a> <br> <FONT SIZE=3 FACE=Arial><br>&nbsp&nbsp&nbsp <a href =
My HTML code: <p>NEWS</p> <p> <form action=news.php method=post> <center><input name=NEW type=submit id=new value=NEW/> <input
I have below html code in my aspx. <input type=hidden id=medicalLink value='<a href=/forms/contactus.aspx >Contact
My html code has many anchors and links such as : <script src=/Common/Scripts/jquery-1.4.4.min.js type=text/javascript></script>
I need help on timing issues between CSS file and HTML code from AJAX.
I have my html code like: <ul id=abc> <li><a href=http://koolfinance.blogspot.com/2011/06/laxmi-bank.html>Laxmi Bank</a></li> <li><a href=http://koolfinance.blogspot.com/2011/06/nepal-development-bank.html>Nepal Development
Extracting the href value from the following sample HTML code is straight forward if
Html code is: <div id=questions> <ul> <li class=selected><a href=#fly>Fly</a></li> <li><a href=#fly1>Fly 1</a></li> </ul> <div
I have this html code that I need to parse <a class=sushi-restaurant href=/greatSushi>Best Sushi
I have the following HTML code: <a href=/search/?p=2&q=move&mt=1> 2 </a> I would like 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.