RE: [WSG] Can this function be duplicated using CSS
Hi Jeff The answer/question is not whether this can be done with CSS, but rather can it be done with standards-based design. CSS defines the presentation of a page and not the behavior. Your example is using a hover activity to cause a section to scroll. This would be better done with DOM oriented JavaScript. There are some very talented JavaScript programmers on this list, Thierry and Patrick to name two, that could describe the steps involved in replacing this flash movie with semantic code. Ted www.tdrake.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Sent: Wednesday, August 24, 2005 9:44 AM To: wsg@webstandardsgroup.org Subject: [WSG] Can this function be duplicated using CSS http://www.electrabike.com/04/bikes/05bikes/cls/05_cls_01.html The scrolling section...can this feature/function be duplicated using nothing but CSS? The entire scroll effect, the links and targets, etc. If so can someone be kind enough to explain how and give some url examples to tutorials that help in accomplishing this? Thanks Jeff ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help **
Re: [WSG] Can this function be duplicated using CSS
On Aug 24, 2005, at 9:44 AM, Jeff wrote: http://www.electrabike.com/04/bikes/05bikes/cls/05_cls_01.html The scrolling section...can this feature/function be duplicated using nothing but CSS? The entire scroll effect, the links and targets, etc. If it could, it wouldn't be a good thing to choose to do. * If you want it to say something, use HTML. * If you want it to look some way, use CSS. * If you want it to act different, use JavaScript. A more "pure" approach would be to say, "If you want it to do something, use JavaScript," but HTML allows for links and form submission, and CSS allows for :hover. But the key here is that behavior should be scripted; even if you could do it in CSS, that's not the proper place for it and will cause many headaches down the line -- the same headaches caused by people putting presentational markup in their HTML. -- Ben Curtis : webwright bivia : a personal web studio http://www.bivia.com v: (818) 507-6613 ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help **