L
L
L1nw0od2018-02-06 19:23:36
css
L1nw0od, 2018-02-06 19:23:36

Transform text in a block?

Hello!
The guys faced such a problem: There is a block in it there is text and the text I need to tilt to the left by 45 degrees and the block to the right by 45 degrees, but nothing works to make the transformation work only in 1 order!
----

<style>
.nav-item:hover {
    background: #C9DF75;
}

.menu-footer .navbar-footer .navbar-nav > li {
    
    position: relative;
    float: none;
    display: inline-block;
    margin: 0 auto;
     transform: skewX(-17deg); 
    list-style-type: none;
}

</style>
<div class="menu-footer">
                            <nav class="navbar-footer navbar-expand-lg">
                                                                   <div class="navbar-header visible-xs-block">
      <button type="button" class="navbar-toggle collapsed " data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">Menu</a>
    </div>

                                <div class="collapse navbar-collapse" id="navbarNav">
                                    <ul class="navbar-nav mr-auto">
                                        <li class="nav-item"> <a class="nav-link " href="#">Programmes <span class="sr-only">(current)</span></a> </li>
                                        <li class="nav-item" data-toggle="popup-menu" aria-expanded="false"> <a class="nav-link" href="#">About</a> </li>
                                        <li class="nav-item" data-toggle="popup-menu" aria-expanded="false"> <a class="nav-link disabled" href="#">Faculty</a> </li>
                                        <li class="nav-item" data-toggle="popup-menu" aria-expanded="false"> <a class="nav-link disabled" href="#">Campus</a> </li>
                                        <li class="nav-item" data-toggle="popup-menu" aria-expanded="false"> <a class="nav-link disabled" href="#">Research</a> </li>
                                        <li class="nav-item" data-toggle="popup-menu" aria-expanded="false"> <a class="nav-link disabled" href="#">Addmissions</a> </li>
                                        <li class="nav-item" data-toggle="popup-menu" aria-expanded="false"> <a class="nav-link disabled" href="#">Contacts</a> </li>
                                    </ul>
                                </div>
                            </nav>
                        </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FabiBoom, 2018-02-06
@FabiBoom

Use a text wrapper (same span) and rotate it 90 degrees instead of 45

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question