|
| |
|
|
wattle
Posts: 254 Joined: 3/31/2003 From: Australia Status: offline
|
FP Includes & CSS - 6/16/2003 23:13:31
First off - I' m not good at ' tech' talk - I hope this question is understandable I have styles between the <head> tags - am not using external style sheets (yet). Am using FP includes, three per page. I thought that the style settings on my main page would dictate how the font' s etc in the includes would appear but this does not seem to be the case. I copied the styles into my include pages and all is now well. Is this going about things the right way? Should I have styles in the include pages? It looks fine in the browser but I' ve only checked with IE5.5 at this stage. I' m new to CSS & FP Includes and want to go about things in the right way. Another question - would any ' rules' for using CSS with FP Includes carry across to SSI' s? Thanks Wattle
_____________________________
~ Wattle ~ Anyone who says that they can contemplate quantum mechanics without becoming dizzy has not understood the concept in the least. Niels Bohr
|
|
|
|
Webwork
Posts: 89 From: New Jersey USA Status: offline
|
RE: FP Includes & CSS - 6/19/2003 13:35:36
Arrrgghhh. I was looking into this myself. My search skills must be lacking because I failed to find " the answer" . Please provide a link to " the answer" . I understand FP strips out everything in the <Head> of an include sooooo, since I' m a CSS beginner, can one link to an external style sheet in the body? I don' t think that' s what I' ve read. I think the external link must be in the head. Soooo, is this a inheritance issue - where the include page <body> content - which is included - falls under the influence of the CSS (internal or external) of page it is included in?
_____________________________
www.DirectoryCompany.com
|
|
|
|
paperfish
Posts: 169 From: None Status: offline
|
RE: FP Includes & CSS - 6/20/2003 9:17:27
I don' t use FP Includes, but I do use Server Side Includes (SSI) and external stylesheets (CSS). My Includes are normally text files with the required HTML tags. An Include automatically display fonts and etc. according to the stylesheet for the page in which it is included - unless, as gorilla pointed out, the Include has inline styles.
|
|
|
|
paulie
Posts: 558 Status: offline
|
RE: FP Includes & CSS - 6/20/2003 10:18:25
Hey Paperfish, When you say " my includes are normally text files with the required HTML tags" do you mean the extension of your include file(s) is " .txt" ? I didn' t know you could do that. Does it save time when the browser parses the page or anything, or does it just help you identify them visually when you' re browsing directories on your server or something? Just curious, Paulie
|
|
|
|
abbeyvet
Posts: 5095 From: Kilkenny Ireland Status: offline
|
RE: FP Includes & CSS - 6/20/2003 10:22:53
I use .txt files too with both SSI and PHP includes. In the case of the later they can also include PHP code, it will parse fine as part of the final page. You cannot do it with FP inlcudes though, they must be .htm/.html It is possibly a little faster since the original files are not parsed, I am not sure, in my case it is more habit than anything else.
_____________________________
Katherine :: InKK Design :: InKK Domains
|
|
|
|
ajdevies
Posts: 113 Joined: 6/19/2002 From: Holly Hill, FL Status: offline
|
RE: FP Includes & CSS - 6/20/2003 15:54:18
In response to Wattle' s original questions and problems, based on my past week' s worth of aaaarrrrrgggggghhhhhhhssssss: 1. Includes have no " head" tags, so you cannot put styles in Includes in that sense. However........you can use ' inline' style tags within the body of the Include. That will get messy if you have a lot of Includes to edit in the future. 2. If you put your styles in the " head" tags of the page invoking (calling) the Includes, the Includes will inherit those styles, or whatever other styles are in effect (due to inline changes) at the location where the Include occurs. 3. You cannot put " style" tags in the body of a page, however you can use inline styles, e.g.: <p style=" font-family: Arial, sans-serif; font-size: bigger: font-color: NeonPurple;" >
This is bigger Arial text in Neon Purple</p> Tip: While I' m developing a page that will become an " Include" , I leave the " head" tags and any " style" tags or links to external style sheets in the " Include" page temporarily. This helps give a feel for how the " Include" will look once it' s embedded in the finished page. Once I have the desired results, I delete the " head" tags and anything between them. The above tip also lets you know if an " inline" style is interferring with the " include" . Saved my backside several times by doing it this way. <edit>Edited to prevent side scrolling.</edit>
< Message edited by pageoneresults -- 6/22/2003 8:56:12 AM >
_____________________________
AJ
|
Revisions: 1 |
|
|
|
paperfish
Posts: 169 From: None Status: offline
|
RE: FP Includes & CSS - 6/21/2003 12:25:37
Hi Paulie, In answer to your earlier question, I use .text for a couple of reasons: 1. Clearly identifies my includes - although they are all in their own directory 2. When double-clicked, they open in Notepad, not FP so I don' t inadvertently edit them with FP tools. But the main reason I use .txt is because Abbeyvet recommended it a couple of years ago. Thank you Katherine Cheers
|
|
|
|
pageoneresults
Posts: 1001 From: Orange, CA USA Status: offline
|
RE: FP Includes & CSS - 6/22/2003 8:58:48
quote:
You cannot do it with FP inlcudes though, they must be .htm/.html Hi Katherine, can you expand on this one a little bit more? I' ve used FP Includes now for almost 8 years. In the past couple of years I' ve been using them with .asp extensions and have not had any issues. As long as they are being included into a page with the same file extension, I' ve not seen any problems, at least with the .asp.
_____________________________
SEO Consultants Directory Find Search Engine Marketing Companies
|
|
|
|
abbeyvet
Posts: 5095 From: Kilkenny Ireland Status: offline
|
RE: FP Includes & CSS - 6/22/2003 9:07:30
Sorry, I should have said that using .txt files does not work with FP includes. My includes have no <head></head> section - they are just literally the snippet of text/html/code that will be included. That I know works fine with SSI and PHP include but not with FP includes. I have never in my life used ASP, or had a site on a Windows server. so I just tend to forget about asp. Sorry.
_____________________________
Katherine :: InKK Design :: InKK Domains
|
|
|
|
abbeyvet
Posts: 5095 From: Kilkenny Ireland Status: offline
|
RE: FP Includes & CSS - 6/23/2003 4:50:50
Without getting into the particular situation and why something is working or not working, I think the easiest thing is to skip to the solution. It really is best to use an external stylesheet, and put into that everything that will be used in the site - in standard pages, include pages, whereever - rather than having styles in the <head></head> of the page at all. It makes it easier to manage, easier to alter should you wish to in the future and is just all round more convenient and better. Styles in the <head></head> of a page should be reserved for particular style instructions that refer to that page only, or which alter/override a style already in the style sheet for that page only.
_____________________________
Katherine :: InKK Design :: InKK Domains
|
|
|
|
abbeyvet
Posts: 5095 From: Kilkenny Ireland Status: offline
|
RE: FP Includes & CSS - 6/23/2003 19:14:26
In that situation I think your only option is inline styles. Anything, including styles, in the <head></head> part of the include page will be ignored. I am not really clear here on what you are doing - how can you have a page that is the same but has a different include for each teacher? It just kind of seems upside down to me! Would it not be better to have a seperate page for each teacher and to have the stuff that is the same on each of those pages added using includes? Thus you could have ' teacher1.htm, teacher2.htm, teacher3.htm - each with an embedded stylesheet in the page which is peculiar to each teacher. Then the rest of the page would consist of includes to slot in the content that appears on all the teacher pages. The style of those includes would be referenced in an external stylesheet.
_____________________________
Katherine :: InKK Design :: InKK Domains
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|