Zoklet.net

Go Back   Zoklet.net > Technology > Technophiles and Technophiliacs > Codes of all kinds

Reply
 
Thread Tools
  #1  
Old 12-10-2009, 12:32 AM
Fractals Fractals is offline
Grand Duke
 
Join Date: Mar 2009
Location: Islands of Calleja
Thanks: 1,077
Thanked 829 Times in 690 Posts
Default CSS fucking up ordered lists

Something in my css is causing ordered lists to be displayed as unordered lists (with bullets). Any ideas?
Code:
/************* GENERAL CSS ************/

body {
	margin: 0px;
	padding: 0px;
	background: #AAAAAA url(images/backwide.png) repeat-y center top;
	text-align: justify;
	font-family: Geneva, "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
	font-size: 13px;
	color: #333333;
}

h1, h2, h3, h4, h5, h6 {
	font-family: Georgia, "Times New Roman", Times, serif;
	color: #000000;
}

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

a:hover {
	text-decoration: underline;
	color: #702424;
}

/************* HEADER STUFF ************/

#header {
	width: 895px;
	height: 110px;
	margin: 0px auto;
	padding: 10px 0px;
	background: #FFFBFD url(images/header.gif);
	color: maroon;
}

#header h1 {
	top: 5px;
	left: 130px;
	position: relative;
	font-size: 36px;
	font-weight: bold;
	margin: 0px;
	padding: 0px;
	color: maroon;
}

#header h2 {
	left: 130px;
	margin: 0px;
	padding: 0px;
	position: relative;
	font-size: 22px;
	color: maroon;
	line-height: 150%;
}

#logo {
	position: relative;
	top: -60px;
	left: 25px;
	background-image: url(images/logo.png);
}

/************* MENU ************/

#menu {
	width: 895px;
	margin: 0px auto;
	padding: 0px 0px;
	background-color: #800000;
	border-bottom: 1px solid #000000;
	border-top: 3px solid #C32148;
	border-right: 1px solid black;
	border-left: 1px solid black;
	height: 25px;
}

#menu ul {
	list-style-type:none;
	margin:0;
	padding:0;
	overflow:hidden;
}

#menu li {
	display: inline;
	float: left;
	width: 16.66%;
}

#menu a {
	padding: 7px;
	text-transform: uppercase;
	text-decoration: none;
	font-size: 12px;
	font-weight: bold;
	color: #DDDDDD;
	display: block;
	text-align: center;
	font-family: Verdana;
}

#menu a:hover {
	background-color: #600000;
}

#menu a:active {
	background-color: #600000;
}

a#active {
	 color: black;
}

/************* CONTENT ************/

#content {
	position: relative;
	width: 890px;
	margin-right: auto;
	margin-left: auto;
	padding: 0px;
}

#content h2, #content h3, #content h4, #content h5, #content h6 {
	font-weight: normal;
}

#content h2 {
	font-size: 200%;
	padding: 20px;
	color: #595959;
}

#content h3 {
	font-size: 16px;
	padding: 20px;
	color: #595959;
}

#content p {
	line-height: 125%;
	text-indent:50px;
}

#left {
	position: absolute;
	width: 565px;
	padding: 0px 20px 40px 20px;
	background: white;
	left: -2px;
}

#right {
	position: absolute;
	left: 605px;
	width: 247px;
	padding: 0px 20px 40px 20px;
	color: #DDDDDD;
	background: #424d47;
	padding-top: 20px;
}

.Cbody, .Cwe, .Cbodyh, .Cheader2, .Cheader, .Ccur {
	font-size: 20px;
}

ul, li {
	list-style-type: disc;
}

ol {
	list-style: decimal;
}

#anchor a a:hover {
	color: #595959;
}
Reply With Quote
  #2  
Old 12-10-2009, 12:45 AM
Akdor 1154 Akdor 1154 is offline
Regular
 
Join Date: Feb 2009
Thanks: 15
Thanked 10 Times in 7 Posts
Default Re: CSS fucking up ordered lists

ul, li { list-style-type: disc; } should be ul li { ...; } or ul, ul li { ...; } - you're applying an unordered list-style-type to all <li>s, whether they are in a <ul> or an <ol>.

Last edited by Akdor 1154; 12-10-2009 at 12:48 AM.
Reply With Quote
The following users say "It is so good to hear it!":
Fractals (12-10-2009)
  #3  
Old 12-10-2009, 01:12 AM
Fractals Fractals is offline
Grand Duke
 
Join Date: Mar 2009
Location: Islands of Calleja
Thanks: 1,077
Thanked 829 Times in 690 Posts
Default Re: CSS fucking up ordered lists

Quote:
Originally Posted by Akdor 1154 View Post
ul, li { list-style-type: disc; } should be ul li { ...; } or ul, ul li { ...; } - you're applying an unordered list-style-type to all <li>s, whether they are in a <ul> or an <ol>.
Good eye, thanks!
Reply With Quote
Reply

Bookmarks

Tags
css, fucking, lists, ordered

Thread Tools

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you write lists? Twisted Generally Speaking 28 09-03-2009 09:18 PM
The Officially Official list of lists Mirana Generally Speaking 1 07-07-2009 08:46 PM
ITT: Official GS Shit Lists Fuck White People Generally Speaking 13 07-07-2009 08:34 PM
List of people who never make lists reject Generally Speaking 3 05-01-2009 07:23 PM


All times are GMT. The time now is 04:30 PM.


Hot Topics
On IRC
Users: 4
Messages/minute: 0
Topic: "http://www.zoklet.net/..."
Users: 17
Messages/minute: 0
Topic: "ask ibm why atlantis is real"
Users: 8
Messages/minute: 0
Topic: "vaginaboob"
Advertisements
Your ad could go right HERE! Contact us!

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.