Change the top board division

Is it possible to make a CSS-div resemble the board shown in this image ?

What is this particular design style referred to as?

I experimented with the skew property but couldn't quite achieve the desired effect.

.board {
    width: 325px;
    background: #ddd;
    border: 1px solid #ccc;
    height: 300px;
    margin-left: 300px;
transform: skew(5deg, 40deg);
}

Answer №1

Here is an example of how it can be done

#container {
    position: relative;
    height: 250px;
    width: 250px;
    margin: 50px;
    margin-top: 0;
    padding: 10px;
    padding-top: 0;
    perspective: 300px;
}

#box
{
    display: inline-block; 
    transform: rotateX(45deg);
}

#row {
    background-color: blue;
    width:50px;
    height: 50px;
    display: inline-block;
}
<div id="container">
  <div id="box">
    <div id="row"></div>
    <div id="row"></div>
    <div id="row"></div>
    <div id="row"></div>
    <br />
    <div id="row"></div>
    <div id="row"></div>
    <div id="row"></div>
    <div id="row"></div>
    <br />
    <div id="row"></div>
    <div id="row"></div>
    <div id="row"></div>
    <div id="row"></div>
    <br />
    <div id="row"></div>
    <div id="row"></div>
    <div id="row"></div>
    <div id="row"></div>
  </div>
</div>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Tips for incorporating background color with CSS pseudo-elements

I'm attempting to replicate the outcome shown in the screenshot but I'm having difficulty achieving it without adding any new DOM elements. When I click on the demo link and choose a date range, the start date and end date selections are not dis ...

Steps for adding a delete icon to a text input field and enabling the functionality to delete text

In the code snippet below, I am creating a text input field: <input type="text" class="signup-input text-value" name="" placeholder="e.g. <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2d48554c405d41486d">[email pro ...

Update the blue glow effect on checkbox inputs within Bootstrap 4 to create a unique visual experience

This query has been asked repeatedly, and I have exhaustively attempted numerous solutions. Here is my code snippet: <div class="btn-group" id="btn-container" data-toggle="buttons"> <label class="btn classic-design"> <input type ...

Searching in Python Django with multiple attributes involvedUsing multiple attributes for

My search form consists of three fields: [Doctor][Specialty][City] Below is the HTML code for the form: <form data-provide="validation" data-disable="true" class="input-glass mt-7" method='POST' action='annuaire/'> ...

What is the best method for clearing DOM variables and storage when a new innerHTML is loaded dynamically in a Single Page Application?

When I load Dynamic HTMLs with JS into a div on an index page, the content of the div gets updated dynamically based on user actions using the JQuery.load function. The loaded HTML includes JS files that are also added to the DOM and work as expected. How ...

I'm struggling to solve a straightforward jQuery sliding issue

I am struggling to make text slide from right to left on my website. I want the text to appear only when the page loads or refreshes, and then slide off when a link is clicked, revealing new text. Can anyone help me figure this out? http://jsfiddle.net/XA ...

After hovering over the box, we can observe the :after pseudo

Encountered an issue where the box fails to appear when hovering over the :after element. HTML CODE: <div class="top_line_dropdown"> <span class="logged_in_user"> <a href="/cdn-cgi/l/email-protection" class="__cf_em ...

How to position Angular Component at the bottom of the page

I have been working on my angular application and recently created a footer component that I want to stay at the bottom of the page like a typical footer. The footer component is included in the default app.component.html file, which makes it visible on th ...

What is the best way to ensure that the size of a header is balanced on both margins?

I just recently began learning CSS about a week and a half ago, and I'm facing a challenge that I'm struggling to overcome. I want my webpage to have the same design as shown in this image, but despite trying various solutions, I can't seem ...

Functionality fails to load correctly post completion of AJAX request

After successfully implementing an API call to OS Maps (UK map builder) as per their documentation, I encountered a problem when trying to display a map based on a custom field name using ACF (Advanced Custom Fields) in WordPress. The issue arises because ...

Ways to customize the appearance of the Next/Prev Button in Griddle

Here is the scenario that has been implemented: nextClassName={'text-hide'} nextText={''} nextIconComponent={ <RaisedButton label='Next' />} As a result, a Next Button with a wrapper div above the but ...

Achieve a full-width span for a single item in a CSS grid without any alterations to the HTML code

How can I make the first item in this grid span 100% without changing the HTML structure? The first item is assigned an extra class ".sub" Is it possible to achieve this? Click here for more information <div class="fd-col fd-5col"> <div class= ...

What could be causing the bottom of a vertical scroll bar to be cropped in Internet Explorer 11?

I am experiencing an unusual problem in IE11 where the content at the bottom of my page is being cut off along with the scroll bar that should allow for viewing that content. I have managed to resolve this issue in Chrome, Firefox, and Edge but I cannot se ...

Utilizing Selenium for Crawling in Java to Expand and Collapse with the click of [+] and [-] icons

I am attempting to implement an expand and collapse feature using [+] and [-] buttons on a website through selenium. The HTML code I have written is as follows: <div onclick="abc_Click(this);" class="liCollapsed"> The abc_Click(this) ...

Is there a method to incorporate scss into a project without requiring a separate stylesheet?

I am currently working on a Gatsby application that utilizes SCSS. My code snippet looks like this: import React from "react"; import styles from "./mosaic.module.scss"; import Tile from '../tile/tile'; const Mosaic = (): JSX.Element => ( ...

Place three images in the center of a div container

Recently, I've been working on some HTML code that utilizes the Angular Material library: <div layout="row" layout-wrap style="background: yellow; "> <div ng-repeat="pro in Products" > <md-card class="cardProduct" > ...

HTML/CSS Question: How does the z-index property work with the position:

I have a lengthy table containing numerous rows. My goal is to implement an on-hover effect for the rows, where a popup div will appear displaying additional information specific to that particular row. My initial solution involved using a div element an ...

The HTML5 Canvas application is currently experiencing difficulty rendering images on Internet Explorer 8 browser

I have developed an HTML5 canvas program that copies an image into a canvas object and changes the transparent background color of the image to blue. This program works correctly on Firefox and Chrome, but I am trying to get it to run on Internet Explorer ...

implementing a JavaScript function and declaring a variable from an HTML source

On my webpage, I have a feature that gathers a large amount of data using jQuery. My goal is to limit the number of results displayed by changing the shown results dynamically to create a false-page effect. This functionality is all handled through a singl ...

The vertical shift in one of the inline table cell DIVs is being caused by two of them

I've been searching for a solution to my issue, but have come up empty-handed. I apologize if this has already been discussed before. My HTML page contains a section that appears as follows: <div id=wrap> <div id=lb> Content ...