Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7951723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:38:49+00:00 2026-06-04T02:38:49+00:00

I have a web project that I am ripping out all the inline styling

  • 0

I have a web project that I am ripping out all the inline styling and adding it to a CSS file, and I can’t help but think there is an easier way to do this.

My current process is:

  1. Search Solution for style=", if none selected, goto: 9
  2. Cut all the text between the quote marks
  3. Create new class in CSS file
  4. Paste code in class
  5. Copy class name
  6. Return to html line and paste class name in between quote marks
  7. Rename style to class
  8. goto: 1
  9. Rejoice!

I would really like to rejoice, but there seems to be a never ending supply of inline styling.

Is there a way to automate this process in Visual Studio 2010? If it requires writing a plugin, that is totally fine! I have this same task to do on many a project.

Also, I’d like to be able to do this for arbitrary tags. For example, I’m also taking all of the data-* tags and doing roughly the same thing, but adding a line of jQuery to add it back in. Something like:

$('SELECTOR').attr('data-bind','visible: IsValid');

The work is too repetitious for me not to believe there is an automated (or at least faster/better/less time consuming) way of doing this.

The project is an MVC project if that changes anything.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:38:51+00:00Added an answer on June 4, 2026 at 2:38 am

    If you’re looking for tool to replace inline style to css class, there are tools available:

    http://www.voodoobytes.info/humbles-tools/

    http://www.tinytool.net/96002/inline_css_extractor

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web project that has a \META-INF\services\javax.servlet.ServletContainerInitializer file with its content pointing
I have been trying to convert a web project that produces a war file
I have a web application project that works with a quite large database (over
I have inherited a web project that is perl based and I'm attempting to
I have inherited a web site project that makes use of a number of
We have a updatable web site project that is written in c#, it has
I have an ASP.NET VB.NET web project that references a VB.NET class library. I
I have a Spring 3.0.x web project that is displaying a page of links
Hello Ruby/Rails/Merb developers! Im currently working on a web project that will have a
I am starting a web application project that will have an Adobe Flex front-end

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.