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 6644701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:11:52+00:00 2026-05-26T00:11:52+00:00

I have a very old application that I’m working on and the style sheet

  • 0

I have a very old application that I’m working on and the style sheet has server code mixed in it.

For example:

.curCTRL { position:absolute; border:0px; background-color:<%=obj.htmlcolorconvert(obj.maskcolor) %>; <%if session("ISFF") then%>padding-right:1px;<%end if%> z-index:50; font-family: ms sans serif; font-size: 8pt;}

There are many lines just like this. I know that back in the day you could do this and I guess it wasn’t frowned upon… I think style standards today are little tighter as I don’t see too many style sheets like this anymore. However, this application allows users to have unlimited colors and fonts (to their liking). So the call to the COM object is necessary.

So my question is should I just stick with this format or is there a way I can clean it up and make this style sheet a true .css file rather than a style sheet inside a classic .asp file?

Any and all suggestions welcomed.

If the answer is to leave it for now… Then fine, I’m OK with that suggestion. However, when we update to a more modern tool set (i.e. ASP.Net), how would we set it up so that different users have custom colors and fonts?

Would server controls be the best bet?

  • 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-05-26T00:11:52+00:00Added an answer on May 26, 2026 at 12:11 am

    You could just leave it, unless it’s causing an actual problem.

    Otherwise, a “modern” solution would be to use a CSS preprocessor such as LESS, particularly the variables feature.

    This part worries me:

    <%if session("ISFF") then%>padding-right:1px;<%end if%>
    

    That looks suspiciously like it’s adding extra padding-right for only Firefox, which seems a bit of an odd thing to do.

    If that really has to be done, using this would be better.

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

Sidebar

Related Questions

I have a 3yr old application that has some controllers with some very unrestful
I have a customer (a very old person) who wants an application that has
I have a Rails application that has to co-exist with a very old legacy
We have a very old windows forms application that communicates with the server using
I have a bunch of *.TBC files from a very old application that runs
I've got a very old php application (1999) that has been worked on during
We have an old asp.net application that has no unit tests, integration tests, component
I have a very old application that now needs to be friendly to Windows
I have a very old project that includes the source from another project directly,
I have inherited a very old database that needs some data to be updated.

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.