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

The Archive Base Latest Questions

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

I have an image that is 1024×1024 and is divided into 4 quadrants: I

  • 0

I have an image that is 1024×1024 and is divided into 4 quadrants:
image with four quadrants

I would like to shrink this image down such that quadrant 2 is 256×256 and mask out, or hide, the other 3 quadrants such that it is only visible on the page. Like this:

resized masked image

How can this be done? Is it possible with pure CSS or is js needed along the way?

  • 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-28T05:48:21+00:00Added an answer on May 28, 2026 at 5:48 am

    Assuming the browsers you’re targetting (FF4+, IE9+, Safari 4.1+ Chrome 3+) can use the background-size CSS property, then you can do this in CSS alone:

    .bg {
        background-image: url(https://i.stack.imgur.com/HQaif.jpg);
        background-repeat: no-repeat;    
        background-size: 203%;
        background-position: top left; 
        width: 256px;
        height: 256px;  
    }
    

    If you remove the red keyline between each section then the size property can be made 512px and it would make the calculation easier, should you need to resize again in future.

    Example fiddle

    More information on background-size

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

Sidebar

Related Questions

I have a background image that is 1024 x 1024 pixels; the reason for
I have image map that can I move, but this map will be so
I have an image that I get and attempt to load into a graphics
I have an image that, depending on the screen resolution, drops down out of
I have one image 768 x 1024 size. second image is on that image
I have a 1024*768px image that I want to use as a background for
I have a script that runs to upload an image, then resize it into
Here's the situation: I have a two images that are over 1024 in width
I have an image that I want to position in the right and repeat
I have an image that is served as static file using Nginx, but I

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.