0

I'm having a big trouble... i cant make a div grow with content... i've got this HTML to fix it here... but i cant do that... can someone help me with this...??

I Uploaded the link here: http://efdutra.com/help

The div that i need to grow, well.. you will see the Lorem Ipsum getting over the footer... :p

There is some part of the html:

 <div id="boxes">
    <div id="boxFinal">
        <div id="linksBoxFinal">
            <ul>
                <a href="#"><li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed massa felis, accumsan eget mattis sed</li></a>
                <a href="#"><li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed massa felis, accumsan eget mattis sed</li></a>
                <a href="#"><li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed massa felis, accumsan eget mattis sed</li></a>
                <a href="#"><li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed massa felis, accumsan eget mattis sed</li></a>
                <a href="#"><li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed massa felis, accumsan eget mattis sed</li></a>
                <a href="#"><li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed massa felis, accumsan eget mattis sed</li></a>
                <a href="#"><li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed massa felis, accumsan eget mattis sed</li></a>
                <a href="#"><li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed massa felis, accumsan eget mattis sed</li></a>
                <a href="#"><li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed massa felis, accumsan eget mattis sed</li></a>
            </ul>
        </div>
        <img id="barraFinal" src="img/barraBoxFinal.png" />
    </div>
</div>

And here the css:

 #boxes{
margin:0;
padding:0;
position:relative;
float:left;
height: 100%;
width: 100%;
overflow: none;
 }
 #boxFinal{
margin:15px 0 0 8px;
padding:0;
float:left;
position:relative;
width:100%;
max-height:100%;
overflow:inherit;
   }

Can someone please help me...?

efdutra
  • 59
  • 1
  • 10

3 Answers3

2

Having played around with your styles I see a lot of things wrong. Firstly you do not need to float everything left. next you need to add lis to around you anchor tags in the ul. third you need to remove the absolute positioning of #lineBoxFinal. If you use the following styles (replacing your existing ones) then the footer should work properly

//line 241
#linksBoxFinal ul {
    margin: 5px 0 35px 15px;
    z-index: 3;
}

//line 262
#barraFinal {
    position: relative;
    margin: 0 110px;
    z-index: 2;
    clear: both;
}
Pete
  • 57,112
  • 28
  • 117
  • 166
1

Thats because position:absolute on div[.linksBoxFinal]>ul

Thats would be in #linksBoxFinal ul on line 241 in your style.css

. .

try this:

<ul style="position:relative;">

(also, remove the not so needed margin bottom)

Raheel Hasan
  • 5,753
  • 4
  • 39
  • 70
0

as to your question about putting an li inside an anchor, i believe the answer is no. Anchors cannot house block level elements.

Ghost Echo
  • 1,997
  • 4
  • 31
  • 46