UL Dilemma - Post ID 195439

User 271657 Photo


Ambassador
3,816 posts

I had a simple vertical ul for some footer navigation. Decided to remove the bullets. Then decided it would be better to have the bullets, but nothing I do will bring them back. (list-style:, list-style-type:, list-style-image:, none of them with disc, circle or square do anything.
I'm ready to delete the list and its CSS and start over, but I really want to figure this out so maybe I'll learn something for next time.

First – There are 2 other lists on the page (one has an id and the other is just the default style in a paragraph). I gave this one (footnav) an id. Tried changing it to a class, then back to id :P If this list is different from the other 2, should it have an id rather than a class?

Next problem – I can't find a consistent way to write the CSS for this (online or in my books), so I don't know if this makes a difference. Example:
<div id="footnav">
list here
</div>
------OR---------

<ul id="footnav">
list here
</ul>


Then for the CSS:

ul#footnav li {....}

#footnav li {....}

#footnav ul li {....}

--------?------------


The site is not live since I need to have this basic nav option first! :lol: I've tried so many different versions, which then needed all the a, a li (or li:a), a:hover, (li a:hover)... changed as well. No bullets anywhere!

Any advice appreciated! :)

By the way, trying to run the Validate CSS option freezes my Editor requiring a Ctrl+Alt=Delete (the Validate HTML worked fine). Using version 12-7, 454
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 187934 Photo


Senior Advisor
20,266 posts

You know the drill.:lol:
Can you share a link?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 271657 Photo


Ambassador
3,816 posts

The site is not live ...


It's stuck on my computer 'til I find an answer to this. Maybe another half a dozen books and 3 or 4 more days on the internet will do it....

I haven't been able to find a common pattern for lists as navigation; if I look at 5 examples – I'll see 5 different set-ups. Which way to go?
At this point, I can't even determine if it should be a class or id :o
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 187934 Photo


Senior Advisor
20,266 posts

Email me the html.;)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 271657 Photo


Ambassador
3,816 posts

I was reading through the help manual to see if there was some info about how to use the Validate CSS function, and came across the Quick Live Preview. It seemed like a good option except for one thing – It says it will remove content that is not part of the project. I have stuff in various file folders within my project ready to go when I get the other pages done, but these aren't being used on the index page. Does this mean, if I upload the site as is, Quick Live Preview will throw out these files?

I sent the HTML/CSS to you :D
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 187934 Photo


Senior Advisor
20,266 posts

Check your email.;)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 122279 Photo


Senior Advisor
14,621 posts
Online Now

This one works:

<div id="footnav">
<ul>
<li>a</li>
<li>b</li>
<li>c</li>
<li>d</li>
</ul>
</div>

------

#footnav ul {
list-style-type: circle;
}
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 271657 Photo


Ambassador
3,816 posts

The bullets are back! Thanks, Eric and Inger :)
I don't know why I couldn't get them back until I wiped out the CSS and retyped it. I tried it every which way, but I guess it just needed to be deleted rather than edited.

Eric, what you sent is what I had started with in the first place (using class). I took out the line "list-style-type: disc;" to see it without the bullets. After that, typing it back in did nothing. I tried typing the whole thing over again on a blank page and the bullets didn't show. That's when I switched it to an id rather than class – still no bullets.
I can't tell you all how many different versions of this I tried :P

Now I can move on to the other 3 pages. Good thing this is a pretty simple site :D
Not that I can't mess up the simplest of things!

I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 187934 Photo


Senior Advisor
20,266 posts

I think this was ultimately the problem. :)
padding: 0 0 1.2em 0
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 271657 Photo


Ambassador
3,816 posts

Well, it's back in there now and everything looks good :D
I think it's just me – electronic stuff, such as computers tend to go wonky when I get my hands on them :o

I'm trying to stick with ems and percentages since this is a responsive design.
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.