Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Web Design & Development
Tag Cloud
access audio blue screen boot bsod connection crash dell desktop driver drivers dvd email error excel firefox hard drive hardware hijackthis internet keyboard laptop malware monitor motherboard network networking outlook problem processor ram recovery router screen slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
css problem or html?

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

 
Thread Tools
Gordian's Avatar
Member with 49 posts.
 
Join Date: Aug 2004
Experience: Intermediate
09-Oct-2009, 03:57 PM #1
css problem or html?
Hi, i've got a bit of an annoyance with a <ul-id="nav"> tag not being styled. As far as I know it is named correctly. I'd like to add some restrictions like no bullets and a hover for links specific to that id. I figure I'm missing something small, maybe an extra set of eyes would help me find something. Thanks,

CSS
Code:
*				{ margin: 0; padding: 0;}
body			{ color: white; font:14px Georgia, serif; background:#0a106a url(../images/bg.jpg) fixed no-repeat;}
a				{ text-decoration:none; }
#page-wrap		{ width: 724px; margin: 140px 0 0 180px; overflow: hidden;}
#main-content	{ float: left; background: rgba(10,14,68,.67); padding: 30px; width: 414px;}

#sidebar		{ float: right; width:220px; }
#nav		{ list-style-type: none;}
#nav li	{ font: 20px Georgia;}
#nav li a	{ color: #b3fba9;}
Code:
<body>
	<div id="page-wrap">
		<div id="main-content">
		<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
		</div>
		
		<div id="sidebar">
			
			<ul-id="nav">
		
				<li><a href="#">About Me</a></li>
				<li><a href="#">Blog</a></li>
				<li><a href="#">Community</a></li>
				<li><a href="#">Contact Me</a></li>
				<li><a href="#">Portfolio</a></li>
				
			</ul>
			
		</div>
		
	</div>


</body>
</html>
colinsp's Avatar
Computer Specs
Senior Member with 574 posts.
 
Join Date: Sep 2007
Location: Spain
Experience: Adv PC, int HTML, bit PHP
10-Oct-2009, 02:15 AM #2
It is probably because you have the tag wrong try

Code:
<ul id="nav">
Reply Bookmark and Share

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 02:06 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.