Hello and welcome to our community! Is this your first visit?
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
    Thanked 0 Times in 0 Posts

    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?


  2. #2
    Senior Coder
    Join Date
    Aug 2006
    Thanked 401 Times in 398 Posts
    This is what strikes me as the way to handle it:
    <!DOCTYPE html>
    	<style type="text/css">
    	#wrap		{width:500px;padding-left:30px}
    	.heading	{text-indent:-30px}
    	<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>


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