tag:blogger.com,1999:blog-6718406939865222936.post7346717985881702781..comments2024-03-16T20:51:58.301+01:00Comments on the web thought: CSS: create a footer (header) for your asp pageMarco Del Cornohttp://www.blogger.com/profile/00863522198118005628noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-6718406939865222936.post-17263894415385924142013-11-13T17:26:03.034+01:002013-11-13T17:26:03.034+01:00Great! Thanks. Great! Thanks. Marco Del Cornohttps://www.blogger.com/profile/00863522198118005628noreply@blogger.comtag:blogger.com,1999:blog-6718406939865222936.post-29007656114353947602013-11-13T17:23:31.254+01:002013-11-13T17:23:31.254+01:00Well, it works. Thanks so much. I put the wrong pa...Well, it works. Thanks so much. I put the wrong path in the css. Thanks so much again. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6718406939865222936.post-27639335589603604272013-11-13T17:23:26.657+01:002013-11-13T17:23:26.657+01:00Is the CSS not working or you don't see the he...Is the CSS not working or you don't see the header and footer at all?<br />As said, check relative or absolute path for includes. Can't help you more. Sorry. Marco Del Cornohttps://www.blogger.com/profile/00863522198118005628noreply@blogger.comtag:blogger.com,1999:blog-6718406939865222936.post-7589236280022257632013-11-13T17:17:10.938+01:002013-11-13T17:17:10.938+01:00Thanks again for your support. I tried to cut and ...Thanks again for your support. I tried to cut and paste my code into this post but I don't think your forum accepts the source code. I kept getting this error message: [Your HTML cannot be accepted: Tag is not allowed: HTML].<br /><br />To summarize: <br /><br />The header is the same as your header.asp except I change the [bottom] to [top] and I added the code for head, title to the header.<br /><br />The footer is the same as your footer.asp<br /><br />The AboutUs.asp page is a simple page with the include file for header and footer and a line of text in between.<br /><br />The issue is the css for header/footer does't kick in when I load AboutUs.asp page. It's got to have something to do with the path itself (../../header.asp). I googled it for days but couldn't come up with any resolution. <br /><br />I appreciate for any input you might provide.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6718406939865222936.post-10412264863690243622013-11-13T16:49:43.450+01:002013-11-13T16:49:43.450+01:00I cannot see the code. It is impossible to help yo...I cannot see the code. It is impossible to help you this way. Anyway, try to put the CSS inside the header and footer pages that you include. Check the links for the includes. Marco Del Cornohttps://www.blogger.com/profile/00863522198118005628noreply@blogger.comtag:blogger.com,1999:blog-6718406939865222936.post-72490626534463413452013-11-13T16:43:37.326+01:002013-11-13T16:43:37.326+01:00My link works OK. I know this is very tricky becau...My link works OK. I know this is very tricky because my other asp pages are stored inside folder/sub folder.<br />Your help is greatly appreciated.<br /><br />Here it goes again:<br /><br />I have a default.asp page that has a link that links to [AboutUs.asp] and the path for it is [ root > Home > AboutUs > AboutUs.asp ]. In the AboutUs.asp page I have the following code:<br /><br />============================<br />Include file for header.asp (Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6718406939865222936.post-37232369965832092372013-11-13T16:29:50.266+01:002013-11-13T16:29:50.266+01:00Check the links Check the links Marco Del Cornohttps://www.blogger.com/profile/00863522198118005628noreply@blogger.comtag:blogger.com,1999:blog-6718406939865222936.post-77060463141284975402013-11-13T16:02:59.144+01:002013-11-13T16:02:59.144+01:00I got it working for the default.asp page with hea...I got it working for the default.asp page with header and footer. Thanks again.<br />However, when I created another asp page which include header and footer in a sub folder then the css for header/footer don't seem to work correctly. <br /><br />Here is my folder structure:<br /><br />Root<br />==>default.asp<br />==>header.asp<br />==>footer.asp<br />==>Home [folder]<br />==> ===>AboutUs [folder]<br />==> ===> ===>AboutUs.asp [file]<br /><br />This is my AboutUs.asp file:<br /><br /> <br />The body tag goes here and I removed the body tag because it will display an error message on your website [Your HTML cannot be accepted: Tag is not allowed: BODY]<br /><br />This is AboutUs page<br><br /><br /><br /><br />When I loaded AboutUs.asp page, the header/footer css doesn't kick in. <br /><br />Could you please tell me what I did wrong?<br /><br />Thanks so much.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6718406939865222936.post-86412798630292786602013-11-13T15:50:30.478+01:002013-11-13T15:50:30.478+01:00Nope
Just follow the rules for both header and foo...Nope<br />Just follow the rules for both header and footer. Marco Del Cornohttps://www.blogger.com/profile/00863522198118005628noreply@blogger.comtag:blogger.com,1999:blog-6718406939865222936.post-30586310496525144432013-11-13T15:34:05.510+01:002013-11-13T15:34:05.510+01:00Thanks for this article. It's simple but power...Thanks for this article. It's simple but powerful. I created the header as you asked and I included the include file for the header above the default.asp page but the body text appears at the top instead of the header. So this is what I would like to accomplish:<br />include file for header.asp<br />content<br />include file for footer.asp<br /><br />Do I have to add some code for content in css file?<br /><br />Thanks again.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6718406939865222936.post-29961079742388479982013-02-01T07:41:07.678+01:002013-02-01T07:41:07.678+01:00Thanks to you, Sami!Thanks to you, Sami!Marco Del Cornohttps://www.blogger.com/profile/00863522198118005628noreply@blogger.comtag:blogger.com,1999:blog-6718406939865222936.post-87121613437920371182013-01-31T22:09:53.033+01:002013-01-31T22:09:53.033+01:00Love it, got appreciation from my boss after imple...Love it, got appreciation from my boss after implementing your css. thanks bro..Samihttps://www.blogger.com/profile/02918892316901941234noreply@blogger.comtag:blogger.com,1999:blog-6718406939865222936.post-11089794076904117982012-03-08T07:02:02.840+01:002012-03-08T07:02:02.840+01:00Fernando, I'm glad it helped you!
Keep on foll...Fernando, I'm glad it helped you!<br />Keep on following...Marco Del Cornohttps://www.blogger.com/profile/00863522198118005628noreply@blogger.comtag:blogger.com,1999:blog-6718406939865222936.post-31660046525081569402012-03-08T01:16:07.463+01:002012-03-08T01:16:07.463+01:00Excellent! Solved my problem. Thanks.Excellent! Solved my problem. Thanks.Fernando Linhareshttps://www.blogger.com/profile/16805958876947973812noreply@blogger.com