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

  • Home
  • SEARCH
  • 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 7036349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:24:48+00:00 2026-05-28T01:24:48+00:00

jquery-ui-dialog uses an overlay div for modal dialogs. The div has this style: .ui-widget-overlay

  • 0

jquery-ui-dialog uses an overlay div for modal dialogs.
The div has this style:

.ui-widget-overlay {
  background: #AAA url(images/ui-bg_flat_75_aaaaaa_40x100.png) 50% 50% repeat-x
  opacity: 0.3;
}

Why does it specify both background color and image?
Why not just a color?

  • 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-28T01:24:49+00:00Added an answer on May 28, 2026 at 1:24 am

    I think it is safer to always apply a color along with the background image.

    The browser could not support png format, or the request for the image could fail (for whatever reason).

    The color on the other hand will always be applied. See it as a sort of backup plan 🙂


    Edit:

    You actually do not require an image file to simply create a colored semi-transparent overlay. Just background-color and opacity are sufficient.

    I think the exact reason is that jquery ui allows applying textures (you can choose them or disable them in the ThemeBuilder app on the jquery ui website. This is why the image is used, even when no texture is selected. No texture is actually the “flat” texture. You can actually see it in the name of the image file:

    ui-bg_flat_75_aaaaaa_40x100.png
    
    • flat = no texture, flat color
    • 75 = opacity of the texture (using png alpha channel)
    • aaaaaa = color of the texture
    • 40×100 = size of the pattern

    If you apply the “white-lines” texture to the overlay in the ThemeBuilder, it will generated image files with this name:

    ui-bg_white-lines_75_aaaaaa_40x100

    The first part of the answer is still valid but this is more the main reason in the case jquery ui.

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

Sidebar

Related Questions

When we display our grid (jqGrid) in a jQuery modal dialog it uses different
I have a dialog window that uses a URL for its contents { function(){jQuery.ajax({'success':function(html)
I'm using a jQuery modal dialog (see link ) with an element that uses
I have the following code that simply uses a jquery ui modal dialog to
I'm trying to add a jQuery UI modal dialog to show when a function
I have an ASP.NET website which uses the jQuery dialog to present the user
I'm needing to make this layout editor that uses a good bit of jQuery
I have a dialog that uses jQuery UI and is opened by clicking on
I have an application that uses jQuery to open a dialog box with a
I have the following aspx/html page, it uses jquery to display a modal form.

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.