Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

css - I get a blank display 1

Status
Not open for further replies.

lupidol

Programmer
Apr 23, 2008
125
IL
Hi everyone,
Following is an HTML/CSS code I run. All I get is a blank view. Could anyone tell me please where I went wrong with my CSS (assuming there lays the problem)?
Thanks
Code:
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>xxx</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
        <style type="text/css">
             div#wrapper
            {
	     width: 100%;
	     height: 100%;
	     background-color: #e6d9ad;
	     border-radius:25px;
	    }		
        </style>
    </head>
<body>
    <div id="wrapper"></div>   
</body>
</html>
 
To make a child element occupy the full length of the viewport, the <html> and <body> elements MUST have a defined height or an explicit 100% height.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top