Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Serene: Lists
I am using the Serene theme at this time here in a nearly original manner. Now I added a text link ad, and I have a problem with the list definition.
The normal CSS li definition is as follows:
ul li {
margin-left: 1em;
padding-left: 15px;
background: url("../images/b.gif") 0 0.3em no-repeat;
}
Now I have the ads embedded in a p section with the class ads, with the following definition.
p.ads ul li
{
background-image: none;
}
The whole CSS can be found here. But as you can see here above at the right, the list image defined above keeps showing up in the ad.
Why?
(Edit: updated discussion topic. -Mary)
Last edited by Mary (2007-04-12 21:38:28)
Offline
Re: Serene: Lists
<p class="ads">
<ul style="width: 100%; list-style: none; border: 1px solid #000000; border-spacing: 0px; padding: 0; margin: 0; overflow: hidden;">
<li style="float: left; padding: 0; width: 50%; margin: 0; display: inline; clear: none;"><span style="font-size: 10px; padding: 3px; display: block; width: 100%; margin: 0; color: #000000;"> <a style="color: #000000; font-size: 10px;" href="http://www.tutorials-re.com/">tutorials re @ roxomatic</a> </span></li>
</ul><br /></p>
That code isn’t valid. You can’t have an ul
inside a p
. You have to correct that (I suggest by removing the p
).
Then, apply the class directly to the ul
, like ul class="ads"
and then, in your CSS
ul.ads li
{
background-image: none;
}
That
Offline
Offline
Pages: 1