Not sure whats the cause, but the list won't nest properly

/* CSS Document */

* { 
	margin: 0;
	padding: 0;
	}
	
body {
	background-color:#333333;
	font-family:Arial, Helvetica, sans-serif;
	size: 2px;
	text-align:center;
	height: 100%;
	font-size:14px;
	}
	
div#page-wrap{
	width: 900px; /* to be change once finish*/
	height: 650px; /* to be change once finish*/
	margin: 0 auto; /*margin top to 0 and left to auto*/

	}	
	

.Banner{
	width: 775px;
	height: 182px;
	}	
		
#ulcontainer {
	position:relative;
	top: 0;
	left: 62px;
	}
	
#navcontainer ul{
	margin: 0;
	padding: 0;
	list-style-type: none;
	}
#Resume {
	background-color: #d9c3d0;
	text-align:left;
	margin-left: 63px;
	margin-right: 63px;
	border: 1;
	padding-left: 20px;
	padding-top: 30px;
	
}	
#navcontainer li {
	display:inline;
	}
	
a:link, a:active, a:visited { 
	display: block;
	float:left;
	padding-bottom: 4px;
	padding-top: 4px;
	padding-right: 44px;
	padding-left: 45px;
	margin-left: 1px; /*the gap between banner and navigation menu.*/
	background-color:#000000;
	color:#FFFFFF;
	text-decoration: none;
	}

#navcontainer a:hover{
	background-color:#000000;
	text-decoration:none;
	color:#FF66FF;
	border:groove;
	border-color:#FF00FF;
	}
.list {
	font-weight: bold;
	

}

/* Content*/

<body>
<div id="page-wrap">
  	<img src="Images/header.png" alt="Banner" class="Banner" />
    	<div id="ulcontainer">  
   		  <ul id="navcontainer">
        		<li>
            		<a href="Main Page.html">Home</a>
            	</li>
            		<li>
            			<a href="resume.html">Resume</a>
            		</li>
            			<li>
            				<a href="none">Pics</a>
            			</li>
            		<li>
            			<a href="none">Gals</a>
            		</li>
             	<li>
            		<a href="1">Contact Me</a>
            	</li>
       	  </ul>
 		</div>
	<div id="Resume">
    	     						<h3>Qualifications Summary</h3>
    		<ul>
        		<li>sample sampl sample sample</li>
                <li>sample sampl sample sample</li>
                <li>sample sampl sample sample </li>
                <li>sample sampl sample sample</li>
                <li>sample sampl sample sample</li>
                <li>sample sampl sample sample</li>
                <li><b>sample sampl sample sample</b>
                	<ul>
                		<li>sample sampl sample sample</li>
                  		<li>sample sampl sample sample</li>
                    </ul>
                </li>
    	    </ul>
    </div>
</div>

</body>

Nobody has an idea what the answer is?
//This code should be nested, but it doesn't work

<ul>
<li>sample sampl sample sample</li>
<li>sample sampl sample sample</li>
<li>sample sampl sample sample</li>
<li>sample sampl sample sample</li>
<li>sample sampl sample sample</li>
<li>sample sampl sample sample</li>
<li><b>sample sampl sample sample</b>
<ul>
<li>sample sampl sample sample</li>
<li>sample sampl sample sample</li>
</ul>
</li>
</ul>

//Output should be like this

  • Data Here
  • Data Here
  • Data Here
  • Data Here
  • Data Here
  • Data Here
  • Data Here
    • Indented Data
    • Indented Data

//but instead I got is like this:

  • Data Here
  • Data Here
  • Data Here
  • Data Here
  • Data Here
  • Data Here
  • Data Here
  • Indented Data
  • Indented Data

Anyone know the solution to my problem?

Your code is correct. The problem is the * in the css. Particularly the padding. With

* {
margin: 0;
padding: 0;
}

you've reset the padding of all elements to 0. By default, the browser adds padding-left to the second list. However, you've reset the padding to 0, so the list doesn't get the padding. Delete padding:0; from the * element css and you'll see your list get padded properly.

Thanks it work ^_^ +rep

errr... now my nav bar is messed up how can I work around it?

Change your css back to what you had before and then add this:

ul ul{
padding-left:20px
}

Adjust the padding to your needs.

Works like a charm thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.