Note that there are some explanatory texts on larger screens.

plurals
  1. POdiv inside wrapper div not aligning bottom
    primarykey
    data
    text
    <p>I´m having trouble getting this solved, though it must be pretty simple thing...</p> <p>I have a div wrapper containing other div elements on my page. All are aligned using <code>margin-top</code> in <code>px</code>; but the last one (footer) I need it to be <code>margin-bottom:0px</code>, so that it shows at the bottom of the wrapper, but that´s not working: the footer shows always on top of the page.</p> <p>I went to other align issues here, tried giving <code>position: absolute</code> to the footer and <code>position:relative</code> to the wrapper; didn´t work. I tried using % heights and min-height also...but still the footer on top</p> <p>I´m getting a bit frustrated with this :(</p> <p><strong>CSS :</strong></p> <pre><code>body { margin: 0px; background-repeat: repeat; background-image: url(images/modulo-pattern-grey-light.gif); } #body-quienes { height: 800px; } #pagina { height: 720px; margin: 0 auto; background: #fff url(images/footer.gif) left bottom no-repeat; width: 980px; box-shadow: 4px 4px 5px #999; } .header { position: absolute; margin-top: 0px; margin-bottom: 0 px; margin-right: auto; margin-left: auto; height: 70px; width: 980px; margin: 0px; background-image: url(images/header.gif); } .menu_container{ position: absolute; float: left; width: 270px; margin-top: 220px; } .main_menu ul { padding: 0px; margin:0px; list-style-type: none; } .main_menu ul li { font-family:Arial, Helvetica, sans-serif; text-transform: uppercase; font-size:11px; letter-spacing:4px; text-align:right; line-height:35px; list-style-type:none; } .main_menu ul li a { padding-right: 25px; text-decoration:none; color:#999; display: inline-block; } .main_menu ul li a.selected { color: #bc4c9b; font-weight:bold; background: url(images/circle.gif) right center no-repeat; } .main_menu ul li a:hover { text-decoration:none; color:#999; font-weight:bold; background:url(images/circle_grey.gif) right center no-repeat; } .quienes_pic{ position: absolute; height: 259px; width: 174px; margin-left: 306px; margin-top: 230px; background-image: url(images/san.jpg); } .quienes_text{ position: absolute; padding-left: 25px; border-left: 2px dotted #ccc; width: 395px; height: 360px; margin-left: 510px; margin-top: 230px; font-family:Arial, Helvetica, sans-serif; font-size:12px; color: #bc4c9b; line-height:20px; content-left-padding: 25px; } .footer { position:absolute; margin-bottom: 0px; margin-left: 490px; width: 460px; height: 98px; margin-right: 30px; background-color: #bc4c9b; } </code></pre> <p><strong>HTML :</strong></p> <pre><code>&lt;body id="body-quienes"&gt; &lt;div id="pagina"&gt; &lt;div class="header"&gt;&lt;/div&gt; &lt;div class="logo"&gt;&lt;/div&gt; &lt;div class="flashanim"&gt;&lt;/div&gt; &lt;div class="menu_container"&gt; &lt;div class="main_menu"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="index.html"&gt;Home&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a class="selected" &gt;Quiénes Somos&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="consultoria.html"&gt;Consultoría&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="capacitacion.html"&gt;Capacitación&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="academico.html"&gt;Académico / Artículos&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="alianzas.html"&gt;Alianzas&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="proyectos.html"&gt;Proyectos&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="contacto.html"&gt;Contacto&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="quienes_pic"&gt;&lt;/div&gt; &lt;div class="quienes_text"&gt;Main Text&lt;/div&gt; &lt;div class="footer"&gt;&lt;/div&gt; &lt;/div&gt;​ </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload