Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Unordered List - IUnordered List - I'm having difficulty restyling bullets (boxes / discs / circles)
Previous
 
Next
New Post
9/29/2010 3:22 PM
 
In my skin.css, I'm trying to fix the unordered list styles.

In regular html, this works to restyle the bullets used for an unordered list:
ul
{
    list-style-type: disc;
}

In fact, I have a test page that utilizes my skin.css file, and this correctly shows discs as the bullets.

However, my DNN site utilizes squares.

How can I fix my unordered lists to use discs instead of squares in DNN 5.4?

Thanks
 
New Post
9/29/2010 3:57 PM
 
Try adding a Normal class to it.

.Normal ul 
{
    list-style-type: disc;
}

DNN adds the Normal class to all content, and the default.css specifies it that way, so you must override it.


Ralph Williams, Jr.
UX Designer / Front-End Web Developer
www.RalphWilliams.com
Ralph Williams Consulting
Twitter: twitter.com/ralphwilliams

Professional DNN7: Open Source .NET CMS Platform
 
New Post
9/29/2010 4:12 PM
 
Thanks for the information regarding the default class that is applied... I overlooked this in my books.

I found that the following methods worked to solve my problem:

1) modify default.css (not allowable for this project, so I won't use it)
2) include the "li" in the selector:

Examples:
ul li{
....
}

.Normal ul li{
....
}

Both of these work.

However, whenever UL is used without an LI after it, it doesn't work (at least in firefox).

So, in summary... if anybody else comes across this, stick an LI on there. If you want to be proper about it, prefix the selector with the .Normal class
 
New Post
9/29/2010 4:21 PM
 
Silly me, I forgot to add the li myself. 

Glad you got it figured out!


Ralph Williams, Jr.
UX Designer / Front-End Web Developer
www.RalphWilliams.com
Ralph Williams Consulting
Twitter: twitter.com/ralphwilliams

Professional DNN7: Open Source .NET CMS Platform
 
New Post
9/29/2010 4:23 PM
 
What you see is from default.css, you will have to add your own definition for these:

ul li
{
    list-style-type: square;
}

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

ul li li li
{
    list-style-type: circle;
}

ol li
{
    list-style-type: decimal;
}

ol ol li
{
    list-style-type: lower-alpha;
}

ol ol ol li
{
    list-style-type: lower-roman;
}
ol ul li
{
    list-style-type: disc;


 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Unordered List - IUnordered List - I'm having difficulty restyling bullets (boxes / discs / circles)


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out