Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4

Thread: Angled line

  1. #1
    Junior Member
    Join Date
    Jan 2017
    Posts
    2
    Member #
    56049

    Angled line

    This will be used to separate content. I've attached an image to visually show you what I'm trying to achieve. The picture shows the line fully covering the canvas. I'd like it to be about 90%.

    Best way to get this done?

    Thanks.
    Attached Images Attached Images

  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    You'll use transform: rotate(); for that. https://developer.mozilla.org/en-US/...unction/rotate
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  4. #3
    Junior Member
    Join Date
    Jan 2017
    Posts
    2
    Member #
    56049
    Mr Roe,

    Thanks for the response.

    The rotate command is something I've tried. Selecting the HR tag, 45 deg does what I'm looking for but the placement is way out of alignment.

    Should I use absolute position or am I missing something?

    Thanks.

  5. #4
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    You'll have to use absolute positioning to push it into place. It rotates using the top left of the element as its pivot point.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:49 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com