I have two divs
on my page, one class="rodape"
and another class="content"
.
The first is the footer of the page, and adjusts its position relative to bottom
of the fixed contents of the page without problems.
However, the second div
loads dynamic content (by checking Javascript
, displayed at the end of the question). If the content is equal to or less than the fixed content, no problem. But if it is larger, the div
ropadé does not move accordingly.
Hereistheexcerptofcss
foreachelement:
.rodape{background-color:#013852;height:380px;width:100%;margin-top:30px;position:absolute;}.content{display:none;float:right;margin-right:5%;width:35%;margin-top:2px;padding-left:5%;padding-bottom:20px;border-left:#CCCsolid1px;}
Thedivcontent
isinitiallydisplay:none
,becauseitdependsonthevideofinishingactionontheside(theleftsideofthescreenhasaplayer)tobedisplayed:
<script>varmyVideo=document.getElementById("myVideo");
function endFunction() {
myVideo.width = 495;
myVideo.height = 324;
document.getElementById('content').style.display = "inline-block";
}
function playFunction() {
myVideo.width = 720;
myVideo.height = 445;
document.getElementById('content').style.display = "none";
}
</script>
And the table that is displayed is not exactly dynamic (it is inserted in HTML
initially), but its display depends on a PHP
query, something like this:
<?php
switch($r['tipo_resposta']){
case '1': //exibe a tabela
break;
case '2': //exibe um input text
break;
default:
}
?>