This is a discussion on "Can I put style sheet in the root folder that targets a specific html page" within the Web Page Design section. This forum, and the thread "Can I put style sheet in the root folder that targets a specific html page are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Can I put style sheet in the root folder that targets a specific html page
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Can I put style sheet in the root folder that targets a specific html page
(Newbee)
Can a CSS stylesheet do this ? I have a site with all the files , images, html, and .js files in the root folder. I have my reasons for doing it this way. Can I put style sheet IE ( <style type="text/css"> ) in the root folder that targets a specific html page, say "page1.html" ? Or must I create a seperate folder in the root dir to hold external CSS stylesheets that apply to various pages IE: page1.html, page2.html,page3.html ect. ? <link rel="stylesheet" type="text/css" href="css/global.css" /> How would I write the link to target the specified webpage ? TIA Badger |
|
|
|
|||
|
Re: Can I put style sheet in the root folder that targets a specific html page
i don't quite get what you mean.
you can have as many css files on your website as you want and only the ones you link on the page will be used. One recommendation i would personally make is as follows: example: you have three pages, one is red, one is blue and one is orange. Have one css file for your general layout and add that to every page. then have three more css files, red.css, blue.css and orange.css which add the colour and attach them to the page directly after your main css file. Also if you have any changes to your layout for the specific pages, you can add them there as well. Hope this helps, if i've got your question wrong, please enlighten me and I'll get back to ya. |
|
|||
|
Re: Can I put style sheet in the root folder that targets a specific html page
Thanks Darren I see what you mean. I just need to be sure of the css path for the page. say blue.css
If blue .css is in my root Dir, I'm not sure of the code link on the blue.html page to call the css file. Hope you understand what I mean. |
|
|||
|
Re: Can I put style sheet in the root folder that targets a specific html page
a lot of it depends on your hosting. If your css is in the same folder at the pages, you should be able to just put the filename.
if you want is relative to your root directory (like public_html or wwwroot), try
|
![]() |
| Tags |
| newbee |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why Style sheet isnt working | kaz | Web Page Design | 19 | Dec 21st, 2007 01:10 |
| CSS Print Style Sheet Problem | bennyboy7 | Web Page Design | 1 | Aug 14th, 2007 08:58 |
| new to css: what's the best way to insert image using the external style sheet? | mad samuel | Web Page Design | 14 | Aug 10th, 2007 17:52 |
| How to tell IE7 to use a pariticular style in a single style sheet | figo2476 | Web Page Design | 5 | May 25th, 2007 14:23 |
| Linking to an external style sheet | ahm531 | Web Page Design | 6 | Aug 31st, 2006 13:23 |