WordPress Stupid Trick

Status
Not open for further replies.

crunchi

pr0n master
Jun 28, 2006
183
2
0
Las Vegas
www.crunchi.net
Hey I need my posts to be listed in horizontal lines and not just one per line as it is by default..

I allready tried with removing all the div tags from template file but because it's not working I guess I need to modify this in the core somewhere?

Anyone?
 


Hey I need my posts to be listed in horizontal lines and not just one per line as it is by default..

I allready tried with removing all the div tags from template file but because it's not working I guess I need to modify this in the core somewhere?

Anyone?

I'm not exactly sure I know what you mean by horizontal lines? Can you be a little more specific or provide an example.

P.S. Removing all the div tags in your template is a BAD idea because now your template is completely un-formatted and your work is going to end up all over the place, I sure hope you saved a backup.
 
Set the posts in a <div> tag and mess around with the float and padding attributes in CSS. Then to separate each row of posts use a <br style="clear:both;" />. Then go into the Wordpress Control Panel and make it show only 5 posts (according to your example). Thats how I did it awhile back...
 
Huhuh it's working now, anyway I allready tried with different css styles but I guess I wasn't smart enough to find the right one..

Anyway, You're the man! Tnx for help
 
I am not a worpress genius (actually never seriously edited anything)
but you might do it editing the css and assigning "float: left; width: 500px;" to the class named "post"
you would also need to have a really wide "content" div, such as 1500 for 3 posts, and the whole layout = 1500+sidebar etc

I hope this helps you, I hope I understood correctly
I never tried anything of this kind in wordpress so it could not work
 
You could also display your posts in a list format then display the list inline, fixing widths, padding and other shit via CSS.....

The above mentioned "floating" also works well....

Jer
 
Status
Not open for further replies.