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 5 of 5
  1. #1
    Junior Member swaranan's Avatar
    Join Date
    Feb 2014
    Posts
    6
    Member #
    38429

    Inside curved div

    How can i create a inside curved div??Untitled.jpg

    I can create the yellow left pannel..but..the problem is in the main body all text is aligned in curved...please help me..

  2.  

  3. #2
    Member djitsz's Avatar
    Join Date
    Jan 2014
    Posts
    67
    Member #
    38199
    Liked
    17 times
    There is no way in HTML to fit text in a curved container (as there are no curved containers in HTML, only images or containers with a border-radius to simulate curves).

    You would need to do this manually by adding <br /> and &nbsp; elements in the text to go in the curved container so that it follows the curve.

  4. #3
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Even that's not a foolproof method, though...as people resize their text, it will eventually spill into and out of the curve and create formatting issues.

    You're better off not bothering.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  5. #4
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Well, there is one way to do it, but god, it's a mess of code. You could possibly do it with HTML <canvas>.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  6. #5
    Junior Member swaranan's Avatar
    Join Date
    Feb 2014
    Posts
    6
    Member #
    38429
    Got it..Thanks for your help..


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 09:44 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com