Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-02 05:02:14

dreamer
Member
Registered: 2007-06-08
Posts: 242

article doesn't fit into the appropriate forms

At this site here; http://www.lifebuilderschristiancenter.org/ , you’ll see the upcoming events box on the sidebar with the text,

March 2008
LBCC Marriage Retreat

This text should be within the white area but it isn’t and I’m not sure why. I checked my forms and pages but not quite sure what the problem is.

My page for this section looks like this;

<div class="events">
	<h2 class="events">Upcoming Events</h2>
	<txp:article_custom category="Upcoming-Events" limit="100" pgonly="0" time="future" form="Upcoming Events" sort="Posted asc" />
	</div>

While my form, “upcoming events” looks like this;

<p class="introbox" style="padding-bottom:4px; font-size:.9em; font-weight:bold;"><txp:title /></p>
<p class="introbox" style="padding-bottom:8px; padding-top:0px; text-decoration:underline;">When: <txp:posted /></p>
<p class="introbox" style="padding-top:0px;"><txp:body /></p>

Any ideas? I know it’s going to be so simple once it’s spotted but can’t make sense of it myself.

Offline

#2 2008-04-02 07:02:18

ultramega
Member
Registered: 2006-02-26
Posts: 221

Re: article doesn't fit into the appropriate forms

Check your p-tags here:

<p style=“padding-top: 0px;” class=“introbox”> </p><p>March 2008<br/>
<span class=“caps”>LBCC</span> Marriage Retreat</p>

…Personally I prefer as less as possible inline styles and unnecessary classes; you could simplify your code in that block using one div, say “id=events”, so you could use in stylesheet “#events h2”, “#events p” to create same effects with little lesser code :)

Last edited by ultramega (2008-04-02 07:33:17)

Offline

#3 2008-04-02 19:17:55

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: article doesn't fit into the appropriate forms

thanks for the tip. I managed to clean up the divs and just use an id as you mentioned.

however, it does seem like there is something within txp that breaks this because if you go back and look, the problem still persist.

My textile for that content is;

* "LBCC Marriage Retreat":http://www.yahoo.com

However, if I was to omit the asterisk and just use;

"LBCC Marriage Retreat":http://www.yahoo.com

then the text won’t break at all and will fall into the white space.

Offline

#4 2008-04-02 21:23:15

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: article doesn't fit into the appropriate forms

You can add the background-color to #events instead of #events p, and modify padding and margins a bit to achieve what you want.
Also, you now have <ul> inside <p class="eventbody">, which is probably somewhere in your form.

Offline

#5 2008-04-02 23:16:23

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: article doesn't fit into the appropriate forms

With Textile an “*” at the beginning of a line denotes an unordered list. Did you want this?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#6 2008-04-02 23:20:15

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: article doesn't fit into the appropriate forms

yes, i do. or at the least, i’d like that option. so i didn’t understand why the asterisk was breaking the code. who knows what else may not be compatible with the textile format if this is the case.

Offline

#7 2008-04-02 23:42:30

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: article doesn't fit into the appropriate forms

I think the ul is over-riding the p. Could you remove that p class="eventbody" tag and apply the background to #events ul instead?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#8 2008-04-03 00:07:18

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: article doesn't fit into the appropriate forms

I took Els’ recommendation. So I took;

background-color: #ffffff;

and applied it to #events instead of #events p

I stripped away <p class=“eventbody”><txp:body /></p> from the “upcoming events” form and just make it;

<txp:body />

and just tidy up the sidebar ul a bit to look like;

#sidebar ul {
	margin-left: 20px;
	margin-top:5px;
	font-size: .9em;
	}

so everything looks fine. ..for now :)

Thx!

Offline

Board footer

Powered by FluxBB