Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
it just displays the background image no ul command

What I have tried:

HTML
<title>SupZone-The Best Online Furniture Store



#mainpage {height:100%;width:100%;margin:none;}
#mainbody {height:100%;width:90%;margin:auto}
#header {height:60px;width:90%;border:2px solid black;font-size:50px }
#ul {background-color:brown;width:80%;height:40px;margin:auto;text-decoration:none; }









 

<div id="mainpage">
</div>
<div id="mainbody">
</div>
<div id="header">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Contact us</a></li>
</ul>
</div>
Posted
Updated 3-Mar-17 14:17pm
v2
Comments
Jochen Arndt 3-Mar-17 8:02am    
It has shown three list items here before your post has been fixed :)

However, the closing </title> tag is missing.
CHill60 3-Mar-17 8:08am    
Beat me to it - that is indeed the problem
Graeme_Grant 3-Mar-17 8:10am    
There is a lot more wrong with it...
Patrice T 3-Mar-17 8:16am    
this code is not a correct html page.

Your styles are not wrapped in a style tag; the page has no body; you're also missing closing tags...

You need to do the following:
HTML
<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title>SupZone-The Best Online Furniture Store</title>
    <style>
        #mainpage {height:100%;width:100%;margin:0;}
        #mainbody {height:100%;width:90%;margin:auto}
        #header {height:60px;width:90%;border:2px solid black;font-size:50px }
        #ul {background-color:brown;width:80%;height:40px;margin:auto;text-decoration:none; }
    </style>
</head>
<body>
    <div id="header">
        <ul>
            <li><a href="#">Home</a></li>
            <li><a href="#">About Us</a></li>
            <li><a href="#">Contact us</a></li>
        </ul>
    <div id="mainpage">
        <p>main page goes here</p>
    <div id="mainbody">
        <p>main body goes here</p>
    </div>
    </div>
</body>
</html>a

Your code needs a lot of work. It might be easier for you to work with an existing framework. Here is a framework with templates to get you started quickly: Bootstrap · The world's most popular mobile-first and responsive front-end framework.[^]
 
Share this answer
 
Well... there are problems there.
Start by closing your title tag - that way they rest of it might get processed.
 
Share this answer
 
The first problem is that your code is not an html file.

You should learn the structure of an html file.
W3Schools Online Web Tutorials[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900