There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Tag Cloud
access acer asus batch bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop lcd malware memory modem monitor motherboard network printer problem ram registry router slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
css problem or html?

Reply  
Thread Tools
Gordian's Avatar
Member with 51 posts.
 
Join Date: Aug 2004
Experience: Intermediate
09-Oct-2009, 04: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 1,044 posts.
 
Join Date: Sep 2007
Location: Spain
Experience: Adv PC, int HTML, bit PHP
10-Oct-2009, 03:15 AM #2
It is probably because you have the tag wrong try

Code:
<ul id="nav">
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




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



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 08:52 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.