Support Forum » Style Master

behavior: statement

(3 posts)

  1. jgrass
    Member

    I'm trying to play with the Multi Drop menu example from Charles Wyke-Smith's "Stylin' with CSS" book.

    For that to work in IE, it uses a statement like this:
    #multi_drop_menus {
    behavior: url(../../lib/js_tools/csshover.htc);
    ...
    }`

    Style Master 4.6 flags this as invalid, and "behavior" doesn't seem to be anywhere in the Properties Editor lists. I can see that SM4.6 might have a problem executing the stuff in the .htc script, but to flag it as invalid?
    Is there some way to work around this, or do I have to play with this outside of SM4.6?

    Posted: 2 years #
  2. JohnAllsopp
    Member

    Hi,

    behavior is not part of CSS - it's a proprietary extension that works in IE only. So I think it is fair to flag it as invalid.

    That being said, that's all that style master does with it - provided you can live with it being styled in the text editor as invalid, there is no other restriction on its use.

    Hopefully that's a fair compromise?

    Thanks

    john

    Posted: 2 years #
  3. jgrass
    Member

    Turns out, that is good enough. I had to unravel a few other side issues, but I've got it working in IE, Firefox, Opera and Safari by linking to the HTC in the XHTML header (the "X" here turns out to be a big part of the puzzle).

    I'll try it with putting back the behavior statement too and see what happens.

    I am really enjoying playing with CSS and the Style Master tool. It's quite an adventure... I started writing HTML and messing with browsers back in 1994 or so and then "retired" in Jan 2000 from a paying job at Cybercash. We coded pages in a simple text editor. This is soooo much easier!

    Posted: 2 years #

RSS feed for this topic

Reply

You must log in to post.

0.054 - 9 queries