[CSS / HTML] ul volledige breedte van div

Pagina: 1
Acties:

  • jvaneijk
  • Registratie: Mei 2003
  • Laatst online: 29-05 12:10
Beste mensen.

Ik ben bezig met een website en wil mijn ul over de hele breedte van mijn div krijgen. in FF doet hij dat allemaal heel erg goed maar in IE7 niet. Ik heb al lopen zoeken op google en hier. het is een simpele UL geen anchors erin ofzo.

mijn code is nu zo

HTML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div class="main_content">
                                    <div class="header_content"></div>
                                    <p class="yellow">CTM&#8217;s close relationship with carefully selected brokerage firms stands for a discrete and balanced portfolio setup for individuals</p>
                                    <h1>services</h1>
                                    <hr class="gray" />
                                    <h2>Private Foundations and Trusts</h2>
                                    <p>Private Foundations and Trust often serve as ideal solutions to a range of complex personal and corporate 
                                    situations due to their devolved ownership, flexible construction and confidentiality benefits.
                                    </p>
                                    <p>From tax and estate planning for private clients to ultimate beneficiary&#8217;s identity solutions in more vulnerable 
                                    holding structures and formation and management of both, CTM&#8217;s experience and know-how in this field is the 
                                    key for success for our clients in achieving their goals, from tax efficiency to asset protection.</p>
                                    <p>Each client&#8217;s specific requirement is held against the blue print of all feasible formation and management 
                                    options, including:</p>
                                    <ul>
                                        <li>Various forms of Trusts in different jurisdictions</li>
                                        <li>Private Foundations in different jurisdictions</li>
                                    </ul>
                                    <p>Personal and corporate efficiency demands are often covered by the many solutions Private Foundations and 
                                    Trusts have to offer, such as:</p>
                                    <ul>
                                        <li>Asset Protection</li>
                                        <li>Succession Planning</li>
                                        <li>Creditor Protection</li>
                                        <li>Confidentiality</li>
                                        <li>Tax Planning</li>
                                    </ul>
</div>


Cascading Stylesheet:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
div.main_content ul {
    margin: 0px;
    padding: 0px;
    list-style-type: none;
    margin-bottom: 15px;
    display:block;
    width: 100%;
}

div.main_content li {
    padding-left: 36px;
    margin-bottom: 1px;
    height: 20px;
    line-height: 20px;
    background: #f9ef91 url('../images/layout/vert_line.jpg') no-repeat 20px top;
    display:block;
}


wat ik dus wil is dat de ul in IE7 over de hele breedte van die maincontent loopt. als er anchors instaan is het geen probleem dan is het makkelijk maar zonder werkt niet.

iRacing Profiel