473,378 Members | 1,382 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,378 software developers and data experts.

a href round div not working in ie7 and ie6

347 100+
i have the following div on a page the link works fine in ie8 and above but in 7 and 6 i do not get the hover finger and the link does not work

any ideas

Expand|Select|Wrap|Line Numbers
  1. <a href="news2.asp?id=386&voicetype=All" name="386">
  2. <div class="newsitem">
  3.          <div class="newstxtright"><img src="http://bytes.com/submit/images/newstext/rupert degas.png" border="0"></div>
  4.         <div class="artistboysnewsleft"><img src="http://bytes.com/submit/images/pix/rupertdegas.png" name="boysnewsimg" border="0" class="boysnewsimg">
  5.         <div class="boysnews">Rupert<br>Degas</div></div>
  6. </div></a>
this is the css for the divs on the page
Expand|Select|Wrap|Line Numbers
  1. /* start news */
  2. #newslist {
  3.     margin: 0 auto;
  4.     width: 840px;
  5.     top: 180px;
  6.     /* [disabled]background-color: #FFF; */
  7.     padding: 5px;
  8. }
  9. .newsitem {
  10.     width: 800px;
  11.     border:#ef007b;
  12.     border-style:solid;
  13.     border-width:thin;
  14.     height:155px;
  15.     margin-top: 15px;
  16. }
  17. .artistboysnewsright  {
  18.     /*border: 1px solid #f39617;*/
  19.     width: 85px;
  20.     height: 130px;
  21.     float: right;
  22.     margin-top: 7px;
  23.     margin-right: 7px;
  24.     margin-bottom: 7px;
  25.     margin-left: 7px;
  26.     padding-top: 10px;
  27.     text-align: center;
  28.  
  29. }
  30. .artistboysnewsleft  {
  31.     /*border: 1px solid #f39617;*/
  32.     width: 85px;
  33.     height: 130px;
  34.     float: left;
  35.     margin-top: 7px;
  36.     margin-right: 7px;
  37.     margin-bottom: 7px;
  38.     margin-left: 7px;
  39.     padding-top: 10px;
  40.     text-align: center;
  41.  
  42. }
  43. .newstxtleft {
  44.     float: left;
  45.     margin-top: 17px;
  46.     padding-left: 10px;
  47. }
  48. .newstxtright {
  49.     float: right;
  50.     margin-top: 17px;
  51.     padding-right: 10px;
  52. }
  53. .boysnews {
  54.     background-image: url(../images/newfrontpage/b.gif);
  55.     padding-top: 5px;
  56.     padding-bottom: 5px;
  57.     font-family: Arial, Verdana, sans-serif;
  58.     font-size: 11px;
  59.     font-weight:bold;
  60.     color: #000000;
  61.     text-decoration:none;
  62. }
  63. .girlsnews {
  64.     background-image: url(../images/newfrontpage/f.gif);
  65.     padding-top: 5px;
  66.     padding-bottom: 5px;
  67.     font-family: Arial, Verdana, sans-serif;
  68.     font-size: 11px;
  69.     font-weight:bold;
  70.     color: #000000;
  71.     text-decoration:none;
  72. }
  73. .kidsnews {
  74.     background-image: url(../images/newfrontpage/k.gif);
  75.     padding-top: 5px;
  76.     padding-bottom: 5px;
  77.     font-family: Arial, Verdana, sans-serif;
  78.     font-size: 11px;
  79.     font-weight:bold;
  80.     color: #000000;
  81.     text-decoration:none;
  82. }
  83. .boysnewsimg {
  84.     top: -9px;
  85.     width: 82px;
  86.     height: 82px;
  87. }
  88. .girlsnewsimg {
  89.     top: -9px;
  90.     width: 82px;
  91.     height: 82px;
  92. }
  93. .kidsnewsimg {
  94.     top: -9px;
  95.     width: 82px;
  96.     height: 82px;
  97. }
  98. /* end news */

this is the page in question
http://www.yaketyyak.co.uk/newpages/news.asp

thanks
Aug 9 '12 #1
2 2753
Frinavale
9,735 Expert Mod 8TB
You cannot put a <div> within an <a>.
Use a <span> instead and set the span's style to "display:block" so that it behaves like a <div>.

-Frinny
Aug 9 '12 #2
colinod
347 100+
ok i have changed it slightly and put the <a> within the outer <div>

Expand|Select|Wrap|Line Numbers
  1. <div class="newsitem">
  2. <a href="news2.asp?id=386&voicetype=All" name="386">
  3.          <span class="newstxtright"><img src="../images/newstext/rupert degas.png" border="0"></span>
  4.         <span class="artistboysnewsleft"><img src="../images/pix/rupertdegas.png" name="boysnewsimg" border="0" class="boysnewsimg">
  5.         <span class="boysnews">Rupert<br>Degas</span></span>
  6.         </a>
  7. </div>
still does not work though??
Aug 9 '12 #3

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

Similar topics

7
by: codeslayer | last post by:
Greetings to everyone in ‘forum-land': I have a problem that has plaguing me to no end. It is a CSS-related question, and I have not seen this question posted anywhere in forums or through...
13
by: Jerry Manner | last post by:
Hi I have a problem using the location.href("ProductL.htm") javascript code. Using this code on my system ( W98 SE, IE 6.0) is working correctly. But if a user has W2000 IE 5.0 it doesn't work....
3
by: Brian | last post by:
can someone PLEASEEEEEEEEEE tell me why this isn't working??? -------------------- function ------------------------ function goBlank(){ newlocation = "blank.asp";...
3
by: charley | last post by:
Hello, The appearance of the page should be for the main image, lpmap.jpg, to be on the bottom, (z-index: 1), with pictures, (image0.jpg - image9.jpg), and accompaning notes to appear on top,...
5
by: Ma³y Piotruœ | last post by:
Hello, (Sorry for my english.) I am new to HTML/JavaScript/CSS. I would like to ask for help with such a problem: I need to create a href link working like "back" button (I know this is not...
1
by: Darin Browne | last post by:
Here is my code created when a page loads the first time: string jScript = @" <script language='javaScript'> var pop = false;
10
by: Steel | last post by:
Hi at all, I'ld like to know what is the best CSS crossbrowser mean to round the angles of <DIV> without images. Regards and thank you very much in advance Steel
7
by: pavancognizant | last post by:
Hi, I am having a html table with lots of check box, and i am having a link in html on click of that i call a function and append all checkboxes with id value pair in href, not the problem is when...
10
by: Revathi Balakrishnan | last post by:
Hi All My" Frame .html " page is divided in to header and client frames and in my client frame i am loading "client.html" page, and this client .html is divided in to multiple frames, ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.