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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:16:17+00:00 2026-05-23T14:16:17+00:00

My CSS looks as follows: .block1 { height:20px; width:70px; background-color:#09F; background-repeat:no-repeat; position:absolute; } This

  • 0

My CSS looks as follows:

.block1 {

 height:20px;
 width:70px;
 background-color:#09F;
 background-repeat:no-repeat;
 position:absolute;

}

This draws a rectangle. Next i would like to draw a rectangle on an angle, such as at 45 degrees. I am not aware of an angle option, how could i do 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-05-23T14:16:18+00:00Added an answer on May 23, 2026 at 2:16 pm

    It’s not fully supported in all browsers, but you can use CSS Rotation. Here’s an article on it.

    Basically, apply:

    -moz-transform:rotate(45deg); /* Firefox */
    -webkit-transform:rotate(45deg); /* WebKit (Chrome, Safari) */
    -o-transform: rotate(45deg); /* Opera */
    -ms-transform:rotate(45deg); /* IE9 */
    transform: rotate(45deg); /* No support currently, but hooray future! */
    
    /* Fun IE code (you should probably put this in a separate css file controlled with conditional comments) */
    /* IE8+ - must be on one line, unfortunately */ 
    -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865474, M12=-0.7071067811865477, M21=0.7071067811865477, M22=0.7071067811865474, SizingMethod='auto expand')";  
    /* IE6 and 7 */ 
    filter: progid:DXImageTransform.Microsoft.Matrix(
             M11=0.7071067811865474,
             M12=-0.7071067811865477,
             M21=0.7071067811865477,
             M22=0.7071067811865474,
             SizingMethod='auto expand');
    /* These are necessary for the IE code only */
    margin-left: 5px; 
    margin-top: -70px;
    

    IE code generated with this tool, which is incredibly useful.

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

Sidebar

Related Questions

I have a CSS entry that looks like this: .header { background-image: url(./images/embouchure.jpg); background-repeat:
My <style> for thumbnails currently looks like this: <style type=text/css> img.TN { width: 100%;
How do I alternate HTML table row colors using JSP? My CSS looks something
My CSS for the website all looks fine in Firefox but in both Chrome
I have applied CSS style to JavaFX components and it looks like everything is
Trying to get my css / C# functions to look like this: body {
I have a css definition in the head of my page as follows: @font-face
Hopefully this makes sense - my html is as follows html <a href=# class=someclass>An
I have a HTML+CSS grid layout as in this screenshot , which is essentially
I have a horizontal nav that looks as follows: I'm trying to remove the

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.