|
womble -> RE: Importing style sheet isn't working (6/21/2005 6:33:26)
|
Thanks for that Carol, and thanks also for pointing out the extra <div>. That was me being lazy. I was having problems yesterday with the top of the tabs overlapping the sub-heading when the text re-sized and via the FF developers toolbar worked out where the problem was, but rather than correcting it properly I put an extra <div> in with an en space in to create more space, then changed my mind later but forgot to take out the empty <div>. I was religiously re-validating every time I made changes, but I got so flustered with it and the heat yesterday I must have forgot. Fortunately it's cooler here today too. Anyway, all is validating now, but I was still having problems getting the stylesheets to load. Then I realised I hadn’t validated the CSS either, tried it, and realised that I’d got the import directives in wrong in both of the additional CSS files. I’d put: @import (url default.css); instead of: @import url (default.css); I’ve changed both of them, and all’s working now in IE, but they’re still losing the formatting in FF, NN and Mozilla. Opera’s completely ignoring them. Even with the changed import directives I can’t get them to validate, but I can’t work out why. The two files are: /*stylesheet for the medium text size version of the site*/ @import url (default.css); body, div, p { font-size: large; } and: /*stylesheet for the large text size version of the site*/ @import url (default.css); body, div, p { font-size: x-large; } The page is here. It’s driving me crazy because it seems to be some sort of problem with the import directives, but I can’t work out what! Any suggestions appreciated. Thanks, Womble
|
|
|
|