0

i want create a line with slanted border like this http://www.tiikoni.com/tis/view/?id=0ea293a (red line)

how make this with css-css3 or js ?

<div id="DIV_1">
    <img src="/uploads/2016/01/logo.jpg" width="250px" id="IMG_2" alt='' />
    <nav id="NAV_3">

        <button id="BUTTON_4">
            Primary Menu
        </button>
        <div id="DIV_5">
            <ul id="UL_6">
                <li id="LI_7">
                    <a href="/lcvb/" id="A_8">Home</a>
                </li>
                <li id="LI_9">
                    <a href="#" id="A_10">about</a>
                </li>
                <li id="LI_11">
                    <a href="#" id="A_12">location</a>
                </li>
                <li id="LI_13">
                    <a href="#" id="A_14">service & quality</a>
                </li>
                <li id="LI_15">
                    <a href="#" id="A_16">Contact</a>
                </li>
            </ul>
        </div>
    </nav>
</div>
5
  • 3
    Only some tipps: use :before and/or :after pseudo elements, borders and transform: rotate(). Commented Jan 22, 2016 at 16:52
  • @Linus Caldwell , can you show me a example, i don't understand Commented Jan 22, 2016 at 16:55
  • 1
    @SURTLER77: I see only a slanted border and not a curve. Is that what you meant by curve? If yes have a look at this one -stackoverflow.com/questions/29982414/… Commented Jan 22, 2016 at 16:57
  • @Harry yes sorry, i want a slanted border Commented Jan 22, 2016 at 17:01
  • 1
    Or even this should help - stackoverflow.com/questions/32705653/… and this - stackoverflow.com/questions/29917180/… Commented Jan 22, 2016 at 17:04

1 Answer 1

1

Simplest way is to use ::after on the logo. Then arrange that with rotate and positioning, along with a red border. Will also be easy to 'display none' it once you get to responsive... Should do the trick. Of course, this is dependent on your needed browser support

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.