Author Topic: Weird CSS problem  (Read 11919 times)

0 Members and 3 Guests are viewing this topic.

Offline drossman

  • Newbie
  • *
  • Posts: 8
    • View Profile
Weird CSS problem
« on: November 17, 2009, 06:17:49 PM »
When I included ssi_in.php in index.php, some fonts on the page are enlarged.  Is there a way to change the css in TP?

dross

Offline Ric

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Weird CSS problem
« Reply #1 on: November 17, 2009, 07:19:30 PM »
some fonts on your index.php page became enlarged?

TP's css wouldn't be read by that.

are you getting something printed out on your index page from ssi_in.php?


Offline drossman

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Weird CSS problem
« Reply #2 on: November 17, 2009, 07:28:47 PM »
When I add the include, some of the text on the page is bigger than normal.  It goes back to normal when I remove the include.

Code: [Select]
virtual("/tp/ssi_in.php");

I just noticed a few minutes ago that the text that is enlarged is not using CSS, while the rest of the text on the page is inside of div tags with defined attributes. 

I can probably fix it on my end by putting the text in question inside of divs....still weird.


Offline Ric

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Weird CSS problem
« Reply #3 on: November 17, 2009, 07:59:49 PM »
are you enclosing that line with php?

Like this

<?php
virtual("/tp/ssi_in.php");

?>

sounds like it's printing out to your index.php

Got a link?

Offline drossman

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Weird CSS problem
« Reply #4 on: November 17, 2009, 08:15:56 PM »
The whole script is enclosed in the php tags.

I fixed it by adding a div and #div table definition in my css file and wrapping the text in a div.  Every occurence of the problem was text inside of a table which was not inside of a div.  Weird.

link is http://xxxureview.com, but its working now.  The part in the middle listing "Niches | Reviews | Top Lists | Sponsors" was hosed and the footer and the search form at the top.

Offline Ric

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Weird CSS problem
« Reply #5 on: November 17, 2009, 08:43:34 PM »
Right on... just glad you got that working

Offline ip0li

  • mgSearkGD
  • Administrator
  • Hero Member
  • *****
  • Posts: 1959
    • View Profile
    • Pretty Girls from your city for night
Re: Weird CSS problem
« Reply #6 on: November 18, 2009, 04:42:19 AM »
It's because you include TP before head parts of your code, include it within <head></head> area and problem solved. cheers

Offline drossman

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Weird CSS problem
« Reply #7 on: November 18, 2009, 05:15:50 AM »
Ah, hence the various threads about smarty templates.  Hmm, I wonder if my templates parse php?  I guess I'll find out.  TYVM

Offline ip0li

  • mgSearkGD
  • Administrator
  • Hero Member
  • *****
  • Posts: 1959
    • View Profile
    • Pretty Girls from your city for night
Re: Weird CSS problem
« Reply #8 on: November 18, 2009, 08:43:53 AM »
if it's smarty it must parse php ;)

try to use php include with full path instead php virtual include, virtual include isn't 100% friendly with smarty