473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Why aren't these links functional in IE?

31
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:
Expand|Select|Wrap|Line Numbers
  1. <a href="/publish/picture-book/options.html" class="highlightit" title="blah">
  2. <div class="publish-box" id="publish-childrens">
  3. <img src="/images/white.gif" height="100%" width="100%">
  4. </div>
  5. </a>
And here's the relevant CSS:
Expand|Select|Wrap|Line Numbers
  1. .highlightit img {
  2.     filter:progid:DXImageTransform.Microsoft.Alpha(opacity=20);
  3.     opacity: 0.2;
  4. }
  5.  
  6. .highlightit:hover img {
  7.     filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);
  8.     opacity: 0;
  9. }
  10.  
  11. .publish-box {
  12.     border:2px solid gray;
  13.     width:650px;
  14.     margin:20px 0;
  15.     border:1px solid #bcbcbc;
  16.     -webkit-border-radius: 6px;
  17.     -moz-border-radius: 6px;
  18.     border-radius: 6px;
  19.     height:168px;
  20.     box-shadow: 0 5px 5px -3px #999999;
  21.     -moz-box-shadow: 0 5px 5px -3px #999999;
  22.     -webkit-box-shadow: 0px 3px 5px #999999;
  23.     overflow:hidden
  24. }
  25.  
  26. #publish-childrens { background-image:url('images/publish-childrens.jpg') }
  27.  
  28.  
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.
Feb 23 '10 #1
12 1832
zorgi
431 Expert 256MB
@seegoon
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:
Expand|Select|Wrap|Line Numbers
  1.  <a><div><img /></div></a>
  2.  
I would try to remove DIV from between <a></a> and do all my styling on actual "a" tag to get this structure:
Expand|Select|Wrap|Line Numbers
  1. <a><img /></a> 
  2.  
or if you prefer on divs:
Expand|Select|Wrap|Line Numbers
  1.  <div><a><img /></a></div>
  2.  
Feb 23 '10 #2
seegoon
31
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.
Feb 23 '10 #3
zorgi
431 Expert 256MB
I went back to your site to check that popup issue again and it seems you sorted it out :)
Feb 23 '10 #4
Dormilich
8,658 Expert Mod 8TB
PS. (for future works) block elements (like <div>) are not allowed inside inline elements (like <a>)
Feb 23 '10 #5
drhowarddrfine
7,435 Expert 4TB
I've done the whole thing by hand, which might have been a bit foolhardy
I have never coded a site any other way.
Feb 23 '10 #6
seegoon
31
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.
Feb 23 '10 #7
Dormilich
8,658 Expert Mod 8TB
@seegoon
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).
Feb 23 '10 #8
zorgi
431 Expert 256MB
@Dormilich
Curios. What editor/s are you using Dormilich?
Feb 23 '10 #9
Dormilich
8,658 Expert Mod 8TB
SubEthaEdit (because I can edit files on my server on the fly and on the fly PHPing) and sometimes Geany.
Feb 23 '10 #10
drhowarddrfine
7,435 Expert 4TB
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.
Feb 23 '10 #11
drhowarddrfine
7,435 Expert 4TB
nearly every code editor has it’s own pros and cons (say, tag highlighting, syntax checking,
Bah. Editors for sissies.
Feb 23 '10 #12
Dormilich
8,658 Expert Mod 8TB
@drhowarddrfine
I know, you use Notepad ;)
Feb 23 '10 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Irmen de Jong | last post by:
QOTW: "What can I do with Python that I can't do with C#? You can go home on time at the end of the day." -- Daniel Klein "Python lends itself to playing with it and to discussing the merits of...
0
by: Cameron Laird | last post by:
QOTW: "Rule of thumb: if you can't find it, it's in section 2 of the library docs." John J. Lee http://groups.google.com/groups?selm=87he1wxfxs.fsf%40pobox.com "Monte Carlo sampling is no way...
0
by: Emile van Sebille | last post by:
QOTW: "Oddly enough it is in Python that I have had the most fun programming. It is in Python that I find myself not only the most expressive but the most elegant in my programming. In Python my...
0
by: Josiah Carlson | last post by:
QOTW: "XML with elementtree is what makes me never have think about XML again." -- Istvan Albert "'Plays well with others' was a strong motivator for Python's design, and that often means...
2
by: Ken Fine | last post by:
I would like some guidance regarding a "content scanner" I'm trying to build. This ASP widget will automatically scan remote web sites for certain kinds of content using a screen scraping component...
56
by: Paddy | last post by:
A work colleague circulated this interesting article about reducing software bugs by orders of magnitude: http://www.spectrum.ieee.org/WEBONLY/publicfeature/sep05/0905ext.html Some methods they...
177
by: C# Learner | last post by:
Why is C syntax so uneasy on the eye? In its day, was it _really_ designed by snobby programmers to scare away potential "n00bs"? If so, and after 50+ years of programming research, why are...
60
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
0
by: Jack Diederich | last post by:
QOTW: "being able to cook an egg" - Guido Van Rossum in response to the question, "What do you think is the most important skill every programmer should posses?" "I am asking for your...
15
by: Lorenzo Stella | last post by:
Hi all, I haven't experienced functional programming very much, but now I'm trying to learn Haskell and I've learned that: 1) in functional programming LISTS are fundmental; 2) any "cycle" in FP...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.