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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:34:12+00:00 2026-06-06T06:34:12+00:00

Use of gradient images is very common among developers for styling a page. Gradient

  • 0

Use of gradient images is very common among developers for styling a page. Gradient images are used in many places from styling the navigation bar to styling the background. Technique like repeating a small image in either direction is also common.

One more way to style and give this effect is by using multiple div’s one below another with different color, the latter being a little lighter than the former. In the most simple scenario doing so would include only a small script. So, no problem of writing a lot of markup, just some simple code.

The only concern that remains is speed and performance.

Speed

The script, more precisely the function would be much shorter in size than a image. So, in matters of speed the latter method seems more good.

Performance

Today’s browsers are very powerful, so the difference between displaying an image and executing a function is negligible.

Css management

Obviously, problems like positioning would be another concern but we do struggle with such problems in every day life. The problem is no greater than overlapping two div’s and setting their z-index. The whole gradient div’s can lie inside one parent div.

So having addressed the issues of performance and speed isn’t using Gradient div’s a much better approach than using images?

  • 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-06T06:34:14+00:00Added an answer on June 6, 2026 at 6:34 am

    It’s an alternate approach, yes. But not a good one. You get zero points for:

    • Maintainability
    • Scalability
    • SEO
    • Separation of presentation from content

    Furthermore, to say that we needn’t worry about performance since today’s browsers are more powerful is a gross assumption.

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

Sidebar

Related Questions

I want to use Imagemagick to add a transparent gradient from the left and
Is it possible to use a linear gradient brush to paint the background of
use Rack::Static, :urls => ['/stylesheets', '/images'], :root => 'public' run proc { |env| [200,
I try to use the GradientDrawable to set a gradient to some backgrounds and
I'm trying to use the webkit gradient tag for Chrome, but it doesn't work
I use in my program PNG images with gradients. Images look fine in design
I used this site: http://www.generateit.net/gradient/index.htm?start_colour=%23FFFFFF&end_colour=%23666666&height=20&width=1&type=top to generate a 20 pixel hight and 1 pixel
i use this as a background bar ... repeated of course http://www.freeimagehosting.net/uploads/3c2f75b680.gif and i
The boss wants the master page's menu to look nicer. I generated my gradient
all As you can see in images i have gradient background (this is responsive

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.