Click here to Skip to main content
15,908,015 members

Comments by Salah Abualrob (Top 34 by date)

Salah Abualrob 11-Sep-16 15:35pm View    
i tried this
<pre lang="PHP">
echo "<script type=\"text/javascript\">
document.getElementById('MainDiv').style.length = 500;
var i = \"<!--?php echo $i;?-->\"
</script>";
?>
</pre>

but still not working .. i has no value and nothing change to length
echo $i; inside var i
Salah Abualrob 8-Sep-16 13:58pm View    
yes sure inside the mainDiv, all divs are inside the mainDiv
i tried to use min-height, but when the javascript code generates the divs, the height of the mainDiv does not change!
Salah Abualrob 8-Sep-16 5:46am View    
my problem is with the main div, suppose it's default height when there is no divs is 100px, when i add a new div, mainDiv height must increase 250px per row (each row has 3 divs), got it?
Salah Abualrob 8-Sep-16 5:28am View    
my problem is with the main div, suppose it's default height when there is no divs is 100px, when i add a new div, mainDiv height must increase 250px per row (each row has 3 divs), got it?
Salah Abualrob 24-Jan-15 14:55pm View    
surely :)