How can I make a CSS/HTML List do this...?

2 replies
  • WEB DESIGN
  • |
So I want to put a list of my recent posts in my footer.

However, I want the list to look like this:

1 Item 6 Item
2 Item 7 Item
3 Item 8 Item
4 Item 9 Item
5 Item 10 Item

Instead of:

1 Item
2 Item
3 etc
4
5
6
7
8
9
10

Now I know this is easy enough normally, but I am using the wordpress php call get_recent_posts

Its not a normal list so I cant just put them in the next column

Is there any way I can make this list wrap over to the next column?

Thanks for any help

Rebtl
#css or html #list #make
  • Profile picture of the author aisling
    I'm pretty sure that turning the list into two defined columns is far easier than turning a variable number of items into two equal columns.

    That is, you'll need to decide whether you'll limit the list (and tell the software to list, say, items 1 - 10 in column one and items 11 - 20 in column two).

    Otherwise, the software has to look at the number of entries, divide that by two... and so on.

    That said, I know just enough about code writing to be dangerous.
    Signature

    WordPress themes made easy: Sites that Soar!

    {{ DiscussionBoard.errors[534156].message }}

Trending Topics