|
| |
|
|
_gail
Posts: 2876 From: So FL Status: offline
|
style sheets & includes - 6/27/2002 19:11:02
First time I' m using a style sheet. I have it working in the index.htm page but can' t get it to work with include pages. <link rel=stylesheet type=text/css href=name.css.> The above was placed before the closing " head" tag in both the index and include pages. Why isn' t the style sheet working for the include? Thanks, gail
|
|
|
|
EWD
Posts: 1052 From: BeauFlow, NY Status: offline
|
RE: style sheets & includes - 6/27/2002 21:15:47
The style of the included section will be governed by the page it' s included into. When you look at the include page itself you may not see anything but should see it on the main page.
|
|
|
|
Reflect
Posts: 4769 From: USA Status: offline
|
RE: RE: style sheets & includes - 6/28/2002 7:33:32
Hi, If useing sub directories then you would need to use an absolute call instaed of relative. Http://www.whatever.come/main.css Brian
_____________________________
|
|
|
|
abbeyvet
Posts: 5095 From: Kilkenny Ireland Status: offline
|
RE: style sheets & includes - 6/28/2002 10:09:11
I don' t think the presence or absense of quotes will make any differnece. The call mst be to the correct location of name.css As mentioned above, once the include is in its final page the styles will be applied. However it can be handy to see the styles as they will apply in the final page when you are working on the include page itself. In general includes are in an include folder, a folder off the root. So, if this called the style sheet sucessfully to a page in the root directory: <link rel=stylesheet type=text/css href=name.css> (Note: I removed period after css, which I assume was an error) Then calling the css to a file in the includes folder (or any other folder off the root) would require <link rel=stylesheet type=text/css href=../name.css> Try that.
< Message edited by abbeyvet -- 6/27/2002 10:11:05 AM >
_____________________________
Katherine :: InKK Design :: InKK Domains
|
|
|
|
MCD
Posts: 673 Joined: 3/19/2002 From: Al USA Status: offline
|
RE: style sheets & includes - 6/28/2002 13:32:49
Reflect has hit your problem squarely on the head. Use an absolute URL and your problem will be solved.
< Message edited by MCD -- 6/27/2002 1:36:28 PM >
|
|
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
|
|
|