View Single Post
Old 10-21-2009, 08:00 AM   #2
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
Quote:
Originally Posted by MerLock View Post
I initially wanted "Chapter 1" and "Blah" to be different font sizes but I guess it can be coded in. Just got to figure out how
You can easily do this. Switch to Code View, then find your heading. Change this:
Code:
<h1>Chapter 1: Blah</h1>
to this:

Code:
<h1>Chapter 1: <span style="font-size: 150%">Blah</span></h1>
I'm assuming you'r using H1 for your heading, but it works just as well with any other heading level (or any other tag for that matter). The <span> will change the size of the text inside it. Feel free to use a different percentage.

BTW Sigil will move that inline style property to a proper CSS class when you change views. I'm writing it inline here for the sake of brevity.

Quote:
Originally Posted by MerLock View Post
Q3: How do you add margins to the text?
Add this to the CSS code (the yellow color text in the Code View). The values are of course completely arbitrary:

Code:
body { 
   margin-left: 2em; 
   margin-right: 2em; 
}
That will give you left and right margins. Look here for more details on CSS margins. Feel free to explore other CSS resources. CSS in general is pretty simple and straightforward.
Valloric is offline   Reply With Quote