View Single Post
Old 11-26-2012, 09:28 AM   #16
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,141
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
the whole book does not need to use a style sheet. You can edge in.


As to importing ' A style sheet':
Unless the 'Imported' sheet is designed to work on a tag level (sets a basic style), you are wasting effort.

So in you example, you could start with a 'New Stylesheet'
add the ONE selector:
Code:
.hideheader {text-align: center; display: none;}
Select ALL the HTML files you want to use this style in the Book Browser:
right-click: Link stylesheet: tick the box for the stylesheet: OK

Using Search and Replace: replace all the
Code:
style="text-align: center;"
with
Code:
class="hideheader"
Then slowly shift other styling over to the stylesheet..
Note: that if you move a style defined in the head of a document, be sure to remove it from there as it can override the stylesheet.
theducks is offline   Reply With Quote