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
ul list flush to the left side of div
Old 01-08-2008, 11:24 PM ul list flush to the left side of div
Novice Talker

Posts: 7
Trades: 0
Hello,

I want to have my unordered list flush to the left side of my div box. I tried setting padding-left and margin-left to 0 px but it didn't work. Any suggestions.


Code:
#ourproducts {
    position:absolute;
    left:20px;
    top:686px;
    width:260px;
    height:350px;
    z-index:11;
    visibility: visible;

.prodheader li
{
    list-style-type: none;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}
.subprod li {
    list-style: inherit;
    font-weight: normal;
    list-style-image: url(../cssimg/liststyle.jpg);
    font-size: 14px;
}
.subprod li a {
    text-decoration: none;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
}
.viewmore li {
    list-style: none;
    font-weight: normal;
    padding-left: 10px;
}
.viewmore li a {
    color: #00FF00;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: underline;
}



<div id="ourproducts">
<ul class="prodheader">
<span class="headergreen">Our Products</span>
    <li>Home Purchase</li>
        <ul class="subprod style7">
          <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>
                <ul class="viewmore">
                    <li><a href="#">View More....</a></li>
                </ul>
        </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>
                            <ul class="viewmore">
                    <li><a href="#">View More....</a></li>
                </ul>
        </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>
                            <ul class="viewmore">
                    <li><a href="#">View More....</a></li>
                </ul>
        </ul>
</ul>  
</div>
homerjay is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-08-2008, 11:51 PM Re: ul list flush to the left side of div
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
That's because you're using position: absolute. You can't change margins when you do that. You can either use position: absolute left; or take position: absolute out and change margins.
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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


Last edited by serandfae; 01-08-2008 at 11:54 PM..
serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Reply     « Reply to ul list flush to the left side of div
 

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 1.10286 seconds with 12 queries