Auto correction of a CSS file.

Posted on 2008-11-19
Last Modified: 2013-11-23
If there is any error in CSS file then how we can automatically correct that in the same file. Please tell me if it is possible in Java.
Question by:rajkumarprabhunath
    LVL 15

    Expert Comment

    There are many tools around and you can check your css syntax with this

    Author Comment

    thanks for your comment, but I'm looking for a way in which
    I can correct the errors by coding.
    Suppose I validated a CSS file and I got error at line 2 and
    column 17 then in that case how I will correct that error.
    I want to implement this by using java.
    please tell me if it is possible.
    LVL 15

    Accepted Solution

    It's possible . However, you will be like writing a parser for css and you need to know the whole "grammer system" of it. You may check out some open source css parser projects and use those API to help you.

    Author Closing Comment

    if there is any java code doing the same. please provide me that.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
    In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now