Question about divs and HTML

please someone tells me ,how can we creat 100%div in order to use html tages

Welcome to th forums @Ali_Hussain.

I’ve moved your question into a new topic of its own. (You should always start a new topic for a new question, rather than try to resurrect an old discussion on a slightly different subject.)

I’m sorry, but I don’t understand what you’re asking. Please would you explain in a little more detail what it is you are trying to achieve, and what you need help with.

As TechnoBear said above we need more information on your problem as there are a number of different methods of achieving a 100% effect but all depend on the requirements.

Here is a simple way to achieve 100% height (*if that is what you were after).

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
html,body{
	height:100%;
	margin:0;
	padding:0;	
}
.wrap{
	display:table;/* ie8 + */
	width:100%;
	max-width:980px;
	margin:auto;
	background:red;
	height:100%;	
}
</style>
</head>

<body>
<div class="wrap">100% high</div>
</body>
</html>

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.