SnippetMaster Support Forums
Return to main website
 
December 08, 2008, 05:55:35 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 08, 2008, 05:55:35 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: CSS - problem apparently not addressed by results so far. « previous next »
Pages: [1] Print
Author Topic: CSS - problem apparently not addressed by results so far.  (Read 620 times)
iowarth

Posts: 5


[-] CSS - problem apparently not addressed by results so far.
« on: November 11, 2007, 03:05:38 PM »

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
Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 364



[-] Re: CSS - problem apparently not addressed by results so far.
« Reply #1 on: November 12, 2007, 01:19:08 AM »

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.  Smile
Report to moderator   Logged

Kelvyn
iowarth

Posts: 5


[-] Re: CSS - problem apparently not addressed by results so far.
« Reply #2 on: November 12, 2007, 03:57:03 AM »

Many thanks kelvin. I will have a loom at these issues.
Cheers
Chris
Report to moderator   Logged
iowarth

Posts: 5


[-] Re: CSS - problem apparently not addressed by results so far.
« Reply #3 on: November 12, 2007, 06:18:20 AM »

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
Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 364



[-] Re: CSS - problem apparently not addressed by results so far.
« Reply #4 on: November 12, 2007, 06:58:21 AM »

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!
Report to moderator   Logged

Kelvyn
iowarth

Posts: 5


[-] Re: CSS - problem apparently not addressed by results so far.
« Reply #5 on: November 12, 2007, 01:15:13 PM »

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
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: CSS - problem apparently not addressed by results so far. « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!