Preview layout differs from real article layout?

Please report bugs here!

Moderator: Thorsten

Post Reply
fuzz
Posts: 2
Joined: Wed Jun 07, 2006 12:24 pm

Preview layout differs from real article layout?

Post by fuzz »

Since the upgrade from 1.4.6 to 1.6.0 (and now 1.6.1 to have the newest release) I noticed that the preview layout of an article is better than the real layout. I copied over all html/templates/* from the source zip to the new installation so I don't think this is an old-template-issue.

I'm using Mozilla Firefox 1.5.4 but IE 6.0.X is showing the same symptoms.

Have a look at the preview page:

Image

And then the real article:

Image

You see what I mean?
  • No Space after a list
  • The Topics are too small
Why is that? And why is the preview different from the article at all?
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: Preview layout differs from real article layout?

Post by matteo »

Hi,
fuzz wrote:You see what I mean?
  • No Space after a list
  • The Topics are too small
Why is that? And why is the preview different from the article at all?
Probably it is an issue related to the standard CSS provided with PMF: the difference could exist because of the admin section (i.e. what accessed by the /admin/ folder) has a different CSS despite of the "anonymous user" section.
I'll take a look into your issue: I'm just grabbing an HTML faq content sample directly from your faq server to debug the issue.
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Temp fix

Post by matteo »

Hi,
wating for the final fix you could locate, backup and open the [PATH_TO_LEXINSTALL]/template/style.css and:
fuzz wrote:
  • No Space after a list
remove the ul element from the statement below:

Code: Select all

body, h1, h2, h3, h4, h5, h6, div, p, table, td, ul, ol, li, dd, dt, dl, blockquote, address, hr, pre {
   margin: 0;
   padding: 0;
}
fuzz wrote:
  • The Topics are too small
change the font-size to 150%:

Code: Select all

h3 {
   font-size: 125%;
}
As you can see you could adapt the CSS to reach your goal.
From the fix standpoint we'll work on the best solution for align the faq admin preview with the final user view.
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
fuzz
Posts: 2
Joined: Wed Jun 07, 2006 12:24 pm

Re: Temp fix

Post by fuzz »

Thanks for the quick feedback. The layout is much better now (IMHO).

Thanks.
Post Reply