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

The Archive Base Latest Questions

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

I am developing an application which displays multiple views as tables (for example customers,

  • 0

I am developing an application which displays multiple views as tables (for example customers, products, etc.). The last column of each row contains buttons, using which the user can perform some actions on a specific row. Simplified example:

<td class="actions">
  <a href="projects/some-project/edit">
    <img src="images/edit-project.png" alt="Edit project" />
  </a>
  <a href="projects/some-project/do-something">
    <img src="images/someaction.png" alt="Do something else with the project" />
  </a>
</td>

The images are transparent pngs. The amount of buttons per table can vary, now there are about 30 in total.

I was asked to make changes in the application css styles, so different tables can now have different colours, for example the customers table now has some grrenish tint, the projects one is blue and so on. Moreover, “odd” table rows have a slightly different colour than “even” ones. The rows also change colours if they are selected.

The problem is that the design states that the buttons have to change colours along with the rows. This requires making lots of button – colour combinations, and there will be more buttons added in the future.

I think a better way than assigning the designer with making hundreds of versions of the buttons in different colours is to make it dynamically, depending on the table class. My question is – what would be the most efficient way to do it? The application uses php as the server-side language and javascript with jQuery on the client side. The problem with the images is that they are not monochrome but use multiple colours so I would have to manipulate their HSL according to css classes.

If the better way if to use php, I would probably use ImageMagick. The question is what is the best method to acquire an image coloured very closely to a provided colour.

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

    I would use jQuery for this and set the color behind the png or of the png regarding the css class/es of the table.

    Dont use too much php like Imagemagick because it slows down the rendering of the page dramatically.

    take a look at Pixastic (coloradjust)
    https://github.com/jseidelin/pixastic
    http://www.pixastic.com/lib/docs/actions/coloradjust/

    or PaintbrushJS (colour tint)
    https://github.com/mezzoblue/PaintbrushJS
    http://mezzoblue.github.com/PaintbrushJS/demo/

    or CamanJS (colorize)
    http://camanjs.com/
    http://camanjs.com/guides/#BuiltIn
    https://github.com/meltingice/CamanJS/

    or VintageJS
    http://rendro.github.io/vintageJS/
    https://github.com/rendro/vintageJS

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

Sidebar

Related Questions

I'm developing an interactive MFC application which displays a 3D object using my own
I am developing a Facebook application on iPhone which displays feed from a community.
I am currently developing a web application which will be used by multiple clients,
I am developing a small application which displays the installed application as a list
I'm developing a Qt application on Mac OS X (Snow Leopard), which displays the
I am developing an application; which will run on a system with 2 displays.
I am in the process of developing a application which displays dialogs depending on
In my mac application I'm currently developing, I have an iKImageBrowserView which displays something
I'm developing an application which make use of display lists offered by OpenGL. My
When developing an application which mostly interacts with a database, what is a good

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.