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 December 19th, 2012, 12:35 PM
smoovejayy smoovejayy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 2 smoovejayy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 52 sec
Reputation Power: 0
Homework - Can't get UL <list-type> to display properly

Like the name says, I can't get the list types to display correctly. It might be because of parent elements, but I'm not too sure. This has taken me almost an hour to figure out. I don't like CSS, and I need to get this final project over with already. This is the last thing I need!!!

Here is the code:
Code:
<ul class="operatingSystems">
	<li>A mobile operating system</li>
    	<ul>
        	<li>iOS</li>
            <li>Android</li>
            <li>BlackBerry OS, or BlackBerry 10</li>
            <li>Symbian, and</li>
            <li>Windows Phone</li>
        </ul>
     <li>GPS</li>
     <li>Basic functionality of a feature phone</li>
     <li>A dedicated application store to run mobile applications</li>
     <li>Digital/video camera(s), and a</li>
     <li>Web browser</li>
</ul>


Here is the CSS for this:
Code:
ul.operatingSystems {list-style:square; margin-left: 40;}
ul.operatingSystems li {list-style:square; margin-left: 40;}

body.light ul.operatingSystems {display:inline-block; list-style-type: square;}
body.light ul.operatingSystems li {list-style-type: square;}


Now, I know everything isn't perfect, and I don't even care anymore. I just need this ****ing list to display correctly. Here are other CSS properties that might be interfering:

Code:
body.freestyle01 ul.menu {list-style:none; margin:0 0 15px 0; border:0; padding:0; position:relative;}

body.freestyle01 ul.menu li {list-style:none; text-align:left; font-size:1.2em; margin:0 0 1px; border:0; color:#888;}

ul.menu {list-style:none; margin:0; padding:10px 0; border-top:1px solid #333;}
ul.menu li {list-style:none; text-align:center; font-size:1.2em; margin:0 0 10px; padding:0 0 8px 0; color:#888; border-bottom:1px solid #333;}


Any help will be greatly appreciated!!

Reply With Quote
  #2  
Old December 19th, 2012, 12:58 PM
EEsterling EEsterling is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2011
Posts: 98 EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level)EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level)EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level)EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level)EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level)EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 18 h 59 m 47 sec
Reputation Power: 49
impossible to answer

You don't say what is wrong about the display.

Reply With Quote
  #3  
Old December 19th, 2012, 03:20 PM
smoovejayy smoovejayy is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Posts: 2 smoovejayy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 52 sec
Reputation Power: 0
So sorry. Well, the bullets don't display. At all. The information just displays as regular text. I think it may have something to do with the body CSS elements.

Reply With Quote
  #4  
Old December 19th, 2012, 10:28 PM
EEsterling EEsterling is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2011
Posts: 98 EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level)EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level)EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level)EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level)EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level)EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 18 h 59 m 47 sec
Reputation Power: 49
I think the problem is something we can't see. The code that you provided most likely works on most browsers when isolated. I say "most likely" because you have no units on your margin-left. That might confuse some versions of some browsers, so I suppose could be an issue, but I don't think so.

I suggest you do two things:
  1. Isolate - take just the part that appears to be causing a problem and move it to it's own file. When it works, gradually add the other stuff until the error happens. That usually helps you find the problem.
  2. Validate - run your CSS through the validator . That will likely yield several problems which when cleaned up might fix your problem.

Reply With Quote
  #5  
Old December 19th, 2012, 11:40 PM
Kravvitz's Avatar
Kravvitz Kravvitz is offline
CSS & JS/DOM Adept
Dev Shed God 30th Plane (19500 - 19999 posts)
 
Join Date: Jul 2004
Location: USA
Posts: 19,835 Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level) 
Time spent in forums: 6 Months 1 Day 22 h 11 m
Reputation Power: 4192
Welcome to DevShed Forums, smoovejayy.

Are you aware that your page contains errors? The first step in debugging should always be making sure that your code is valid (in order to rule out any errors as the cause for the problem).
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/

If you don't understand some of the error messages, ask here and we'll try to explain them.

Quote:
Originally Posted by EEsterling
I say "most likely" because you have no units on your margin-left. That might confuse some versions of some browsers, so I suppose could be an issue, but I don't think so.

No, it doesn't "confuse" browsers. It's an error, so browsers will ignore that property declaration.
__________________
Spreading knowledge, one newbie at a time. I'm available for hire at Dynamic Site Solutions.

Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

Remember people spend most of their time on other people's sites (so don't violate web design conventions).

Reply With Quote
  #6  
Old December 20th, 2012, 01:43 AM
EEsterling EEsterling is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2011
Posts: 98 EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level)EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level)EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level)EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level)EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level)EEsterling User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 18 h 59 m 47 sec
Reputation Power: 49
Quote:
Originally Posted by Kravvitz
No, it doesn't "confuse" browsers. It's an error, so browsers will ignore that property declaration.

Yes, it is an error. But browsers don't simply ignore the declaration. They interpret it -- in potentially unpredictable ways. So, maybe it isn't the browsers that get confused but the unsuspecting page developer.

Reply With Quote
  #7  
Old December 20th, 2012, 10:48 AM
Kravvitz's Avatar
Kravvitz Kravvitz is offline
CSS & JS/DOM Adept
Dev Shed God 30th Plane (19500 - 19999 posts)
 
Join Date: Jul 2004
Location: USA
Posts: 19,835 Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level) 
Time spent in forums: 6 Months 1 Day 22 h 11 m
Reputation Power: 4192
Quote:
Originally Posted by EEsterling
Yes, it is an error. But browsers don't simply ignore the declaration. They interpret it -- in potentially unpredictable ways. So, maybe it isn't the browsers that get confused but the unsuspecting page developer.

Have you read the Rules for handling parsing errors (especially the section on invalid values)? I'm not sure what is supposed to happen (or what actually happens) when the shorthand properties are used though. For example, "margin: 0 10 0 4px" might be ignored completely or it could be interpreted as "margin-top: 0; margin-bottom: 0; margin-left: 4px;".

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Homework - Can't get UL <list-type> to display properly

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