Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

The mysterious file that overrides css in WordPress. Need help removing list dots.

Ok, where is the code in WordPress that override's the css for the elements that are on the pages? I have an UL list in my pages and with my css I have removed list dots. This has been checked in Brackets programs and my code should be solid but somehow the dots still appear.

Please help!

The code is below and the site is http://raccoonbox.com/sitedata/rekry/

HTML

Tee sitä mitä haluat tehdä ja pidä hauskaa päivittäin! Raccoonboxissa saat parhaan mahdollisen hyödyn menestyksekkäälle yritystoiminnallesi. <a title="Ota yhteyttä" href="http://raccoonbox.com/sitedata/ota-yhteytta/">Ota yhteyttä</a> tai lue alta.

<img class="mesina" src="http://raccoonbox.com/sitedata/wp-content/uploads/2015/01/mesina.png" alt="mesinä" width="500" height="500" />

<ul class="no-bullets">
    <li class="pawnbadge">Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat. </li>
    <li class="psbadge">Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.</li>
    <li class="castlebadge">Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.</li>
    <li class="handbadge">Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.</li>
    <li class="cafebadge">Morbi in sem quis dui placerat ornare. Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu. Cras consequat.</li>
</ul>
&nbsp;

CSS

img.mesina {
  display: block;
  margin-left: auto;
  margin-right: auto;
  /*background-color: tomato;*/
}

ul.no-bullets {
list-style-type: none;
padding: 0;
margin: 0;
}

li.pawnbadge,
li.psbadge,
li.castlebadge,
li.handbadge,
li.cafebadge {
  margin: 20px 20px 50px 20px;
  padding: 30px 0 50px 120px;
}

li.pawnbadge {
  background: url("http://raccoonbox.com/sitedata/wp-content/uploads/2015/01/pawnbadges-100x100.png") no-repeat left top;
}

li.psbadge {
  background: url("http://raccoonbox.com/sitedata/wp-content/uploads/2015/01/psbadges-100x100.png") no-repeat left top;
}

li.castlebadge {
  background: url("http://raccoonbox.com/sitedata/wp-content/uploads/2015/01/castlebadges-100x100.png") no-repeat left top;
}

li.handbadge {
  background: url("http://raccoonbox.com/sitedata/wp-content/uploads/2015/01/handbadges-100x100.png") no-repeat left top;
}

li.cafebadge {
  background: url("http://raccoonbox.com/sitedata/wp-content/uploads/2015/01/cafebadges-100x100.png") no-repeat left top;
}

2 Answers

Kevin Korte
Kevin Korte
28,149 Points

Where does this rule in your CSS live, and how did it get there?

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

It comes from parent theme css. I overrider it now. Thanks!

You're targeting the UL, but you need to target the LI.

Try this instead:

ul.no-bullets li {
list-style-type: none;
}