85
rated 0 times
[
88]
[
3]
/ answers: 1 / hits: 43020
/ 14 Years ago, thu, october 21, 2010, 12:00:00
I cannot seem to get this script to work. Can anyone please help? The DIV's width is not defined. It just stretches across the whole page.
<html>
<head>
<style type=text/css>
#box{
height:100px;
border:3px;
border-style:solid;
border-color:#000;
}
</style>
<script>
document.getElementById('box').style.width=10px;
</script>
</head>
<body>
<div id=box></div>
More From » css