CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 11th, 2012, 10:52 AM
Jason_maybe Jason_maybe is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 1 Jason_maybe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 2 sec
Reputation Power: 0
Issue with list in HTML and CSS

Hoping someone can help me out. This seem pretty simple but I am having the hardest time. I am trying to create a horizontal list and need to use the nav and class attributes and this is what I have so far:

In my HTML file:
<nav>
<ul class="horizontallist">
<li><a href="#">Home</a></li>
<li><a href="#">Courses</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Terms of Use</a></li>
<li><a href="#">Feedback</a></li>
<li><a href="#">Help</a></li>
</ul>
</nav>

In my CSS file:
.horizontallist li {
display: inline;
font-family: 'Century Gothic MS', sans-serif;
font-size: 14px;
font-weight: bold;
letter-spacing: 3px;
line-height: 20px;
text-decoration: none;
}

For some reason my text-decoration will not remove the underlines from the links on the HTML page. Any suggestions would be great. Thank you,

Jason

Reply With Quote
  #2  
Old September 11th, 2012, 11:20 AM
DonR DonR is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Posts: 494 DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)DonR User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 29722 Folding Title: Starter FolderFolding Points: 29722 Folding Title: Starter Folder
Time spent in forums: 2 Weeks 2 Days 20 h 42 m 20 sec
Reputation Power: 216
the text-decoration [underline] is actually on the <a> tags, not on the <li> tag.
also, if you are wanting to remove the "bullets" from each of the list items, you would use "list-style-type: none;" on that .horizontallist li{} CSS.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Issue with list in HTML and CSS

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap