External stylesheet in the body? (Full Version)

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



Message


mtfm -> External stylesheet in the body? (12/8/2006 11:03:50)

I have a site made and maintained in a CMS. I want to use this CMS and link to my own external stylesheet. I have managed to do it and it works (at least in IE6), but I can only insert the link to my stylesheet in the body of the page.

AFAIK this is not correct...is it?

It does work, but I don't think it should and I am hesitant to go through all this trouble and then have things break in IE7.

Input, anyone?




Tailslide -> RE: External stylesheet in the body? (12/8/2006 11:10:32)

Nope - the stylesheet link should definitely go in the document head. Do you have access to the files that the CMS uses to construct the pages or access to the stylesheet the CMS is using?




mtfm -> RE: External stylesheet in the body? (12/8/2006 11:25:45)

Thanks for confirming that. I was 99% sure, but then when it actually worked, it threw me. Since it does work though maybe I can put a disclaimer in that you must only use IE 6 or else risk not seeing anything correctly. (That was a joke, by the way!) [:D]

As to accessing those files, it's all very locked down. There's no way. The whole point of moving to this CMS is for uniformity across all groups (this is a worldwide company with many many divisions, and they're trying to put all their intraweb resources in one place.) Uniformity is one goal they are definitely achieving, though at the expense of several others. I was hoping to import my own CSS to change a few things around and bring in a CSS menu.

Just trying to be a rebel, I guess! [8D]

ah, well.




Tailslide -> RE: External stylesheet in the body? (12/8/2006 11:40:44)

quote:

ORIGINAL: mtfm

Just trying to be a rebel, I guess! [8D]

ah, well.


Well you could always write your own stylesheet and have firefox apply it when you're on the site so at least it will look different to you!




womble -> RE: External stylesheet in the body? (12/8/2006 12:16:01)


quote:

ORIGINAL: mtfm

As to accessing those files, it's all very locked down. There's no way. The whole point of moving to this CMS is for uniformity across all groups (this is a worldwide company with many many divisions, and they're trying to put all their intraweb resources in one place.) Uniformity is one goal they are definitely achieving, though at the expense of several others. I was hoping to import my own CSS to change a few things around and bring in a CSS menu.


You could try contacting whoever maintains the CMS and asking if it's possible to add your stylesheet, or your styles to the existing stylesheet. I've just started doing some editing on our website and intranet at work (the one I do 2.5 days a week that's 90% not web stuff) - the site's horrible and the CMS is even more horrible (just looking at the code it produces the other day made me feel ill [:'(]), and I'm very limited to what I can do with pages (nasty horrid templates that leave no room for doing anything vaguelly creative), but if I need a different style for something I have to contact the head web guy and get him to add my styles into the global stylesheet. If you can justify why you need styles additional to the "standard" ones, like for a CSS menu, they may just be amenable. Whatever, good good my fellow rebel [;)] I was very naughty and put some text in in <whispers very quietly>a different font</whispers> the other day! [img]http://ecanus.net/smileys/shocked-yellow.gif[/img]




jaybee -> RE: External stylesheet in the body? (12/8/2006 13:08:12)

Usually the CMS itself is broken down into several bits. If you look through the files you may find something in there called header.php or asp or whatever you're using. If you take a look in there it may be possible to add the stylesheet link.

If not, then it's a case of hunting through all the files trying to find the one that writes the header info and meta tags.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.1074219