0

Can someonehelp me to fix that dropdown menu that this site has neowin.net?

So far I have this; itbataljonen.com/test/ (Hover over "News")

What I can't figure out, is when i hover over for instance "News" -> "Apple", there should come some news with pictures, and they change if I hover over "Microsoft" and so on.

Could this be done via CSS or HTML?

To download the source files, just go to www.ITbataljonen.com/test and click Download Source in the navigation bar.

Can someone help me? :) (Sorry for my bad english..)

2
  • Please add corresponding code snippets to your post. Commented Mar 12, 2015 at 9:51
  • Yes. just use display:block and display:none with animation. Commented Mar 12, 2015 at 9:52

2 Answers 2

1

Working Fiddle

As you asked using css. Yes by using css it is possible to hide and show another div. You need to simply write hover event. This applies to "apple" and "microsoft" also.

Here is the css:

#a:hover + #b {
 background: #ccc;
    visibility: visible;
}
#b{
   visibility: hidden;
}


Sign up to request clarification or add additional context in comments.

Comments

0

This can be done using hover property in CSS. Read this question to understand more.

And in your case, the images can be in a <ul id="news_images1"></ul> and you can set css hover property to animate this list of images. Remember, there are multiple ways to solve this issue. You can also checkout Jquery hover.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.