Retaining Space-Before in CSS on Epub Output

When I output an InDesign CS6 document as an epub, it seems that the CSS that gets generated for any given paragraph will contain specs that reflect that paragraph's indents and space below (margin-bottom, margin-left, and margin-right)--but not space above, or margin-top in CSS. Is this something that can be changed as an export option, no matter what the reasoning was in not including space-above as a default export option?
And as a related question, are CSS outputs customizable in other ways? Can I get the output to not place the overrides for what I take to be semantic tags (body, div, dl, dt, dd, etc.) at the top of the CSS? I mean, is it feasible to allow the individual paragraph styles control all spacing and indents? Maybe this is a ridiculous question: I have LOTS of experience with InDesign, not so much with HTML!

The "space above" problem is solved if you apply the 8.0.1 update to InDesign CS6.
You can create a separate CSS file which you can "attach" in the EPUB Export dialog box, which "zeros out" values which InDesign may include in its CSS file. Any additional CSS file can override items in the InDesign-generated CSS.

Similar Messages

  • Why does CS6 InDesign Book epub output generate and apply new graf and character style names in CSS?

    I created an InDesign book composed of documents that had had no paragraph or character styles in the palettes until text was copied over from a single overall document. I worked absolutely as clean as I could.
    I synchronized the book to that single overall document several times, including immediately before exporting the book to epub. My export settings disallowed any local formatting. Character styles were restricted to one named "Italic" for which the only format applied was Italic in the Font Style field, and one named "Small Caps" for which NO formatting was included in the character style.
    There was, as far as I can see, no reason for any character or paragraph styles to export to anything but identically-named CSS entries. That is to say, any text with the character style "Italic" applied in the InDesign doc should have output with the same text with a span class entry of "Italic" around it.
    I still ended up with p and span CSS entries with extra numbers appended to them:
    span.Italic {
    font-style:italic;
    font-weight:normal;}
    span.Small-Caps-1 {
    font-variant:normal;}
    span.Italic-1 {
    font-style:italic;
    font-weight:normal;}
    span.Small-Caps-2 {
    font-variant:normal;}
    span.Italic-2 {font-style:italic;
    font-weight:normal;}
    span.Small-Caps-3 {
    font-variant:normal;}
    span.Italic-3 {
    font-style:italic;
    font-weight:normal;}
    and
    p.x-SECTION-BREAK, p.x-SECTION-BREAK-1, p.x-SECTION-BREAK-2, p.x-SECTION-BREAK-3  and so on.
    Why would the InDesign epub output engine choose to generate and apply new spans and paragraph-level styles, which multiply the complexity of editing the CSS directly? How can I prevent InDesign from doing this?

    Perhaps I wasn't clear. When I wrote "an InDesign book composed of documents that had had no paragraph or character styles in the palettes until text was copied over from a single overall document" I meant to emphasize  the part where I CLEARLY said "UNTIL text was copied over." The text I copied over had plenty of paragraph styles. I was trying to point out that each individual document had no PREVIOUSLY EXISTING character or paragraph styles that might have added complexity to the epub output. .
    So, every paragraph in each document had a paragraph style attached, a total of maybe 20 different paragraph styles throughout the book. The only CHARACTER LEVEL styles I cared about exporting were Italic, for text that was set in italic, and Small Caps, for CAPITALIZED text that I wanted to be able to make smaller in the CSS, since I am not allowed to embed fonts and therefore have no other way of creating small caps in the xhtml files inside the epub.
    So, given that I had two character styles applied to various bits of text throughout my InDesign book ("Italic" and "Small Caps"), I would like to know why there are multiple CSS entries generated: Italic, Italic-1, Italic-2, Small Caps, Small Caps-1, Small Caps-2, and so on.
    Ditto paragraph styles. I had a paragraph style called "SECTION BREAK" in each document. Not only did paragraph style "SECTION BREAK" contain identical specs in each document--I know they did because I copied each from one single doc where they were being used identically--but I also synchronized the book repeatedly.  So why would the xhtml docs and the CSS output need p.x-SECTION-BREAK-1, p.x-SECTION-BREAK-2, and p.x-SECTION-BREAK-3?

  • Space Before Text in Word Document

    Having generated a word document I noticed that thre was
    space before all my paragraphs. Simple to fix, or so I thought.
    When I checked the paragraph setting s in word there was no space
    before the paragraph. Checked the paragraph above, and that did not
    have space after set.

    If the extra spacing is not in your Word output files, then
    it must be in your RH source files.
    There's either something at each of the paragraphs, or in the
    HEAD section of the topic, or in your CSS style sheet assigned to
    the topic. The proximity of styling info to its content is what
    determines its effect.
    Good luck,
    Leon

  • Best-practice for use of object styles to manage image text wrap issues when aiming at both print and EPUB output?

    I have a work-flow question about object styles, text-wrap, and preparing a long document with lots of images for dual print/EPUB output in InDesign CC 2014.
    I am sort of experienced with InDesign but new to EPUB export. I have hundreds of pages and hundreds of images so I'd like to make my EPUB learning curve, in particular, less painful.
    Let me talk you through what I'm planning and you tell me if it's stupid.
    It's kind of a storybook-look I'm going for. Single column of text (6" by 9" page) with lots of small-to-medium images on the page (one or two images per page), and the text flowing around, sometimes right, sometimes left. Sometimes around the bounding box, sometimes following the edges of the images. So in each case I'm looking to tweak image size and placement and wrap settings so that the image is as close to the relevant text as possible and the layout isn't all wonky. Lovely print page the goal. Lots of fussy trade-offs and deciding what looks best. Inevitably, this will entail local overrides of paragraph styles. So what I want to do, I guess, is get the images as closely placed as possible, before I do any of that overriding. Then I divide my production line.
    1) I set aside the uniformly-styled doc for later EPUB export. (This is wise, right? Start for EPUB export with a doc with pristine styles?)
    2) With the EPUB-bound version set aside, I finish preparing the print side, making all my little tweaks. So many pages, so many images. So many little nudges. If I go back and nudge something at the beginning everything shifts a little. It's broken up into lots of separate stories, but still ... there is no way to make this non-tedious. But what is best practice? I'm basically just doing it by hand, eyeballing it and dropping an inline anchor to some close bit of text in case of some storm, i.e. if there's a major text change my image will still be almost where it belongs. Try to get the early bits right so that I don't have to go back and change them and then mess up stuff later. Object styles don't really help me with that. Do they? I haven't found a good use for them at this stage (Obviously if I had to draw a pink line around each image, or whatever, I'd use object styles for that.)
    Now let me shift back to EPUB. Clearly I need object styles to prepare for export. I'm planning to make a left float style and a right float style and a couple of others for other cases. And I'm basically going to go through the whole doc selecting each image and styling it in whatever way seems likeliest. At this point I will change the inline anchors to above line or custom, since I'm told EPUB doesn't like the inline ones.
    I guess maybe it comes down to this. I realize I have to use object styles for images for EPUB, but for print, manual placement - to make it look just right - and an inline anchor seems best? I sort of feel like if I'm going to bother to use object styles for EPUB I should also use them for print, but maybe that's just not necessary? It feels inefficient to make so many inline anchors and then trade them for a custom thing just for EPUB. But two different outputs means two different workflows. Sometimes you just have to do it twice.
    Does this make sense? What am I missing, before I waste dozens of hours doing it wrong?

    I've moved your question to the InDesign EPUB forum for best results.

  • Prob in retaining spaces in Combo Box, PLEASE HELP ASAP!!

    Hi
    In the application that I am working on, I have developed a screen wherein I populate the names of some schemes from the database, in a combo box (<Select><option></option></Select>).
    A particular scheme in the database has a multiple-word name with double spaces between the two words, or rather between the last of the two words and the brackets.
    e.g. Help CRY (Child Relief & You).
    Now, when this name is fetched fro the database, the double spaces between the CRY and ( are retained but when I display them in the combo box, i.e. between the <option> tags, somehow the double spaces disappear.
    Further on, in my servlet, I retrieve the same scheme name from the combo box and try to fetch some other entries from the database. At that point, since one of the spaces has disappeared, there is no database match found for the scheme name selected and I'm unable to proceed. This problem arises in the case of any number of spaces between the words while populating the combo box. It however works fine when I remove the double spaces and retain a single space between the words.
    Please let me know ASAP if combo boxes eat up such spaces and convert any number of spaces into a single space as a property or is something wrong with the JSP I have here. If this problem can never be resolved as a rule, then please tell me so that I can force the data providers to make sure they filter out such double spaces before sending the data to our databases.
    I'll be very grateful if your can help me out asap as we have to put up the site at the earliest possible date.
    Thanks a lot,
    Soumya

    why not you try to set the option value, like this:
    <option value="Help CRY (Child Relief & You)">words you wan display</option>
    Think if the display is not right it will not affect you from extracting the value.
    Regards,
    Jas

  • Smartforms: add a space before address information

    Hi All,
    In my smartform I have created a window with a border (option "Line With" - tab: "Output Options". Under this object I have created an address form type "Organizationa Address(1) and I have set "Use Street(S) as "Additional Address Specifications".
    Now my issue is about to obtain a space before all information showed by the address. This is to avoid information too close to the left border of the window. I tryed defining a text object before the address object, under my window definition but I did not received any effect.
    Any suggestion will be well appreciated. Many thanks in advance for your kind help.
    Regards,
        Giovanni
    Edited by: gio1234 on Oct 1, 2009 2:13 PM

    Hi Giovanni,
    You can get around this problem by creating another window, slightly larger than the one that currently contains the address node and use this to draw the border.
    Also, as you can assign the address directly to the page you could then get rid of your current window.
    Regards,
    Nick

  • How do I remove a space before the first word in a sentence using find and replace or GREP?

    Right, so I am laying out a document in inDesign from a word document and it has a space before every first word in a sentence. It is really annoying and I need a quick way to get rid of them. I wasn't too sure how to do it with find/change but I am sure there is a way in GREP if someone can help me. I have included an image so that people can see exactly what I mean.

    The ^ location works for all paragraphs.
    But a note to the OP, there is a sample script called FindChangeByList that removes leading and trailing spaces as well as extra spaces after punctuation, all in one go. But if you want to continue to use a GREP find/change to remove leading space, I'd modify Joel's suggestion to ^\s+ to get those cases where the user typed multiple spaces as well.
    And don't forget there are actually legitimate places for leading tabs, which both the script and this GREP will find and remove, so be careful.

  • How can I control the space before and after text in a table

    Hello
    I have a series of icons with descriptions, these are lined up with icons on the top row and description text in the bottom row. Each icon and description is divided by a stapled line.
    The text is of varying width, therefore the column width must also wary. However I would like to make the space before and after the text equal in all instances (See image).
    If there is anyone that can tell me how to do this with tables or any other tools I would be very thankful.

    The only way I can think of to maintain equla spacing between the text ov vartying lengths and the vertical lines is to put each icon/text pair in it's own frame fitted to content, make each vertical line a separate object, then select them all and distribute the spacing.

  • Want to display a space after last field in the output txt file

    hi
    I want to display a space after last field in the output txt file which is generaed by my program on utility server the last field lengyt we have defined is four and in database it is of three characters and requirement is to disppaly the last fourth field as space in the output file w hich is not shown as the txt file automatically gets closed at the third place as it is the last field in the record and ind atabase records are of therss char only but user wants to display this fourth position in the notepad output file as space ( which is last field in the output file)
    eg
    name house  street country
    record output coming in file
    ram   h3      street3  thn      now this thn which is last field the notepad get closed at thn only
    i want to display one space in last field for the whole of output file
    ie ram      h3   street3  thn(space)
        sham   h4  street4   sgp(space)  so on......
    we need to show this space in the output file as blank
    regards
    Arora

    hi Atish
    i am using
    loop at gt_sagadr_outtab into wa_sagadr_outtab
    move wa_sagadr_outtab-country to wa_sagadr_text+223(226).
    endloop
    in this last field ie country i need to display the last 226 as blank as only country key is two char in database so the last space is not shown
    i am not unsing the fM as tolb by  you
    and afterwards
    i am usning
    Concatenate 'Sagadr_' sy-datum sy-uzeit '.dat' into gv_filename_sagadr.
    CALL FUNCTION 'FILE_GET_NAME'
      EXPORTING
      CLIENT                        = SY-MANDT
        LOGICAL_FILENAME              = gc_lfile
        OPERATING_SYSTEM              = SY-OPSYS
        PARAMETER_1                   = gc_param1
        PARAMETER_2                   = gc_send
        PARAMETER_3                   = gv_filename_sagadr
      USE_PRESENTATION_SERVER       = ' '
      WITH_FILE_EXTENSION           = ' '
      USE_BUFFER                    = ' '
      ELEMINATE_BLANKS              = 'X'
      IMPORTING
      EMERGENCY_FLAG                =
      FILE_FORMAT                   =
        FILE_NAME                     =  gv_filepath_sagadr
    EXCEPTIONS
      FILE_NOT_FOUND                = 1
      OTHERS                        = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    and lastly
    open dataset gv_filepath_sagadr for output in text mode encoding default.
        if sy-subrc eq 0.
         loop at gt_sagadr_text into wa_sagadr_text.
         transfer wa_sagadr_text to gv_filepath_sagadr.
         endloop.
        endif.
       close dataset gv_filepath_sagadr.
        if sy-subrc = 0.
        message S002 with gv_filepath_sagadr. "Files & created on Application server
        endif.
    SO NOT SURE WHERE TO USE THE CODE AND HOW

  • Hyperlinks in ePub output

    Hi all,
    currently Robohelp includes hyperlinks into the ePub output but when the user clicks them they produce errors (at least with Adobes own ePub reader ADE). Because the output files are contained in an archive it may not be possible to link to other topics at all but then why does RoboHelp include internal hyperlinks at all if they do not work?
    It seems awkward to tag all paragraphs which contain hyperlinks with conditional build tags and then remove them from output just to avoid errors. Is there a more elegant solution?

    After checking, I have to correct myself. Evidently it is rather a problem with language-specific characters (ä, ß) in file names. These topics cannot be viewed using the TOC either. If I insert a standard hyperlink to a topic that has no such character in its file name, then all is well. The problem is that these file names are generated automatically by Robohelp when a Word document is imported.
    I might issue a request about this in the feature request form.
    @Praful Jain:
    1. RH9, older versions dont support ePub I think.
    2. Correctly, these are topic within the project.
    3. In case you are still interested please tell, but I think its a different problem now altogather as described above.

  • Space Before/After Not Refreshing in Paragraph Palette

    Hi, I'm using Illustrator CS4 and am frustrated that in the paragraph palette, when I select text with specific settings for space before or space after, these values do not refresh to what is applied to the text. The values just remain at the last setting that I input or something. So I have no way of determining what the space before or space after is on different chunks of type. And if I try to adjust the settings up or down (using the arrows), it will jump to whatever setting is displayed (which is not what is actually applied to the type.
    - Has anyone else ever experienced this behavior?
    - Any workarounds?
    - Any other ways to detect the actual values applied to the text?
    THANKS! Very frustrating bug.

    are you selecting the text Frame? if the palette shows the last used settings it means the whole textFrame has no custom spacing applied. If you see nothing, it means mixed settings.
    you need to place the cursor inside a paragraph in order to be picked up by the palette.

  • How do I decrease the space before a footnote

    I cannot figure out how to decrease the amount of "leading" space before the footnotes begin.  The paragaraph before the footnote line has not ended, so cannot simply decrease the amount of space after that particular paragraph.  The answer must be pretty simple, I just can't find it.  Thanks.

    Hi albertof92270938,
    If you're referring to a PDF file, you can reduce its size by using Acrobat. If you don't have Acrobat, please feel free to try it out. You can download a free 30-day trial from http://www.adobe.com/products/acrobat.html.
    In Acrobat, you choose File > Save as Other > Reduced Size PDF, or File > Save as Other > Optimized PDF.
    Please let us know how it goes.
    Best,
    Sara

  • Increase / decrease the space before / after a table -

    Hi all,
    I have not found any shortcuts which, after you select a table, modify the space before or after.
    Does anyone have an idea? Otherwise, an early idea for a [JS]?
    Thank you in advance! 

    According to the instruction, I closed InDesign and re opened it then immediately hold down Ctrl+Alt+Shift, but there is no dialog window pop up. I did this a few times.
    Then I tried to do it manually by deleting InDesign Defaults and InDesign SavedData. But in the folder (Windows XP: C:\Documents and Settings\<USER>\Application Data\Adobe\InDesign\<Version #>\<language>\ ) I can see InDesign Defaults but no InDesign SavedData. I deleted InDesign Defaults anyway, re opened InDesign, nothing changed.

  • I have highlighted words in an .iba file. Now I need to increase the space before (and/or after) the paragraph it's contained in. If I increase the space after, the height of the highlighting increases also. Is there any way around this?

    I have highlighted words in an .iba file. Now I need to increase the space before (and/or after) the paragraph it's contained in. If I increase the space after, the height of the highlighting increases also. Is there any way around this?

    http://www.apple.com/feedback/kaywerty wrote:
    A rather long winded way of asking if anybody knows if it's possible to have multi-windows open
    It's not possible.
    Suggestions here -> Apple Product feedback

  • Deleting word deletes space before it as well

    I don't know if this has always been the case, but I've only just started to notice it and it is frustrating the **** out of me.
    In pages on the iphone and iPad, if I delete all the letters in the word, the space before the word automatically gets deleted as well.
    Try it.
    I just went to the apple store and it's happening on their ipads as well.
    I type for a living and cannot tell you how many thousands of times today I had to go back and correct words that had no space between them.
    Did someone really think that when I press delete once what I actually want is to delete twice?!
    So, anyone know if there's a way around this issue? I'm wondering if it came in with ios 7? Interestingly it's only pages, not happening on notes or email etc.

    For tips on how to get around it go here:
    https://discussions.apple.com/message/23253948?ac_cid=tw123456#23253948
    Either type with an X in front of where you're typing, or turn on tracking and set to "final" in settings.
    Best we have for now!

Maybe you are looking for

  • Report Region SQL Source

    Hello all... Im new to Application Express so my problems are quite fundamental. I am trying to create a filter system on a report region that alters the SQL depending which field is selected and what criteria is entered. How do I refer to the SQL? I

  • How can I disable 'backspace' key from navigating back a page?

    Several times over the last couple weeks, I type up a very well thought out response on Facebook in political conversations with friends. An hour or two into my work, I hit backspace with the intent of editing what I wrote (maybe after I scrolled or

  • HOW TO INPUT TAX CODE AT MULTIPLE PO ITEM LEVEL AT A TIME

    If a PO  is having 100 line of items, how to input the tax code for all line items at a time, if tax code for all line of times is same.

  • ADF BC : Polymorphic View Link

    hi If I generate Business Components from Tables for EMP and DEPT in the SCOTT schema, I get an Association "FkDeptnoAssoc" and a View Link "FkDeptnoLink" based on this Association. This allows me to select "EmpView via FkDeptnoLink" in the Data Mode

  • After installing windows 7, will not connect to my router

    I installed windows 7, 64-bit on my macbook late 2009 model. After installing, it would not connect to my router. However, it did connect under Mac OS X and it also worked with my roommates laptops, but not my macbook running windows 7. I searched ev