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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:00:47+00:00 2026-06-01T11:00:47+00:00

I need to create a landing page that’s split diagonally. Something like this I

  • 0

I need to create a landing page that’s split diagonally.
Something like this

enter image description here

I need both areas of the page to be clickable and, in the best possible scenario, everything should adapt dinamically to the monitor of the user so that the monitor is always split in half.

How could i do it?Should i use canvas?Any advice is welcome, also on possible fallbacks if i use canvas.

  • 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-01T11:00:48+00:00Added an answer on June 1, 2026 at 11:00 am

    This can be realized in several ways:

    1) on modern browsers in pure CSS using clip-path

    Codepen Demo

    HTML

    <div>
       <a href="#1"></a>
       <a href="#2"></a>
    </div>
    

    CSS

    a { 
        position: absolute;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        display: block;
    }
    
    a:first-child {
        -webkit-clip-path: polygon(0 0, 0 100vh, 100% 100vh);
        clip-path: polygon(0 0, 0 100vh, 100% 100vh);
        background: #d6d6d6;
    }
    
    a:last-child {
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 100vh);
        clip-path: polygon(0 0, 100% 0, 100% 100vh);
        background: #212121;
    }
    

    2) On less recent browsers, involving only a bit of javascript and 2D Transformation

    Codepen Demo

    HTML

    <div>
        <section><a href="#1"></a></section>
        <section><a href="#2"></a></section>
    </div>
    

    CSS

    html, body, div{ height: 100%; width: 100%; padding: 0; margin: 0; }
    div { overflow : hidden; position: relative;  }
    
    section { 
        position      : absolute;
        top           : -100%;
        height        : 500vw;
        width         : 500vh;
        background    : #ccc; 
        -webkit-transform-origin: 0 0;
        -moz-transform-origin: 0 0;
        transform-origin: 0 0;
    }
    
    section + section {
        background    : #333;    
        top           : 0%;
    }
    
    section a { display: block; width: 100%; height: 100%; cursor: pointer; }
    

    Js/jQuery:

    $(function() {
    
       $(window).on('resize', function() {
           var h = $(document).height(),
               w = $(document).width(); 
    
          /*  Math.atan() function returns the arctangent (in radians) 
           *  of a number and 1 rad ~= 57.29577 deg 
           */
           var angle = Math.atan(h/w) * 57.29577;
           var rotateProperty = "rotate(" + angle + "deg)";
    
           $('section').css({
              "-webkit-transform": rotateProperty,
              "-moz-transform": rotateProperty,
              "transform": rotateProperty
           });
    
       })
       .triggerHandler('resize');
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create a landing page that will automatically redirect a visitor to
I need create menu for widget like this https://www.gstatic.com/android/market/com.bugabuga.switcher/ss-320-0-0 . What components are used?
I would like to create a landing page consisting only of links. The links
i need create an email list sending to many emails. what is best solution
So I have this SQL table that I need to update. Now we use
i found XMPP on google (i need create a application IM look like Yahoo
I need create a SQL Server stored procedure that does the following: Take an
How create a link_to_remote in a jQuery script where url need a parameter that
I am using a 3rd party platform to create a landing page, it is
I need create WebView which can load a page from Youtube. I don't want

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.