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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:33:40+00:00 2026-05-23T12:33:40+00:00

Think about a rectangular div, which is split into 2 parts, each part is

  • 0

Think about a rectangular div, which is split into 2 parts, each part is L shaped (like shown below), region 1 for left-side L and region 2 for right-side L.

I would like to hover, change the background color for example, region 1 on mouse-over, same for region 2. Is there any way to do it with CSS (without using javascript) ?

 ____ ___
|  __|  |
|_|_____|
  • 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-23T12:33:40+00:00Added an answer on May 23, 2026 at 12:33 pm

    Fiddle: http://jsfiddle.net/nts32/

    html

    <div id="left">
        <div></div>
    </div>
    <div id="right">   
        <div></div>
    </div>
    

    css

    #left, #right {
        height:300px;
        width:150px;
        position:absolute;
    }
    
    #left > div, #right >div {
        height:150px;
        width:150px;
        position:absolute; 
    }
    
    #left, #left > div {    
        background-color:#cef;  
    }
    
    #right, #right > div {  
        background-color:#fec;
        left:300px;  
    }
    
    #left > div {
        left:150px;   
    }
    
    #right > div {
        left:-150px;
        top:150px;  
    }
    
    #left:hover, #left:hover > div {
        background-color:#acd;   
    }
    
    #right:hover, #right:hover > div {
        background-color:#dca;   
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What do you think about mixing Repository and Active Record patterns like below? How
I have a problem which I like and I love to think about solutions,
I'd like know what people think about using RAISERROR in stored procedures to pass
Think about a table like this ID Value 100 1 100 3 101 1
Think about a speedometer, and imagine all these little strokes around it like 10
think about an array like this: ... key1 => some_call(val1, $params), key2 => some_call(val1,
I think about writing a J2ME application for the Nokia 5230 which can communicate
I'd like to speed up junit tests and I think about using forkMode=once .
What do you think about this build tool ? I'm thinking of migrating from
When you think about it, doesn't the REST paradigm of being resource-oriented boil down

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.