Solved

Doubled up

Posted on 2013-02-02
2
110 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
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
align Linkedin sign to the right page 5 35
Not seen Link button 5 37
How to position loader with CSS 3 36
Place text over image using CSS 6 43
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…

786 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