943,749 Members | Top Members by Rank

Ad:
Feb 11th, 2009
0

Issues In IE

Expand Post »
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

HTML Syntax (Toggle Plain Text)
  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.
Similar Threads
Reputation Points: 11
Solved Threads: 2
Junior Poster
!Unreal is offline Offline
112 posts
since Dec 2007
Feb 11th, 2009
0

Re: Issues In IE

<a class="partdiv" href="{param}">{option}</a>
Reputation Points: 562
Solved Threads: 368
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009
Feb 11th, 2009
0

Re: Issues In IE

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>
Reputation Points: 37
Solved Threads: 1
Posting Whiz in Training
cmills83 is offline Offline
249 posts
since Jun 2004
Feb 17th, 2009
0

Re: Issues In IE

Div is a block tag. A is an inline tag. You can't put block tags inside inline tags.
Reputation Points: 730
Solved Threads: 181
Nearly a Senior Poster
MidiMagic is offline Offline
3,314 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: CSS questions
Next Thread in HTML and CSS Forum Timeline: 15 Very Important Steps





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC