How To Tilt A Box or Image (CSS)

Estimated reading: 3 minutes 10 views

An easy way to Tilt!

Titling a content box or image is such a cool feature, and the best thing is you don’t need a plugin to do it.

Getting Started

  1. Create the design you want to tilt.
  2. Save the page and open to view the design.
  3. Use your browser’s element inspector tool (sometimes called Inspect depending on your browser) to help you choose the right selectors to target the image or box you want to tilt. This will open up the dev tools.
  4. The dev tools should open up in Styles.
  5. The first element should be your element code, copy the first part before the brackets. Test our content box above, the element is .kt-info-box93743_97a6f1-43 .kt-blocks-info-box-link-wrap.
  6. Paste it in .your-sector element goes here. using the code below.
  7. Copy the whole code and paste it in your preferred Custom CSS – see further instructions below.
chrome right click inspect
ui overview

Here’s the exact snippet we use on our websites, the instructions are below the snippet code.

Code Snippet

/* Add an identifier such as page location and/or id
------------------------------ */
.your-sector element goes here {
      position: relative;
      transform: rotate(-3deg);
    -ms-transform: rotate(-3deg);
    -moz-transform: rotate(-3deg);
    -webkit-transform: rotate(-3deg);
    }

Where to Add This Code

Here are two easy options:

Option 1: Install WPCode Lite Plugin

This is by far the safest method and is beginner friendly if you’re not used to editing theme files.

  1. Search for WPCode Lite plugin in your website dashboard.
  2. Install and activate the plugin.
  3. Go to Snippets > Add New.
  4. Give your snippet a name like “Tilted Boxes.”
  5. Paste the code above.
  6. Choose CSS, not PHP or any other.
  7. Save and activate.

✅ Done! Feature images on your post dashboard are now enabled.

Option 2: Page Custom CSS

This option specifically targets your page and the block you’re using.

  1. Go to the content box where your design is.
  2. Go to the Kadence menu > Advanced > Custom CSS.
  3. Paste your code.
  4. Save.

💡 Tip: Depending on the tilt you want, alter the -3 value as desired.

NOTE: We use WPCode Lite because it’s more flexible than others, there’s no need to upgrade to pro unless you’re a developer, it offers many free snippets, can choose where to run it, won’t publish if the code is wrong so won’t break your site, PHP is included compared to others you have to buy the their pro, and best of all the free version can easily be downloaded from your WordPress Repository.

Leave a Reply

Your email address will not be published. Required fields are marked *

Share this Doc

How To Tilt A Box or Image (CSS)

Or copy link

CONTENTS

Join The Party For Fun Updates freebies & Big Discounts!

Add your name
Add your email

JoiN Glamsy Cloud! Free STUNNING Kadence Templates Included!

Start with 5 gorgeous Kadence blocks on us. Love them? Unlock ‘50 FREE FOREVER‘ that’s 50 more free blocks just for choosing any essential tool from our trusted fav stack!

Grab Your Free Templates

🔥 Hot June Freebie! Win A Premium Theme—No Cost, No Catch

Review Your Cart
0
Add Coupon Code
Subtotal

 

Subscribe

×
Cancel