Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-11 23:29:36

bzx
Member
Registered: 2007-01-11
Posts: 15

<txp:linklist /> - how do i get it to display links beside each other?

hi there

i was wondering if it’s possible to display the <txp:linklist /> so that the links would not stack on top of each other but be placed beside each other. i tried wraptagging them in <span> but it wouldn’t help..

from what i found in the textbook i can assign a class to the linklist, so probably the CSS “display:inline” property would work here, but i was thinking if there’s a simpler way.

here’s the example of what i want to achieve:
http://chorobaglodowa.pl/
the links on the left are in a vertical order, but in the page footer i would like to have them in horizontal order.

any ideas ?

thanks
cheers!

Last edited by bzx (2007-01-11 23:31:13)

Offline

#2 2007-01-12 00:41:21

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: <txp:linklist /> - how do i get it to display links beside each other?

ul.linklist li { display: inline } is pretty simple (assuming you wrap your linklist in a ul with the class linklist. If you want to edit the HTML, just edit your links form (Presentation>forms). From the site, it looks like you’re using <txp:linklist form="Links" /> in your page template. Edit the form named links to:

<txp:link />,

Offline

#3 2007-01-13 11:23:45

bzx
Member
Registered: 2007-01-11
Posts: 15

Re: <txp:linklist /> - how do i get it to display links beside each other?

thanks for your help, ive tried the display:inline property but it simply didn’t help.
i need to edit the form settings…

yeah i left only the <txp:link /> in “Links” form and it’s okay now… thank you!

cheers

Last edited by bzx (2007-01-14 10:39:31)

Offline

Board footer

Powered by FluxBB