give css for for div , it should be occupy 90% of screen in any size of monitor
views:
75answers:
4+1 Effective! Even centers it.
amphetamachine
2010-05-12 17:58:36
nice got it man..
Ayyappan.Anbalagan
2010-05-12 18:01:16
+2
A:
<head>
<style type="text/css">
.myClass{
width: 90%;
}
</style>
</head>
<body>
<!-- ... -->
<div class="myClass"></div>
<!-- ... -->
</body>
Or,
<div style="width: 90%;"></div>
But dude, seriously, check out the W3C's CSS2 reference manual and at least try to find the answer by yourself.
amphetamachine
2010-05-12 17:57:57