Solved

Doubled up

Posted on 2013-02-02
2
113 Views
Last Modified: 2013-02-03
Ive got a strange issue where the divs are duplicated up.

What I don't understand is why its duplicated, when I hover over the element, I get the child loading correctly, but with duplicated div:-
Issue
If I remove the line:-
left: -20px; 

Open in new window

The div is not duplicated, but I want it to come back a little to the left when hovered.

I don't understand why its duplicated :-S

I've put the page at jsfiddle as an example of whats happening.

Can anyone advise?
0
Comment
Question by:tonelm54
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
nickinthooz earned 500 total points
ID: 38847086
 <div id="divMenu">
    <div style="width:100%; height:35px; background-color: #849CC2;">
      <ul id="menu">
        <li><a href="#">Item 1</a>
          <div>
          Drop down Content
          </div> <-- was still open, I closed them.
        </li>
        <li><a href="#">Item 2</a>
          <div>
          Drop down Content
          </div> <-- was still open, I closed them.
        </li>
      </ul>
    </div>
    <div id="divContents" style="width:100%; height:200px; background-color: #DD8889; overflow-y: scroll; overflow-x: hidden;">
blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
    </div>
</div>

Open in new window


the div codes under your menu weren't closed.  Two open sets.  I closed them and it worked fine.
 <div>
Drop down Content
<div>

Open in new window

needed to be:
 <div>
Drop down Content
</div>

Open in new window


here's the fixed version:
http://jsfiddle.net/mQBNF/1/
0
 

Author Closing Comment

by:tonelm54
ID: 38848452
I had looked at them, and on the tutorial site I followed to get that part working, it doesn't close them. But it works now in the complete side of things, so :-)

Thank you
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question