Jump to content

Div Region Acting Like Unordered List Item Link From A Different Region on Hover!


hyliandanny

Recommended Posts

I'm confused by a behavior I'm seeing when I create a list of links in the navigation section, though. I hope this post isn't governed by HTML...

 

 

------- HTML code follows -------

 

<div id="centerDoc">

 

<h1>The Main Heading</h1>

 

 

Go to the Web Designers Killer Handbook home page and grab the

practice HTML page that we will used as the starting template for this

tutorial. You can find it under the heading: 'To create the practice HTML

page do the following:'.

 

Follow the instructions there and create your basic HTML page

... and do it now!

 

</div>

 

 

<div id="navigation">

 

<h2>The Main navigation</h2>

 

<ul>

<li><a href="http://www.dannyfavela.com">My site!</li>

<li><a href="http://www.homestarrunner.com/">I need to catch up with this...</li>

<li><a href="http://maddox.xmission.com/">Logic is manly!</li>

</ul>

 

</div>

 

------- HTML code has ended -------

 

Now, that works fine. You'll notice that my "navigation" section follows after my "centerDoc" section. This is because if I have the navigation section outlined first, then the entire "centerDoc" div becomes a hyperlink! Text or not, it will link to the last item in the unordered list and will have the CSS activate for the last li when I hover over the centerDoc area. It's as if I were hovering over the li itself!

 

I'd love any insight you might have as to why this is -- even if it's just "You did something wrong, Danny".

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...