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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:51:06+00:00 2026-06-07T20:51:06+00:00

I am trying to achieve this effect in my webpage.. The red box is

  • 0

I am trying to achieve this effect in my webpage..

enter image description here

The red box is where I will be placing a menu, I would like the bottom of the red box to be slanted. The section on the right of the slant needs to be transparent as there may be an image in the background where the grey color is.

The only thing I can come up with is to rotate the element but that would also rotate the contents of the element which I do not want.. Only the bottom bg of the red element (which will be a solid color) should be slanted.

  • 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-07T20:51:07+00:00Added an answer on June 7, 2026 at 8:51 pm

    you can do it like that, just highlighted the rotated part blue, that you see what happens 😉

    you might have to play with the top: and left: values if you change the size

    edit: added a small menu example (really small ^^)

    jsfiddle link

    here is the html part:

    <div id="menucontainer">
        <ul>
            <li>some</li>
            <li>menu</li>
            <li>here</li>
        </ul>
    </div>
    <div id="rotatedDiv">
    </div>
    <div id="background"></div>
    

    and here the css part:

    #menucontainer{
        position: relative;
        z-index: 100;
        background: red;
        height: 100px;
    }
    
    #menucontainer ul {
        position: absolute;
        bottom: 0px;
        left: 30px;    
    }
    
    #menucontainer li {
        list-style: none;
        margin-left: 10px;
        background: #123;
        display: inline-block;
    }
    
    #rotatedDiv {
        z-index: 99;
        background: blue;
        position: absolute;
        top: 14px;
        left: -5px;
        height: 90px;
        width: 200%;
        -moz-transform: rotate(-2deg);
        -webkit-transform: rotate(-2deg);
        -o-transform: rotate(-2deg);
        -ms-transform: rotate(-2deg);
        transform: rotate(-2deg);
    }
    
    #background {
        background: green;    
    }
    

    you might want to modify it in any way you can think of, but the main part should be clear i think 😉

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

Sidebar

Related Questions

I'm trying to achieve an effect like the one on this page (click the
I am trying to achieve this effect with jQuery UI - very much like
I am trying to achieve an effect in HTML + CSS like this _____________________[
I am trying to achieve this effect where a photo gets a repeating pattern
I am trying to achieve something like this. The Expandable List consists of the
I'm trying to achieve URLs like this in Rails: http://localhost/posts/1234/post-slug-name with both ID and
I am currently trying to achieve something like this: Based on this class, I
Alright, so I'm trying to achieve whats in this image: I believe this would
What I am trying to achieve is something like this: class object: def __init__(self):
I am trying to achieve exactly something like this - a text view on

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.