Old 01-20-2005   #1 (permalink)
Registered User
 
Stiker's Avatar
 

Join Date: Apr 2004
Location: Kansas
Posts: 120

Send a message via AIM to Stiker
CSS troubles (lists)

I have created a nice drop down section on my site using all lists but the problem is i am stuck with all other lists refering to the CSS code. What are the commands to have certain lists use the CSS and others not? Class or id maybe? Here is the Code:
Code:
<style type="text/css">
<!--
	   ul {
	   	  list-style: none;
		  padding: 0;
		  margin: 0;
	
		  }
		  ul li a {
		  	    display: block;
			    text-decoration: none;
			    color: #444;
			    background: #EDE1AD;
			    padding: 3px;
		            border-top: 1px solid #000;
			    border-bottom: 1px solid #000
				  
				  }


 		 a {
		      font-weight: bold;
		      color: #333;
		   }

               a {
		       text-decoration: none;
		 	}

         li li a {
		    display: block;
		    font-weight: normal;
		    color: #333;
		    padding: .45em 0px;
		    border-right: 1px solid #333;
		    border-left: 1px solid #333;
		    border-bottom: 1px solid #333;
				  }
				  /* Fix IE. Hide from IE Mac \*/
				  * html ul li { float: left; }
				  * html ul li a { height: 1%; }
				  /* End */


        li {
		   float: left;
		   position: relative;
		   width: 105px;
		   height: 20px;
		   font-family: Verdana, Arial, Helvetica, sans-serif;
		   font-size: 11px;
		   text-align: center;
		   cursor: default;
		   background-color: white;
		   }

        li ul {
		   	  display: none;
			  position: absolute;
			  top: 100%;
			  left: 0;
			  font-weight: normal;
			  background: #000;
			  padding: 0em 0px 0em 0px;
			  }

        li>ul {
			  top: auto;
			  left: auto;
			  }

        li li {
		   	  display: block;
			  float: none;
			  background-color: #000;
			  
			  }

        li:hover ul, li.over ul {
				 	  display: block;
								}
__________________
I can read it,
and understand it,
but when i try it everything goes wrong.
Reading master, Coding failure
Stiker is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01-20-2005   #2 (permalink)
Registered User
 
Stiker's Avatar
 

Join Date: Apr 2004
Location: Kansas
Posts: 120

Send a message via AIM to Stiker
well...

Well using what i could figure out with ID i edited that code but am still having trouble with the lists. back to the drawing board

New code:
Code:
<style type="text/css">
<!--
	   ul#nav {
	   	  list-style: none;
		  padding: 0;
		  margin: 0;
	
		  }
		  ul li a#nav {
		  	 	  display: block;
				  text-decoration: none;
				  color: #444;
				  background: #EDE1AD;
				  padding: 3px;
				  border-top: 1px solid #000;
				  border-bottom: 1px solid #000
				  
				  }


 		 a#nav {
		   font-weight: bold;
		   color: #333;
		    text-decoration: none;
		 	}

         li li a#nav {
		 	   	 display: block;
				 font-weight: normal;
				 color: #333;
				 padding: .45em 0px;
				 border-right: 1px solid #333;
				 border-left: 1px solid #333;
				 border-bottom: 1px solid #333;
				  }
				  /* Fix IE. Hide from IE Mac \*/
				  * html ul li { float: left; }
				  * html ul li a { height: 1%; }
				  /* End */


        li#nav {
		   float: left;
		   position: relative;
		   width: 105px;
		   height: 20px;
		   font-family: Verdana, Arial, Helvetica, sans-serif;
		   font-size: 11px;
		   text-align: center;
		   cursor: default;
		   background-color: white;
		   }

        li ul#nav {
		   	  display: none;
			  position: absolute;
			  top: 100%;
			  left: 0;
			  font-weight: normal;
			  background: #000;
			  padding: 0em 0px 0em 0px;
			  }

        li>ul#nav {
			  top: auto;
			  left: auto;
			  }

        li li#nav {
		   	  display: block;
			  float: none;
			  background-color: #000;
			  
			  }

        li:hover ul#nav, li.over ul#nav {
				 	 		 	display: block;
								}
__________________
I can read it,
and understand it,
but when i try it everything goes wrong.
Reading master, Coding failure
Stiker is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01-21-2005   #3 (permalink)
Registered User
 
scrowler's Avatar
 
Snake Champion!
Join Date: Feb 2004
Location: New Zealand
Posts: 590
Images: 7

Send a message via MSN to scrowler
div#id ul {}
div#id li {}

or

.class ul {}
.class li {}

<div id="id"><ul><li>stuff</li></ul</div>

or

<ul class="class"><li>stuff</li></ul>
__________________
BioRUST Tutorials - the birthplace
scrowler is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01-21-2005   #4 (permalink)
Registered User
 
Stiker's Avatar
 

Join Date: Apr 2004
Location: Kansas
Posts: 120

Send a message via AIM to Stiker
much appriciated scrowler. Makes life so much easier now
__________________
I can read it,
and understand it,
but when i try it everything goes wrong.
Reading master, Coding failure
Stiker is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 01-21-2005   #5 (permalink)
Registered User
 
scrowler's Avatar
 
Snake Champion!
Join Date: Feb 2004
Location: New Zealand
Posts: 590
Images: 7

Send a message via MSN to scrowler
no problemo señor oblamo
__________________
BioRUST Tutorials - the birthplace
scrowler is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse Ordered Lists? Jacorre HTML / PHP / ASP / JS 0 04-23-2007 03:23 PM
Coding troubles... ahstanford HTML / PHP / ASP / JS 17 04-08-2004 07:46 PM
.CSS { Overflow: Troubles; } Frank Jaeger HTML / PHP / ASP / JS 3 02-14-2004 04:53 PM
Favicon troubles... Hornet HTML / PHP / ASP / JS 8 01-27-2004 02:46 PM
Having various troubles. osmosis HTML / PHP / ASP / JS 3 12-16-2003 12:56 AM


All times are GMT +1. The time now is 02:52 AM.

Powered by vBulletin Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT