box model

kamakamafruite

New Member
hello,

Im in my 1ste year multimedia.
And in 3 days we have our first big test.
I understand most of the stuff we have to learn, but I still don't get the "box model".

so is a box model only for the lay out and what is the green part of this box model?


(It's a terrible teacher...)
we learned this code box model:
--------------------------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl">



<head>
<title>tester</title>
<style type="text/css">

#inhoud {
background-color: pink; color: red;
display: inline-block;
height:100px;
padding:50px;
margin: 50px;
border:1px solid red;

width: 1220px;
}


</style>
</head>


<body>

<div style="background-color: purple">


<div align="center">
<a id="inhoud"> <strong>u moeder</strong></a>


</div>
</body>



</body>


</html>


--------------------------------------------------------------------------------------



grtz
 

smoovo

New Member
First, Box Model made for layouts, and that is also the green part, clean. To read more click here, or here.

Second, you missed closing div, and you doubled your closing body. ;)

- Enjoy.
 
Top