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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:45:10+00:00 2026-06-07T03:45:10+00:00

This is what I have presently: Here’s my code so far: <style type=text/css> .main

  • 0

This is what I have presently:

Image of current code

Here’s my code so far:

<style type="text/css">
    .main
    {
        background:url(bg.jpg);
        height:250px;
        }
    .ban
    {
        background-color:#333;
        height:150px;
    }
    .mask
    {
        width:75px;
        height:75px;
        float:left; 
        border:#fff solid 1px;

        margin:20px;
    }
</style>

<div class="main">
    <div class="ban">
         <div class="mask"></div> 
         <div class="mask"></div>
         <div class="mask"></div>
         <div class="mask"></div>
         <div class="mask"></div>    
    </div>
</div>

Here’s what I am aiming for:

enter image description here

I am looking to create a mask using CSS – what do I need for this?

  • 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-07T03:45:12+00:00Added an answer on June 7, 2026 at 3:45 am

    Instead of trying to create the svg or png image to position against, you could use borders (if you’re using a solid color that’s easy to work with) to replicate this.

    .main {
      background: url(//picsum.photos/800/800) no-repeat -0 -50px;
      height: 250px;
      width: 350px;
      background-size: cover;
    }
    
    .ban {
      height: 150px;
    }
    
    .mask {
      width: 50px;
      height: 50px;
      float: left;
      background: transparent;
      border: 1px solid #333;
      border-top: 20px solid #333;
      border-left: 10px solid #333;
      border-right: 10px solid #333;
      border-bottom: 50px solid #333;
    }
    
    .mask .inner {
      height: 100%;
      width: 100%;
      border: 1px solid red;
    }
    <div class="main">
      <div class="ban">
        <div class="mask">
          <div class="inner"></div>
        </div>
        <div class="mask">
          <div class="inner"></div>
        </div>
        <div class="mask">
          <div class="inner"></div>
        </div>
        <div class="mask">
          <div class="inner"></div>
        </div>
        <div class="mask">
          <div class="inner"></div>
        </div>
      </div>
    </div>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this kind of code: main() { for(i=0;i<100;i++) { if(cond1) func(1); //Just some
The title pretty much says it but here is some background: I have an
I have a multiline chunk such as this: %li =link_to image_tag(image.jpg, :size => 48x48,
I have some C++ code that is in this format: void calculate(int a, float
I have this query: SELECT to_number(gr.code) group_index, gr.NAME group_name, f.*, gr.description gr_desc FROM obj$groups
This is the required behaviour: I have various controls present on the canvas e.g.
I have a table of frequently updated information. This is presented using a container
Questions exactly like this have been asked before, i've read them all and tried
IF i have the following: MyString.ValueType = typeof(System.Decimal); how can i make this have
I'm soon to launch a beta app and this have the option to create

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.