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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:48:12+00:00 2026-06-18T11:48:12+00:00

I am trying to create a background using css where one side is a

  • 0

I am trying to create a background using css where one side is a solid color and the other is a texture: the two are split by a diagonal line. I would like this to be 2 separate divs since I plan to add some motion with jQuery where if you click on the right, the grey triangle gets smaller and if you click on the left the textured triangle gets smaller (like a curtain effect). Any advice would be greatly appreciated.

Background split by diagonal line

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

    Here are the examples in action: http://jsbin.com/iqemot/1/edit

    You can change the placement of the diagonal line with the border pixels. With this approach you would have to position content over the background setup however.

    #container {
      height: 100px;
      width: 100px;
      overflow: hidden;
      background-image: url(http://www.webdesign.org/img_articles/14881/site-background-pattern-07.jpg);
    }
    
    #triangle-topleft {
      width: 0;
      height: 0;
      border-top: 100px solid gray;
      border-right: 100px solid transparent;
    }
    <div id="container">
      <div id="triangle-topleft"></div>
    </div>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a new spinner background using a 9 patch picture. I've
I am trying to create to a vertical navigation menu using CSS sprites. I
I am trying to create a dynamic CSS file using the Django templating engine
I have been trying to create rotating object using jQuery and without any other
I want to be able to create a transparent background using only CSS but
I'm trying to create a dynamic icon using css sprites. here's what I keep
I am trying to create a side menu using jQuery in which the div
I am trying to create a button using CSS Gradients plus a icon that
I am trying to create a drop down menu using CSS and HTML, it
I'm trying to create a hover link using css but it's not working. Is

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.