|
PHP Include..
|
|
04-03-2007, 01:09 AM
Post: #1
|
|||
|
|||
|
PHP Include..
Right, i want to include a file in php..
Code: <?PHPeasy peasy eh? well not quite.. the php file I'm including uses a all sorts of template files and includes itself to display some HTML table.. the problem is when i include it i only get the text within this table.. I'm not sure this is because of the crap loads of CSS and DIV crap i got on the page I'm trying to put the include on or because of something else.. any ideas? *edit* i explained badly. i actually get the correct table.. but none of the pictures and boarders and colours associated with it (check http://allllec.co.uk )
|
|||
|
04-03-2007, 02:04 AM
Post: #2
|
|||
|
|||
|
is the css associated with the include seperate from the css on the actaul page?
|
|||
|
04-03-2007, 11:16 AM
Post: #3
|
|||
|
|||
|
Echoing Spid - are the styles inline, or tucked away in a stylesheet that you're not including on the main page? If the latter, you need an @import directive in your main css file.
Give me liberty, or give me death - Patrick Henry 1775. Think for yourselves and let others enjoy the privilege to do so too - Evelyn Beatrice Hall 1906 I spread my wings, only to find that they are paper in the rain - Neko 2006 |
|||
|
04-03-2007, 01:19 PM
Post: #4
|
|||
|
|||
|
Yeah the page I'm trying to include has a separate CSS file.. thing is it shares names of id's and tags and all that crap with the CSS from my main page..
what should i do?
|
|||
|
04-03-2007, 01:25 PM
Post: #5
|
|||
|
|||
|
change the names of them slightly and stick it all in one css file?
|
|||
|
04-03-2007, 01:27 PM
Post: #6
|
|||
|
|||
|
Effort! lol, well if theres not an easier way ill get right on
taalec
|
|||
|
04-03-2007, 01:47 PM
Post: #7
|
|||
|
|||
|
Blah, all went tits up lol. Just made it so it opens up in a small new window from the original file. o well. thanks for trying =p lol
ta alec
|
|||
|
05-03-2007, 09:50 AM
Post: #8
|
|||
|
|||
|
I feel a disturbance in the force...
No, it was just a surge of pity for the foo' that doesn't learn CSS before PHP
Give me liberty, or give me death - Patrick Henry 1775. Think for yourselves and let others enjoy the privilege to do so too - Evelyn Beatrice Hall 1906 I spread my wings, only to find that they are paper in the rain - Neko 2006 |
|||
|
05-03-2007, 09:58 AM
Post: #9
|
|||
|
|||
|
Oops, my brain can't have been engaged when I last replied to this.
Change #id to .class in your css and you can use the same div class over and over again in the page without issue.
|
|||
|
05-03-2007, 11:42 AM
Post: #10
|
|||
|
|||
|
Ah cool spid. Not using it for this anymore but i will bear it in mind.. as neko said really should have learnt CSS before anything else lol.. mind you its not that hard to pick up.
|
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help

![[Image: alec.hewitt.jpg.png]](http://homepage.ntlworld.com/frances.hewitt1/alec.hewitt.jpg.png)





![[Image: riona-VICKY.png]](http://img.photobucket.com/albums/v289/spidrocks/riona-VICKY.png)

what should i do?
ta