Issues In IE

Reply

Join Date: Dec 2007
Posts: 112
Reputation: !Unreal is an unknown quantity at this point 
Solved Threads: 2
!Unreal's Avatar
!Unreal !Unreal is offline Offline
Junior Poster

Issues In IE

 
0
  #1
Feb 11th, 2009
Ive got a button which works fine in FF but not in IE.

All it is is a hyperlinked div. But IE users can't click the button.

Anyone know a work around for this. Im not very experienced in cross-browser coding

  1. <html>
  2. <head>
  3. <style type="text/css">
  4. .partdiv {
  5. background-image: url('http://www.theflickzone.com/movieimages/part.png');
  6. padding-left: 75px;
  7. padding-top: 10px;
  8. font-family: Arial, Helvetica, sans-serif;
  9. font-size: 22px;
  10. font-weight: bold;
  11. color: #000;
  12. text-decoration: none;
  13. width: 150px;
  14. height: 50px;
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <a href="{param}"><div class="partdiv">{option}</div></a>
  20. </body>
  21.  
  22. </html>
Last edited by !Unreal; Feb 11th, 2009 at 4:21 am.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,396
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 170
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: Issues In IE

 
0
  #2
Feb 11th, 2009
<a class="partdiv" href="{param}">{option}</a>
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 247
Reputation: cmills83 is an unknown quantity at this point 
Solved Threads: 1
cmills83 cmills83 is offline Offline
Posting Whiz in Training

Re: Issues In IE

 
0
  #3
Feb 11th, 2009
yeah dont link divs, its not x-browser friendly,
add this:
HTML and CSS Syntax (Toggle Plain Text)
  1. .partdiv {
  2. position:relative;
  3. }
  4. .partdiv a {
  5. width:150px;
  6. height:50px;
  7. display:absolute;
  8. top:0;
  9. left:0;
  10. display:block;
  11. }

and the html
HTML and CSS Syntax (Toggle Plain Text)
  1. </head>
  2. <body>
  3. <div class="partdiv"><a href="{param}"></a></div>
  4. </body>
  5. </html>
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3,210
Reputation: MidiMagic has a spectacular aura about MidiMagic has a spectacular aura about 
Solved Threads: 165
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Nearly a Senior Poster

Re: Issues In IE

 
0
  #4
Feb 17th, 2009
Div is a block tag. A is an inline tag. You can't put block tags inside inline tags.
Daylight-saving time uses more gasoline
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum


Views: 550 | Replies: 3
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC