Pages: [1] |
|
|
Author |
Topic: CSS - problem apparently not addressed by results so far. (Read 620 times) |
iowarth
Posts: 5
|
I am having a problem a few other users appear to have had where external CSS styles do not show in the styles drop-down list. So far as I can see, these other users problems were resolved by changing the stylesheet link to valid HTML. So far as I can see, my style sheet link IS valid - it is within the HEAD tags and outside both the snippet and template editable regions and reads <link rel="stylesheet" type="text/css" href="hct2006a.css">. It can be seen working at, for example http://www.herpconstrust.org.uk/habitat.htm.
These styles DID appear when I had only an admin user set up. I have now added a power user but they have vanished in both!
Any help/assistance would be greatly appreciated.
Many thanks
Chris
|
|
|
|
Jenkinhill
|
The style sheet is picked up on all the sites to which I have added SnippetMaster, so I know it does work. Looking at your css there is only one class there which I would expect to be picked up - .normal (and possibly .copyright, but there is no occurence of that class on the page) but in the style sheet you also have normal and Normal entered as HTML elements?
I think the editor is struggling with your page for several reasons. Firstly, because you don't always use closing paragraph tags </p> the snippet start/end tags are poorly located, which in itself may cause problems. I think the main issue for styles is that the page has no DTD. This is essential for the editor (and a web browser) to know how to interpret the page code. Have a look at page validation to see some of the code issues.
Having said that the site is good with a lot of information. I have bookmarked it for future reference. 
|
Kelvyn
|
|
|
iowarth
Posts: 5
|
Many thanks kelvin. I will have a loom at these issues.
Cheers
Chris
|
|
|
|
iowarth
Posts: 5
|
As Kelvyn stated, there were numerous validation errors on the specified page. Bearing in mind that CSS styles used to show even though these errors existed, I streamlined the CSS file, added a very distinctive style for test purposes and validated it at W3.
I then created a test page at http://www.herpconstrust.org.uk/test1.htm with very little content, a valid DTD and the use of a few of the CSS styles and again validated this with W3.
I then tried opening in snippetmaster and again, (=still !) no styles in the drop-down appeared even though 3 distinct custom styles were used together with three modified header styles.
In appearance, in the WYSIWYG edit box, the styles recognise the font and in the preview apparently recognise nothing! Nor is the background colour recognised. Notably, when viewing in HTML mode, Sippetmaster must be doing something as it adds an "mce_href" for the CSS.
Again, further assistance would be appreciated. I keep feeling, since this is a change from how things used to appear, that I have mucked up a setting within Snippetmaster somewhere.
Cheers
Chris
|
|
|
|
Jenkinhill
|
Chris, have you tried a different browser? Just in case....
I can't see a change within SnippetMaster would cause the syles not to load now while they did previously. The usual reason is due to code issues which you have tried to test with this new page. You have used a valid DTD, but it is a very old HTML one, as the editor in SnippetMaster is writtent to use XHTML 1.0 transtional as a minimum standard. There is a report from a user that the editor did not load properly when an old HTML loose DTD was used. I would also try removing the normal and Normal XML elements from your style sheet, keeing the .normal class definition, but I have no idea if the use of XML statements would make a difference!
|
Kelvyn
|
|
|
iowarth
Posts: 5
|
Thanks again Kelvyn
Well, I have tried five different browsers over three different machines and three different operating systems! In addition I changed the test page to XHTML transitional (and validated it) created a separate, simpler CSS for it and ................ no difference at all ! I am becoming ever more confused - as I said, it DID work absolutely fine. The change seems to have been since I added a user.
Has anybody any more ideas?
Chris
|
|
|
|
|
Pages: [1]
|
|
|
|