View Single Post
Old 03-15-2017, 07:53 AM   #1
MountainMan1
Junior Member
MountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a Texan
 
Posts: 9
Karma: 18320
Join Date: Feb 2017
Device: None
Adding a Style to an entire book

I am not very knowledgeable about HTML editing and CSS and such. I have just found a style that can be added to an HTML document in the <head> block, and it will apply the style to the whole document. This one kind of lets you have tabs, using the em; HTML tag.

I don't want to have to put this into the header of every page manually, and I don't know how to write a CSS stylesheet. I was wondering if there was any way to put this in one of the text files and have it work in all the rest of the text files.

Here is an example of the code :
Code:
          <style type="text/css">
            dummydeclaration { padding-left: 4em; } /* Firefox ignores first declaration for some reason */
            tab1 { padding-left: 4em; }
            tab2 { padding-left: 8em; }
            tab3 { padding-left: 12em; }
          </style>
If you put that into the header, you can have tabs with the em; tag, just by putting <tab1> your paragraph of text </tab1> in each spot where you want to have a tab in the text such as the beginning of a paragraph.

I asked another question about having Editor insert tabs here in the forum, but if Editor can't do that for me then I can use this. I will put it in the <head> of every page if I have to, was just hoping that there might be some way to put it in one page and have it work for all of the rest. Thanks
MountainMan1 is offline   Reply With Quote