Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-04-12 13:33:29

Kossatsch
Member
From: St. Wolfgang
Registered: 2004-04-01
Posts: 198
Website

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)


txp at irox.de since spring 2004 (g1.17) & at roxomatic since 2006.

Offline

#2 2007-04-12 16:55:44

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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

La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2007-04-12 17:49:19

Kossatsch
Member
From: St. Wolfgang
Registered: 2004-04-01
Posts: 198
Website

Re: Serene: Lists

That was it. Thanks!


txp at irox.de since spring 2004 (g1.17) & at roxomatic since 2006.

Offline

Board footer

Powered by FluxBB