|
| |
<div> inside <a> question, and IE6 adding space below logo
View related threads:
(in this forum
| in all forums)
|
Logged in as: Guest
|
|
|
joy
Posts: 178 From: Gilbert AZ USA Status: offline
|
<div> inside <a> question, and IE6 adding s... - 7/9/2008 22:20:16
Hello, It's been a really long time since I've posted here - I'm glad this community is still thriving! Everyone here was always so helplul. It looks like I'm getting back into web design and I have a couple of questions on a new site I'm working on. Site: www.thekineticcompany.com #1. IE6 is putting a space under the logo, and shifting the div below it down. It's doing this on another site too, and I can't figure out why. Screenshot of the error: http://www.thekineticcompany.com/error.gif #2. I wanted specific <div> sections to have a hover effect, so I did this: <a><div>content here</div></a> for several divs so a uniform-sized square would change background and text colors when hovered. This is apparently not valid. I tried putting the <a> inside the <div>, but since my <div> contains <h1> and <p>, this apparently isn't valid either. I tried adding a <span> around it, and it's still showing as invalid. It seems to be working fine (in ie and firefox, anyways), but it bugs me that the page won't validate. What is the best way to do this while keeping the size of the hovered "square" consistent even though each div contains a different amount of text? Thanks in advance for the help! Joy
< Message edited by joy -- 7/9/2008 23:11:30 >
|
|
|
|
joy
Posts: 178 From: Gilbert AZ USA Status: offline
|
RE: <div> inside <a> question, and IE6 addi... - 7/20/2008 22:48:24
Thank you for the suggestions. display:block fixed the image problem.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|