Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
help with ul class formatting
Old 01-07-2008, 08:56 AM help with ul class formatting
Novice Talker

Posts: 7
Trades: 0
Hello,

I'm trying to accomplish this unordered list and having difficulty.


-------------------
Header

> Item1
> Item 2
View More...

Header
> Item1
> Item2
View More...
---------------------

Code:
.header li
{
    list-style: none;
}

.header li a {
    text-decoration: none;
}
}
.subprod li {

}
.subprod li a {
    text-decoration: none;
}





<ul class="header">
    <li>Home Purchase</li>
        <ul class="subprod">
            <li><a href="#">JUMBO</a></li>
            <li><a href="#">Fixed / ARM</a></li>
            <li><a href="#">Adjustable ARM</a></li>
            <li><a href="#">Stated Income</a></li>
            <li><a href="#">Interest Only</a></li>
            <li><a href="#">View More....</a></li>
        </ul>
     <li>Refinance</li>
        <ul class="subprod">
            <li><a href="#">Cash Out Refinance</a></li>
            <li><a href="#">Debt Consolidation</a></li>
            <li><a href="#">Fixed / ARM</a></li>
            <li><a href="#">View More....</a></li>
        </ul>
     <li>Home Equity Loan</li>
        <ul class="subprod">
            <li><a href="#">HELOC - Line of Credit</a></li>
            <li><a href="#">Home Equity Loan</a></li>
            <li><a href="#">High LTV's</a></li>
            <li><a href="">View More....</a></li>
        </ul>
</ul>
the child list items should have a list style but the parent should not.
I tried doing this with separate classes for parent and child list items and was not successful. Any suggestions.

I also want to be able to indent the last list item before the next parent list item.

Thanks
homerjay is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-07-2008, 09:08 AM Re: help with ul class formatting
Average Talker

Posts: 17
Trades: 1
Quote:
Originally Posted by homerjay View Post
Hello,

I'm trying to accomplish this unordered list and having difficulty.


-------------------
Header

> Item1
> Item 2
View More...

Header
> Item1
> Item2
View More...
---------------------

the child list items should have a list style but the parent should not.
I tried doing this with separate classes for parent and child list items and was not successful. Any suggestions.

I also want to be able to indent the last list item before the next parent list item.

Thanks
Code:
.header li
{
    list-style: none;
}

.header li a {
    text-decoration: none;
}
.header ul li {
    list-style: inherit;
}




<ul class="header">
    <li>Home Purchase</li>
        <ul>
            <li><a href="#">JUMBO</a></li>
            <li><a href="#">Fixed / ARM</a></li>
            <li><a href="#">Adjustable ARM</a></li>
            <li><a href="#">Stated Income</a></li>
            <li><a href="#">Interest Only</a></li>
            <li><a href="#">View More....</a></li>
        </ul>
     <li>Refinance</li>
        <ul>
            <li><a href="#">Cash Out Refinance</a></li>
            <li><a href="#">Debt Consolidation</a></li>
            <li><a href="#">Fixed / ARM</a></li>
            <li><a href="#">View More....</a></li>
        </ul>
     <li>Home Equity Loan</li>
        <ul>
            <li><a href="#">HELOC - Line of Credit</a></li>
            <li><a href="#">Home Equity Loan</a></li>
            <li><a href="#">High LTV's</a></li>
            <li><a href="">View More....</a></li>
        </ul>
</ul>
Let me know if that's what you wanted.
Majic is offline
Reply With Quote
View Public Profile
 
Old 01-07-2008, 11:33 AM Re: help with ul class formatting
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
That is still incorrect:

Quote:
<ul class="header">
<li>Home Purchase
<ul class="subprod">
<li><a href="#">JUMBO</a></li>
<li><a href="#">Fixed / ARM</a></li>
<li><a href="#">Adjustable ARM</a></li>
<li><a href="#">Stated Income</a></li>
<li><a href="#">Interest Only</a></li>
<li><a href="#">View More....</a></li>
</ul>
</li>
<li>Refinance
<ul class="subprod">
<li><a href="#">Cash Out Refinance</a></li>
<li><a href="#">Debt Consolidation</a></li>
<li><a href="#">Fixed / ARM</a></li>
<li><a href="#">View More....</a></li>
</ul>
</li>

<li>Home Equity Loan
<ul class="subprod">
<li><a href="#">HELOC - Line of Credit</a></li>
<li><a href="#">Home Equity Loan</a></li>
<li><a href="#">High LTV's</a></li>
<li><a href="">View More....</a></li>
</ul>
</li>
</ul>
The top level <li> item must encompass the sub-menu ul.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-07-2008, 08:02 PM Re: help with ul class formatting
Average Talker

Posts: 17
Trades: 1
My bad. I wasn't looking at the html part.
All you really need to do is change this part of the css and as LadynRed said, your html code to be valid and it should work fine.
Code:
.subprod li {
    list-style: inherit;
}
Majic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to help with ul class formatting
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13606 seconds with 12 queries