Thread: Line over text
View Single Post
Old 06-09-2013, 03:46 PM   #7
Steadyhands
Connoisseur
Steadyhands began at the beginning.
 
Steadyhands's Avatar
 
Posts: 57
Karma: 10
Join Date: Dec 2011
Device: Samsung Tablet
What about if you want the line beside the heading like this?

I'd like a better way to do this as it doesn't allow for changes in the size of the chapter heading text, and I'd like it to start on the right then finish at the header.

Code:
  <h2>BLA BLA BLA BLA BLA</h2>

  <div class="ruleclass">
    <hr />
  </div>
Code:
.ruleclass {
   margin-left: 1em;
   margin-right: 1em;
   margin-top: -4em;
   }
hr {
   height: 3px;
   background:#505050;
   width: 40%;
   }
Attached Thumbnails
Click image for larger version

Name:	2013-06-10_053708.png
Views:	229
Size:	7.1 KB
ID:	106833  
Steadyhands is offline   Reply With Quote