Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-03 11:19:40

Nichod
Member
Registered: 2005-06-06
Posts: 119

Seperating title:article text?

I’d like to seperate the layout of each article as follows:

Title: Date and time————————-Article text
Comment#—————————————-Comment

Is this possible to do with CSS? If so, can someone give me a brief description?

Last edited by Nichod (2005-12-06 04:29:23)

Offline

#2 2005-12-04 04:38:28

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: Seperating title:article text?

You will need to use the display:inline; CSS property to have several block on the same line.

Apply it to the header of your article, and the paragraph (or sub-header) containing the date/time, and the first (?) paragraph of your article body.

If you have an enclosing div for each article, named an-article, then the CSS code might look like :

<code>div#an-article h2, div#an-article p.date-time, div#an-article p.body {display:inline;}</code>

Offline

#3 2005-12-04 06:33:17

Nichod
Member
Registered: 2005-06-06
Posts: 119

Re: Seperating title:article text?

ahh. I didn’t think of that. Now I feel silly. Thanks.

Offline

Board footer

Powered by FluxBB