Results 1 to 7 of 7

Thread: Advantage of CSS over Javascript

  1. #1
    Join Date
    Oct 2005
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Advantage of CSS over Javascript

    I am new to CSS and I just realized that there is a lot that can be done using CSS instead of Java Scripts. Does any one know which is bette to use. I know that the use of Java script is not good when it comes to search engines. Do we have this same problem with css?

    Thanks.

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    JavaScript also doesn't work in IE 5 and down without an annoying ActiveX popping up to welcome you . And yes, in most cases using pure css is much better, seeings all browsers support it (even some handheld browsers)
    - Mike

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Not just that, but the elegance of the code: CSS is less powerful than Javascript, but compensates by being both more readable and terse with the effects it can achieve.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Feb 2007
    Posts
    601
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I think your all pretty much losing it
    They both complement eachother by this i mean that in javascript css can be used to add what i call css animation for an example say you set the letter-spacing of a text with css to 10 well thats pretty much it right there but when javascript is added it could first make the letter-spacing 1 then 2 then 3....

    And that creates a small animation withh css that looks pretty excellent !!!

    So basically what i am saying that without both of them animation is a little bad

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    We were talking about effects that could be accomplished using CSS alone.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  6. #6
    Join Date
    Feb 2007
    Posts
    601
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh sorry

  7. #7
    Join Date
    Jan 2007
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow well>

    css is easier. css cant achieve as much as javascript though. really depends if you are into code or design i guess. if you can do something with css that elimenates the use of javascript in a site, such as roll overs i would consider that a better way to build a site. thats my 2 bits anyway.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •