Click here to Skip to main content
15,920,217 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Dropdown menu unable to be displayed Pin
ZurdoDev25-Oct-16 2:07
professionalZurdoDev25-Oct-16 2:07 
AnswerRe: Dropdown menu unable to be displayed Pin
dell-gl62m31-Oct-16 16:44
dell-gl62m31-Oct-16 16:44 
Hello, thank you for replying. I solved the issue. As for result here was the coding i used :

ASP.Net html
HTML
<ul class="menu">
    <li><a href="#">Home</a></li>
    <li><a href="#">Daily Upload</a></li>
	<li><a href="#">Report
		<img id="arrow" style="float: right; padding-top: 5px;" src="source/arrow.gif" /></a>
		<ul>
            <li><a href="#">Daily report by branch</a></li>
            <li><a href="#">Monthly report</a></li>
        </ul>
    </li>
    <li><a href="#">Logout</a></li>
</ul>

CSS
CSS
ul.menu > li {
    position: relative;
    left: -40px;
    width: 15%;
    list-style-type: none;
    float: left;
}
ul.menu ul{
     display: none;
     position: relative;
     list-style-type: none;
     z-index: 10;
}
ul.menu > li:hover ul {
    display: block;
    background-color: #fff;
    padding: 0;
    margin: 0;
}
li a {
    border: 0.5px solid #bdbdbd;
    display: block;
    text-align: left;
    padding: 5px 25px;
}
li a:hover {
    background-color: #f44336;
    color: white!important;
    font-weight: bold;
}
li a.active {
    background-color: #f44336!important;
    color: white!important;
    font-weight: bold;
}

Javascript
JavaScript
$(function () {
    var selector = '.menu li a';

    $(selector).on('click', function () {
        $(selector).removeClass('active');
        $(this).addClass('active');
    });
});

Questionfor developing website, is it essential to divide the area into some portion in defining frame set. Pin
Member 1279387014-Oct-16 5:43
Member 1279387014-Oct-16 5:43 
AnswerRe: for developing website, is it essential to divide the area into some portion in defining frame set. Pin
ZurdoDev14-Oct-16 6:01
professionalZurdoDev14-Oct-16 6:01 
AnswerRe: for developing website, is it essential to divide the area into some portion in defining frame set. Pin
Richard Deeming14-Oct-16 6:07
mveRichard Deeming14-Oct-16 6:07 
AnswerRe: for developing website, is it essential to divide the area into some portion in defining frame set. Pin
David Mujica17-Oct-16 7:25
David Mujica17-Oct-16 7:25 
QuestionWhich java Concepts are important for Learning Android Pin
Member 122291026-Oct-16 11:12
Member 122291026-Oct-16 11:12 
AnswerRe: Which java Concepts are important for Learning Android Pin
Richard MacCutchan6-Oct-16 23:47
mveRichard MacCutchan6-Oct-16 23:47 
AnswerRe: Which java Concepts are important for Learning Android Pin
ZurdoDev14-Oct-16 6:02
professionalZurdoDev14-Oct-16 6:02 
AnswerRe: Which java Concepts are important for Learning Android Pin
Member 1222910214-Oct-16 8:19
Member 1222910214-Oct-16 8:19 
QuestionCustom Errors Pin
TML6-Oct-16 8:00
TML6-Oct-16 8:00 
AnswerRe: Custom Errors Pin
TML6-Oct-16 8:28
TML6-Oct-16 8:28 
GeneralRe: Custom Errors Pin
TML6-Oct-16 9:10
TML6-Oct-16 9:10 
Questionwhere can I find these css files? Pin
samflex4-Oct-16 6:16
samflex4-Oct-16 6:16 
AnswerRe: where can I find these css files? Pin
Richard Deeming4-Oct-16 11:14
mveRichard Deeming4-Oct-16 11:14 
GeneralRe: where can I find these css files? Pin
samflex5-Oct-16 11:23
samflex5-Oct-16 11:23 
Questionwebsite db Pin
Member 1276809629-Sep-16 18:37
Member 1276809629-Sep-16 18:37 
AnswerRe: website db Pin
Nathan Minier30-Sep-16 1:21
professionalNathan Minier30-Sep-16 1:21 
QuestionDrag And Drop Into An Iframe Pin
MadDashCoder28-Sep-16 12:15
MadDashCoder28-Sep-16 12:15 
QuestionJQuery Ajax error Pin
Member 815484516-Sep-16 1:05
Member 815484516-Sep-16 1:05 
GeneralRe: JQuery Ajax error Pin
Richard Deeming16-Sep-16 2:49
mveRichard Deeming16-Sep-16 2:49 
GeneralRe: JQuery Ajax error Pin
Member 815484516-Sep-16 6:40
Member 815484516-Sep-16 6:40 
QuestionRe: JQuery Ajax error Pin
ZurdoDev21-Sep-16 7:43
professionalZurdoDev21-Sep-16 7:43 
QuestionExposing API VS Stored Procedure Pin
Java Lead31-Aug-16 4:30
Java Lead31-Aug-16 4:30 
AnswerRe: Exposing API VS Stored Procedure Pin
Richard MacCutchan31-Aug-16 4:45
mveRichard MacCutchan31-Aug-16 4:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.