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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:09:31+00:00 2026-05-16T15:09:31+00:00

I am having 3 input box, and i would like to dim the complete

  • 0

I am having 3 input box, and i would like to dim the complete screen except the particular input box which is being clicked.
I tried this:
http://jsbin.com/equre3/2

But when i click the textbox everything including the text box get dimmed.

On text box click this is what i needed.

all div: opacity: .5  
contactForm div: opacity .75  
current labelTextHolder div: opacity: 1    

Also, what changes should i do in CSS so that text and input show in one row.

  • 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-16T15:09:31+00:00Added an answer on May 16, 2026 at 3:09 pm

    Ok, this is just a barebones example…I’m not going to animate it or add any labels or inputs or anything…but here’s how it works in principle. The most important thing to remember about manipulating the CSS z-index property is that any element with a z-index MUST be positioned (i.e. position:relative, position:absolute, etc.):

    HTML (hypothetically):

    <div id="overlay"></div>
    <div id="div1" class="usable"></div>
    <div id="div2" class="usable"></div>
    <div id="div3" class="usable"></div>​
    

    CSS:

    ​#overlay {
        position:absolute;
        height:100%;
        width:100%;
        background-color:#333;
        opacity: 0;
        z-index:0;
    }
    
    div.usable {
        position:relative;
        z-index:1;
        width:100px;
        height:100px;
        background-color:#F0F;
    }
    
    div.active {
        background-color:#F00;
        z-index:5;
    }
    

    jQuery:

    ​$(document).ready(function(){
        $("div.usable").hover(
        function(e){
            $("#overlay").css({"z-index":2,"opacity":.5});
           $(this).addClass("active"); 
        },
        function(e){
            $("#overlay").css({"z-index":0,"opacity":0});
            $(this).removeClass("active");
        }
      );
    });​
    

    As for the whole “text and input in one row” thing, I’d recommend looking at changing the display CSS properties of the inputs and labels to show them inline or inline-block if that’s feasible within your application. Example:

    input.rowStyle {display:inline;}
    

    Hope this helps!

    ​

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

Sidebar

Related Questions

Now, this requirement may seem weird. But i would like to know how to
I've got a program I would like to use to input a password and
I would like to add a simple check box to my form: $element =
I am having the input box for getting the value in mm-dd-yyyy format.So When
I'm writing a custom control which includes a text box input and an unordered
Having a heckuva time with this one, though I feel I'm missing something obvious.
Having programmed through emacs and vi for years and years at this point, I
Having this route: map.foo 'foo/*path', :controller => 'foo', :action => 'index' I have the
Having difficulty articulating this correlated subquery. I have two tables fictitious tables, foo and
net website, i would like to implement forget password. I am using following steps

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.