|
Mailing Lists
|
Home / Groups / Ajax
IE not including CSSHey all, No luck with removing the leading '/'. I think what may be playing into it is the fact that this is basically an inline chunk of HTML so that perhaps IE doesn't know what do to with the following: <style type="text/css"> @import "theme/style2.css"; </style> ...when it is insert via JS between <div> tags using innerHTML= Does that sound reasonable? Skip Bader, Terrence C CTR MARMC, 231 wrote: > try theme/style2.css with no initial "/".... > > > > The directory structure is like this: > > public_html (main doc root) > public_html/theme (location of CSS files) > > But the way the PHP code is structured all script files get included into the document root, so all references to any files, images, etc, are all relative to the doc root, so /theme/style2.css does work in Firefox. It only fails in IE. > > Should I try moving the CSS file and HTML file to the doc root to see if IE is having some kind of directory issue? > > Skip > > Bader, Terrence C CTR MARMC, 231 wrote: >> How are the directory and files setup? >> >> ~Terry >> >> Have you tried >> >> <style> >> @import(/theme/style2.css); >> </style> >> >> >> >>> My problem is that if the page retrieved from the server pulls in a >>> CSS file, like >>> >>> <link rel="stylesheet" type="text/css" >>> href="/theme/style2.css"> >>> >>> ....the elements for this style sheet are not used in the page that >>> was retrieved. >> -- >> mxAjax / CFAjax docs and other useful articles: >> http://www.bifrost.com.au/blog/ >> >> >> >> > > > > |
May 19, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||