Template screws up preview

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Template screws up preview

Post by yellowled »

Hey guys,

once again something which is really hard to describe, but I'll try :)

I'm working on a new template, which is pretty much in testing mode right now. So I'm writing test entries in my development blog, and somehow encounter the following: I hit 'preview', I see a nice green message saying 'Serendipity is now creating the preview of your entry...', see that box which is supposed to show me the preview of my test entry ... and then, this box shrinks, I can't read the preview at all.

This does not happen with other themes, so obviously something in my theme screws up the preview - but what part of it?

Basically, this is a css only template, the basic structure is like this:

#mainpane (
#serendipity_banner
#navbar
#serendipityLeftSideBar
#content
#serendipityRightSideBar
#footer )

Both sidebars and the content have 'float: left;', #footer has a 'clear:both;', and #mainpane is wrapped around everything else to fix the width of the blog's content.

Any hints on where to start looking? Need more information?

YL
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I seem to recall that non-table layouts have problems like this. Have you tried assigning a height to it? Even 1% might work.
Judebert
---
Website | Wishlist | PayPal
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

judebert wrote:I seem to recall that non-table layouts have problems like this. Have you tried assigning a height to it? Even 1% might work.
Nope, I'll try that. But: assigning a height to what?

You might be right about the tableless layouts, at least I can't remember experiencing something like this with a table-based layout. On the other hand I recall similar problems with other tableless layouts.

YL
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

You're probably going to have to create your own preview_iframe.tpl to make it work properly. check out the 1024px template for an example, or even andreas08. They both had exactly the same problem as you describe but with the new preview file it fixed the problem. Of course you'll have to use the code/styles that you have in your own index.tpl and entries.tpl
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

carl_galloway wrote:You're probably going to have to create your own preview_iframe.tpl to make it work properly.
Jeez, Galloway, you better hurry up gettin' yourself over here to Germany so little old me can buy you a (insert favourite beverage here) or two ... :wink:

(Which is of course my way of saying: 'Thanks, that did the trick' :))

YL
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

no worries mate!
Post Reply