Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-01-12 22:20:55
- billg
- Member
- Registered: 2006-01-12
- Posts: 11
Linklist Tag Ignoring Style Applied To Surrounding Div
My stylesheet styles “ul”, “li”, “a”, etc., targetting a “navigation” class. When I place a “linklist” tag inside a div with an attribute of ‘class=“navigation”’, the output of the linklist tag is not styled.
Why isn’t that happening? How can I make that happen?
Offline
#2 2006-01-12 22:51:23
- alexandra
- Member
- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: Linklist Tag Ignoring Style Applied To Surrounding Div
Did you adress your list the correct way:
<pre>.navigation li {
list-style-type: none; …</pre>
Last edited by alexandra (2006-01-12 22:51:43)
Offline
#3 2006-01-12 23:33:19
- billg
- Member
- Registered: 2006-01-12
- Posts: 11
Re: Linklist Tag Ignoring Style Applied To Surrounding Div
Yes. The style applies correctly to individual list items inside the div, but not to the output of linklist inside the same div.
I’ve also tried using ‘class=“navigation”’ with linklist because the documentation says it can take a class attribute, bit I’ve noticed no change, with or without the attribute.
Offline
#4 2006-01-13 00:02:42
- billg
- Member
- Registered: 2006-01-12
- Posts: 11
Re: Linklist Tag Ignoring Style Applied To Surrounding Div
Well, this is embarrassing, but a look at the source shows linklist doesn’t use lists. It simply stacks individual “<a href…” entries, finished with </ br>, inside <p>…</p>. I’d assumed that linklist actually used a list. So much for unexamined assumptions.
I’m on, like, Day Two of Textpattern. Anyone know if there’s a plugin substitute for linklist that uses an unordered list?
Offline
#5 2006-01-13 02:29:07
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: Linklist Tag Ignoring Style Applied To Surrounding Div
<a href=“http://textpattern.net/wiki/index.php?title=Txp:linklist_/”>Linklist</a> should output an unordered list if you provide active attributes in your tag.
Try : <code><txp:linklist wraptag=“ul” break=“li” class=“navigation” /></code>
Offline
#6 2006-01-13 13:51:56
- billg
- Member
- Registered: 2006-01-12
- Posts: 11
Re: Linklist Tag Ignoring Style Applied To Surrounding Div
Thanks. That worked.
Offline