A
A
Artem Petrenko2016-03-01 17:49:40
css
Artem Petrenko, 2016-03-01 17:49:40

How to make such a template?

What's the easiest way to do something like this using CSS? (we are talking about squares). When using transform, the text inside the blocks will also rotate, right? Grateful for any advice.
Ix6X-Cnz9xE.jpg

Answer the question

In order to leave comments, you need to log in

7 answer(s)
I
Igor, 2016-03-01
@GailWynand

Ready version
Create blocks and change their slope, and inside we prescribe display: inline-block and the opposite transformation for the text so that it is even.
ncgTFfe.png

S
Serj-One, 2016-03-01
@Serj-One

Make the square a pseudo element, and rotate it already.
As already correctly noted by Alexander A , if you apply the transformation to the text, it will be displayed a little ugly. However, there is no need to make a square from two triangles either.

G
GreatRash, 2016-03-01
@GreatRash

Who Says the Web is Just for Squares ;-)

W
WhiteSama, 2016-03-01
@WhiteSama

How about SVG? SVG-path In my opinion the most convenient way.

A
Alexander Taratin, 2016-03-01
@Taraflex

Nafig css transform
Hang on before and after
apps.eky.hk/css-triangle-generator (will even work in old ie)

M
Mikhail, 2016-03-01
Chirskiy @chirskiy_mixail

You do it through transform, and then rotate the text by as much as the square and the text is aligned.

D
Denis Bogdanov, 2016-03-01
@den-bogdanov

Rotate blocks of text the other way, also with transform

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question