Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
nav-list and using collapse
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Adam Reynolds  
View profile  
 More options Sep 12 2012, 9:28 am
From: Adam Reynolds <awjreyno...@gmail.com>
Date: Wed, 12 Sep 2012 06:28:35 -0700 (PDT)
Local: Wed, Sep 12 2012 9:28 am
Subject: nav-list and using collapse

Hi,
I'm trying to make a collapsible nav-list and this is where I have got to:
<ul class="nav nav-list">
<li class="nav-header">
<span>
<a href="/" title=""><i class="icon-home"></i>Home</a><span class="caret
pull-right" data-target="#test" data-toggle="collapse"></span>
<ul class="nav nav-list collapse in" id="test" >
<li><a href="/ticket_list.cfm" title="Show list of tickets">Open Tickets</a>
</li>
<li><a href="/account/" title="Edit user accounts">Accounts / Community</a>
</li>
</ul>
</span>
</li>

It almost works, the only issue being that the nav item that has the Home
link in it does not grey out on mouse over. If I remove the span then the
'caret' appears on the next line. Any ideas?

http://jsfiddle.net/awjreynolds/2Aucc/1/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Reynolds  
View profile  
 More options Sep 12 2012, 9:39 am
From: Adam Reynolds <awjreyno...@gmail.com>
Date: Wed, 12 Sep 2012 14:39:18 +0100
Local: Wed, Sep 12 2012 9:39 am
Subject: Re: nav-list and using collapse

Apologies that was terribly badly formatted:
<ul class="nav nav-list">
<li class="nav-header">
    <span>
        <a href="/" title=""><i class="icon-home"></i>Home</a>
        <span class="caret pull-right" data-target="#test" data-toggle=
"collapse"></span>
    </span>
    <ul class="nav nav-list collapse in" id="test" >
        <li><a href="/ticket_list.cfm" title="Show list of tickets">Open
Tickets</a></li>
        <li><a href="/account/" title="Edit user accounts">Accounts /
Community</a></li>
    </ul>
</li>
</ul>

http://jsfiddle.net/awjreynolds/2Aucc/3/

On Wed, Sep 12, 2012 at 2:28 PM, Adam Reynolds <awjreyno...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Adam Reynolds  
View profile  
 More options Sep 13 2012, 5:34 am
From: Adam Reynolds <awjreyno...@gmail.com>
Date: Thu, 13 Sep 2012 10:34:47 +0100
Local: Thurs, Sep 13 2012 5:34 am
Subject: Re: nav-list and using collapse

FIXED

To fix this issue I used the following css. Running example here
http://jsfiddle.net/awjreynolds/2Aucc/

.nav > li > span:hover {
text-decoration: none;
background-color: #EEE;

}

.nav > li > span {
display: block;
}

.nav-list > li > span> a {
text-decoration: none;
}

.nav-list > li > span{
margin-right: -15px;
margin-left: -15px;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav-list > li > span {
padding: 3px 15px;

}

On Wed, Sep 12, 2012 at 2:39 PM, Adam Reynolds <awjreyno...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »