Problem getting files to refer to correct style sheet (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


khc -> Problem getting files to refer to correct style sheet (6/21/2007 10:55:58)

I receive HTML files from a vendor that I then need to extract in order to update my site. My site has a stylesheet but when I extract these files into my site, they are placed in a folder with the name of the zip file from which they came. I then try to cut and paste them into the proper folder, but they retain in their HTML code a reference to a style sheet that contains the name of the folder from which they were moved. thus, my site's style sheet is not applied unless i manually update the HTML code of every file.

Each file contains the following reference to a style sheet: <link href="../stylesheets/stylesheet1.css" rel="stylesheet" type="text/css"> prior to being extracted. Is there a way to universally apply the style sheet of the folder into which these files are added?

Alternatively, is there a way to do a universal find/replace for a website that will update all the HTML to refer to the correct style sheet?

Thanks very much for any assistance.




rdouglass -> RE: Problem getting files to refer to correct style sheet (6/21/2007 11:50:38)

Hi and Welcome to OutFront

FrontPage has a Replace menu item that should work globally across the whole site; include files included. Have you tried that?

Hope it helps.




khc -> RE: Problem getting files to refer to correct style sheet (6/21/2007 14:13:26)

Hi,

Thank you so much! That did the trick, although it took quite awhile. I'm still confused about stylesheets but at least I now have a workaround.

Thanks again for the quick response,

Kathleen




jaybee -> RE: Problem getting files to refer to correct style sheet (6/22/2007 7:26:08)

www.w3schools.com/css/




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875