Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Macintosh Indenting a run-on heading?

    I'm not even sure how to phrase this question, but I'm wondering how I can indent the Chapter headings. Because they're long, they run on to the second line. I'm hoping to indent the second line of the heading. Does that make sense?

    Indenting a run-on heading?-screen-shot-2014-09-04-9.40.16-am.png

  • #2
    Senior Coder
    Join Date
    Aug 2006
    Posts
    1,343
    Thanks
    11
    Thanked 288 Times in 287 Posts
    This is what strikes me as the way to handle it:
    Code:
    <!DOCTYPE html>
    <html>
    	<head>
    	<style type="text/css">
    	#wrap		{width:500px;padding-left:30px}
    	.heading	{text-indent:-30px}
    	</style>
    	</head>
    	
    	<body>
    	<div id="wrap">
    		<p class="heading">Vivamus tempus, sapien quis pulvinar eleifend, risus turpis aliquam justo, sit amet congue augue risus nec orci. </p>
    		<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis malesuada vel arcu vel interdum. Nunc tincidunt mauris consequat neque porttitor, in pharetra massa varius. Suspendisse varius velit id pulvinar ornare. Curabitur molestie, sapien lacinia aliquam condimentum, augue ligula luctus libero, efficitur tincidunt quam justo vestibulum felis. Aenean in volutpat nisl. Aliquam non eros sit amet dui dictum mattis bibendum nec arcu. Donec faucibus elementum nibh, a congue leo vehicula ut. Maecenas sit amet dictum elit. Suspendisse potenti. Sed ornare tellus erat, et vulputate diam varius non. </p>
    	</div>
    	</body>
    </html>


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •