Why aren't these links functional in IE?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • seegoon
    New Member
    • Oct 2009
    • 31

    Why aren't these links functional in IE?

    Hi guys.

    I'm completely new to web design and development, but have been tasked with creating a passable website for a new venture. I've done the whole thing by hand, which might have been a bit foolhardy. The result is a website that looks okay on the system I'm using, but is pretty temperamental with lower resolutions and the sinful IE.

    There's a page - http://buddingpress.co.uk/publish - which has some coloured banners. I've coded up a little hack that highlights them on mouseover, and they each link out to another page. Issue is that they don't work at all on IE. I understand that it was probably my own fault to create some coding without thinking about standards. How should I repair this?

    Here's the on-page HTML:
    Code:
    <a href="/publish/picture-book/options.html" class="highlightit" title="blah">
    <div class="publish-box" id="publish-childrens">
    <img src="/images/white.gif" height="100%" width="100%">
    </div>
    </a>
    And here's the relevant CSS:
    Code:
    .highlightit img {
    	filter:progid:DXImageTransform.Microsoft.Alpha(opacity=20);
    	opacity: 0.2;
    }
    
    .highlightit:hover img {
    	filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
    	opacity: 0;
    }
    
    .publish-box {
    	border:2px solid gray;
    	width:650px;
    	margin:20px 0;
    	border:1px solid #bcbcbc;
    	-webkit-border-radius: 6px;
    	-moz-border-radius: 6px;
    	border-radius: 6px;
    	height:168px;
    	box-shadow: 0 5px 5px -3px #999999;
    	-moz-box-shadow: 0 5px 5px -3px #999999;
    	-webkit-box-shadow: 0px 3px 5px #999999;
    	overflow:hidden
    }
    
    #publish-childrens { background-image:url('images/publish-childrens.jpg') }
    As a PS, the textbox that pops up when you click the bottom link on that page is positioned really bizarrely. Do you know a fix for that, too?

    Thank you muchly.
  • zorgi
    Recognized Expert Contributor
    • Mar 2008
    • 431

    #2
    Originally posted by seegoon
    Hi guys.
    Issue is that they don't work at all on IE. I understand that it was probably my own fault to create some coding without thinking about standards.
    IE and standards !? :)

    Anyhow, I checked and it works in IE8 but not in IE6 and IE7. There is nice little tool for checking things like this. Its called IE tester.

    As for your problem at them moment you have this structure:
    Code:
     <a><div><img /></div></a>
    I would try to remove DIV from between <a></a> and do all my styling on actual "a" tag to get this structure:
    Code:
    <a><img /></a>
    or if you prefer on divs:
    Code:
     <div><a><img /></a></div>

    Comment

    • seegoon
      New Member
      • Oct 2009
      • 31

      #3
      The final solution seems to have worked perfectly, thanks for that. It seems obvious now! Would I have been able to style the <a> tags? The <div>s use background-image to get the desired effect. No matter how you look at it, I completely bodged it together so it working at all is a miracle!

      Any ideas about the positioning of the pop-up? Not that you haven't already saved my ass today.

      Thanks.

      Comment

      • zorgi
        Recognized Expert Contributor
        • Mar 2008
        • 431

        #4
        I went back to your site to check that popup issue again and it seems you sorted it out :)

        Comment

        • Dormilich
          Recognized Expert Expert
          • Aug 2008
          • 8694

          #5
          PS. (for future works) block elements (like <div>) are not allowed inside inline elements (like <a>)

          Comment

          • drhowarddrfine
            Recognized Expert Expert
            • Sep 2006
            • 7434

            #6
            I've done the whole thing by hand, which might have been a bit foolhardy
            I have never coded a site any other way.

            Comment

            • seegoon
              New Member
              • Oct 2009
              • 31

              #7
              PS. (for future works) block elements (like <div>) are not allowed inside inline elements (like <a>)
              Thanks for this. I should really spend some time learning the basics before lunging headfirst into a project and learning as I go.

              I have never coded a site any other way.
              Everyone I've talked to about this has said to me "oh, what software are you using?", which surprises me. Learning from scratch, I've never seen any recommendations that I should go and buy any kind of web design program at all. In fact, it looks to be looked down upon.

              And Zorgi - you da man.

              Comment

              • Dormilich
                Recognized Expert Expert
                • Aug 2008
                • 8694

                #8
                Originally posted by seegoon
                Everyone I've talked to about this has said to me "oh, what software are you using?", which surprises me. Learning from scratch, I've never seen any recommendations that I should go and buy any kind of web design program at all.
                there are more programmes than just the web design programmes. nearly every code editor has it’s own pros and cons (say, tag highlighting, syntax checking, project management, ftp, distributed development, auto-completion, etc.) which may be discussed. but I agree that hand-coding is the most efficient (in terms of code).

                Comment

                • zorgi
                  Recognized Expert Contributor
                  • Mar 2008
                  • 431

                  #9
                  Originally posted by Dormilich
                  there are more programmes than just the web design programmes. nearly every code editor has it’s own pros and cons (say, tag highlighting, syntax checking, project management, ftp, distributed development, auto-completion, etc.) which may be discussed. but I agree that hand-coding is the most efficient (in terms of code).
                  Curios. What editor/s are you using Dormilich?

                  Comment

                  • Dormilich
                    Recognized Expert Expert
                    • Aug 2008
                    • 8694

                    #10
                    SubEthaEdit (because I can edit files on my server on the fly and on the fly PHPing) and sometimes Geany.

                    Comment

                    • drhowarddrfine
                      Recognized Expert Expert
                      • Sep 2006
                      • 7434

                      #11
                      Everyone I've talked to about this has said to me "oh, what software are you using?", which surprises me. Learning from scratch, I've never seen any recommendations that I should go and buy any kind of web design program at all. In fact, it looks to be looked down upon.
                      The web is populated by everyday people who aren't programmers and need help creating web sites. Adobe marketing, along with others, make you believe you can't get anywhere without their software and that they'll make things easier for $600 or so. This is what makes Microsoft rich, too, but both ignore the fact that there are plenty of free tools that do the same job just as good, or better, and the human mind does a far better job than any automatic code generator that needs to guess your intentions.

                      Of course, you'll never learn from such things and you'll never learn how to debug problems either. It's like wanting to be a mathematician but letting a calculator do all the work. I was given a copy of Dreamweaver some years ago. I installed it to see what it was about but uninstalled it when I couldn't see the point.

                      Comment

                      • drhowarddrfine
                        Recognized Expert Expert
                        • Sep 2006
                        • 7434

                        #12
                        nearly every code editor has it’s own pros and cons (say, tag highlighting, syntax checking,
                        Bah. Editors for sissies.

                        Comment

                        • Dormilich
                          Recognized Expert Expert
                          • Aug 2008
                          • 8694

                          #13
                          Originally posted by drhowarddrfine
                          Bah. Editors for sissies.
                          I know, you use Notepad ;)

                          Comment

                          Working...