Htp.p packages and font styles

How to I add underline style to this? And single spacing for the next paragraph?
htp.p('<p><font size="25" color="green" style="font-weight:bold";>Document Control</font></p>');I've tried incorporating this to no avail:
htp.p('<p><font size="25" color="green" style="font-weight:bold"; text-decoration: underline;>Document Control</font></p>');

Hi,
Do not use FONT tag it is deprecated
http://www.w3schools.com/tags/tag_font.asp
Try
htp.p('&lt;p style="font-size:25px;color:green;text-decoration: underline;">Document Contro&lt;/p>');Regards,
Jari

Similar Messages

  • Change Background and font style in Web Page Composer ?

    Hi,
    someone knows how change the background and font style/size of the web page composer ?
    or how to control  font size style and background of WPC page using CSS ???
    point will  rwrd

    Hi,
    We are on EP7 SP14 and WPC SP14 Patch 2.
    Changing the css files should work perfectly...
    Try changing these files under the KM Content:
        KM Content -> root -> etc -> Web Content  -> css
    These are some of the css files that I have modified :
    root > etc > wpceditor > css > runtime > sdn_general.css
    root > etc > wpceditor > css > runtime > content.css
    root > etc > wpceditor > css > runtime > sdn_apps.css
    In particular, change the sdn_general.css and it will be changed.
    It works for us....

  • Font color and font style

    Can i know how can i change the color ,size and the style of the font in a text area?
    and also how can i get the font style and font size currently use in the text area?

    No, a Font doesn't have a colour. But you can set the colour of the text in a text area with setColor().

  • Line wrapping and font styles?

    Hi,
    If I have a piece of text which I would like to see line wrapped, and font styled, how should I do that?
    javax.swing.JTextArea has the capabilities to set line wrapping to on.
    javax.swing.JTextPane has the capabilities to set font styles like bold, italic and so on.
    But what if you have a piece of text you don't know the (possible) length of (so you would like to have line wrapping), AND to which you want to apply font styles to. JTextArea and JTextPane are siblings, not ancestors. So I can't use it. I have looked in the code to see if I could use pieces of code in my own program. But not luck.
    Do you have a suggestion for me?
    TIA,
    Abel

    camickr wrote:
    JTextPane wraps by default. I'm not sure what your problem is.I did not know that JTextPane did wrap. And I could not find it in the documentation.
    But thanks for the information!

  • Flash Application Font-Face and Font-Style

    This is a similar thread to one I posted earlier but this one is
    more detailed to explain my problem
    Does anyone know how to change the programs font-face,
    font-size, font-style etc ... of the console? I'm referring to all
    of the outer workspace area, not the stage.
    I found the image below at some website by google just to
    illustrate:
    http://cis2.stvincent.edu/martincc/introwpd/flash/flashscreen.jpg
    See the panels on the right side?
    Swatches, Character, Sound panels. On my computer, the font
    size for these words and for everything inside these panels are
    microscopic. They are so small it can't be read unless you stare at
    it for a while.
    How do I change the font size or face for these fonts?
    Now you see the top of the screen, where it says "
    File Edit View Insert Modify Text Control Window Help"? All
    of these font sizes are perfectly normal just like everything on my
    computer. I also use Adobe Photoshop CS 8.0 and the panel window
    fonts are perfect as well as everything else, so I know that it is
    a problem only with my Flash 5.0.
    I would appreciate any help you guys can give me, as it takes
    me forever to work on a project, I have to stare for a while to
    figure out what the panel text says.

    anyone have any ideas on how to change the window panel text
    size?

  • Printing html text and font styles

    Hello,
    when I try to print html text in serif with italic or bold text style the output on a printer incorrectly shows the bold and italic parts in arial or something. Underlined text is printed correctly.
    The font is rendered correctly on a JEditorPane.
    There were some issues with html rendering in java (e.g. Bug IDs 4331766, 4160605, 1235430, 4141537) but as these bugs are closed/fixed in earlier jdk versions, and i found no hint that anyone else has experienced such problems, i may be doing something wrong?
    Regards,
    Dirk
    My Configuration: Windows 2000 (German), JDK 1.5.0_12
    For testing purposes i use the following:
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import java.awt.print.PageFormat;
    import java.awt.print.Printable;
    import java.awt.print.PrinterException;
    import java.awt.print.PrinterJob;
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import javax.swing.JEditorPane;
    import javax.swing.JFrame;
    import javax.swing.RepaintManager;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.Document;
    import javax.swing.text.html.HTMLEditorKit;
    * QDH (Quick and Dirty Hack) Test
    public class PrintTestPane extends JEditorPane implements Printable {
       * shows printDialog and starts printing
      private void print() {
        PrinterJob job = PrinterJob.getPrinterJob();
        job.setPrintable( this );
        if ( job.printDialog() ) {
          try {
            job.print();
          catch ( Exception ex ) {
            ex.printStackTrace();
        else {
          System.out.println( "Aborted" );
       * from Printable Interface: renders a page
      public int print( Graphics graphics, PageFormat pageFormat, int pageIndex )
          throws PrinterException {
        Graphics2D g2 = (Graphics2D) graphics;
        RepaintManager.currentManager( this ).setDoubleBufferingEnabled( false );
        Dimension d = getSize();
        double panelWidth = d.width;
        double panelHeight = d.height;
        double pageWidth = pageFormat.getImageableWidth();
        double pageHeight = pageFormat.getImageableHeight();
        double scale = pageWidth / panelWidth;
        int totalNumPages = (int) Math.ceil( scale * panelHeight / pageHeight );
        // Check for empty pages
        if ( pageIndex >= totalNumPages )
          return Printable.NO_SUCH_PAGE;
        g2.translate( pageFormat.getImageableX(), pageFormat.getImageableY() );
        g2.translate( 0f, -pageIndex * pageHeight );
        g2.scale( scale, scale );
        print( g2 );
        return Printable.PAGE_EXISTS;
       * @param args
      public static void main( String[] args ) {
        PrintTestPane testPane = new PrintTestPane();
        HTMLEditorKit kit = new HTMLEditorKit();
        Document doc = kit.createDefaultDocument();
        try {
          kit.read( new ByteArrayInputStream( htmltext.getBytes() ), doc, 0 );
        catch ( IOException e ) {
          throw new RuntimeException( e );
        catch ( BadLocationException e ) {
          throw new RuntimeException( e );
        testPane.setContentType( "text/html" );
        testPane.setDocument( doc );
        JFrame frame = new JFrame();
        frame.getContentPane().add( testPane, BorderLayout.CENTER );
        frame.addWindowListener( new WindowAdapter() {
          public void windowClosing( WindowEvent event ) {
            System.exit( 0 );
        frame.pack();
        frame.setVisible( true );
        testPane.print();
      private static String htmltext = " <html> <head>  </head>  <body> <font face=\"serif\"> plain <b>bold</b> plain <i>italic</i> plain <u>underlined</u> plain</font> </body> </html>";
      private static final long serialVersionUID = 1L;
    }

    Hello again,
    Update:
    With JRE 6 it seems to work (at least with update 2). Because Java 6 is currently not an option for me: should i file a Bug?
    Dirk

  • MS Word crash when exporting to PDF, and font style is bold

    If i try to convert a doc file to PDF from Microsoft Word using fonts like Times New Roman, everything works fine; by using a font like Myriad Pro, Minion pro, etc. if i use even a single word in BOLD style, with other plain text, during export Word crashes, faulting in module pscript5.dll.
    Any information about this problem?
    Thanks.

    >issue with the latest version of Acrobat and not previous versions?
    I certainly don't work for Adobe, so this is only a GENERAL comment, based on many years experience with many different programs from several vendors
    When a program goes from 8.0 to 8.1 it is usually bug fixes but no major changes to the actual source code
    When a program goes from 7.0 to 8.0 that usually indicates major changes in function AND in the source code to create the program
    As an application programmer (used to be COBOL, now in a different job and use MS Access) I know that any program with more than a few hundred lines of source code WILL have problems
    When you consider that Acrobat is most likely written in C/C++ and will most likely have MANY thousands of lines of source code... it is not at all surprising that it went from 8.0 to 8.1.0 to 8.1.1
    It would not surprise me at all if Acrobat's routines for checking and using fonts had changes in that part of the source code... and IF that happened it MAY be that font handling is either "stricter" and that leads to "catching" a font that is "marginal" in operation... or that the error trapping routine changed and is causing a problem
    I personally have no idea if a corrupt font is your problem, but it does not surprise me at all that a 7.0 to 8.0 program change COULD introduce changes in the way fonts are processed

  • Is it possible to set up a Paragraph Style leaving the Font Style field blank?

    We often have to import text into InDesign from Word docs. We place the docs (Command-D, rather than copying and pasting) in order to preserve italics, bold text, etc. As it is now, we have to select all the text and set each element separately - leaving the Font Style field blank - in the Character Palette.
    It would save a lot of time, if we could set up a Paragraph Style without specifying the Font Style, (leaving it blank), which overrides the formatting we are trying to preserve. Is this possible?

    The answer is "kind of". You can create the Paragraph Style you want to apply and select the paragraphs you want to apply it to - then right-click on the Paragraph Style and choose 'Apply "Body". Clear Character Styles.'
    It is possible to do this as a Character Style if you click outside of a text area and create a new style. I do it all of the time as I import lots of Word documents to write to ePub (you have to define all of the styles to ensure the document looks right). Since the documents come in with small caps, bold, italics, different font sizes but the same font throughout.
    So I have a style based on None with blank Font Size and Font Style which I apply to the whole document. If there is anything in these boxes you can just erase it by backspacing over the text.

  • GTK Styles and Fonts duplicate

    Hi there. I found a problem after installing gtk-qt-engine. In my LookNFeel menus from Control Center, the option "GTK Styles and Fonts" appears twice. I looked at the installation package and it seems fine.. with only one file in LookNFeel folder (/opt/kde/share/applnk/Settings/LookNFeel/kcmgtk.desktop) and none in my home directory (.kde/...)

    yeah i noticed that a while ago too... it's only cosmetics, it does no harm, so why bother...?

  • Does anyone know how to select text in Appleworks, click on the font button and then be able to scroll thru all the font so that one can see the text change as you scroll down the list, at present  I have to do it one font style at a time and then repeat

    does anyone know how to view text in Appleworks, to be able to click on the font button and then be able to scroll thru all the font so that one can see it change as you scroll down the list, at present  I have to do it one font style at a time and then repeat? Thanks jl

    Welcome to the Apple forums
    Your question really belongs in the AppleWorks community/forum.
    You can turn on fonts in actual type in the AppleWorks preferences.

  • Creating form - want to change font style and size in more than one field at a time HOW??

    creating form - want to adjust font style and size in more than one field at a time - HOW??

    Select the fields with the mouse, right-click one of them, go to Properties
    and set the settings you'd like them all to have.
    On Wed, Jan 21, 2015 at 8:51 PM, chuckm38840797 <[email protected]>

  • Can I change fonts ? (size and/or style)

    I have just got a printer for the first time (with my iMac). I can't see how to adjust/choose a font style or size if ,for instance I want to print off an email i receive.
    Any advice would be welcome,thank you loons
    iMac G5   Mac OS X (10.4.5)  

    For emails (and all documents) you can just make the fonts bigger before printing by Command-"+".
    You can also change the scale % under File> Page Setup which will adjust the document you are printing. Use that with a combination of Print Preview to get exactly the size you want.

  • When I am trying to package my artwork in Adobe Illustrator CC, it is not capturing my images and fonts. How do I make sure my linked photos and fonts are captured?

    When I am trying to package my artwork in Adobe Illustrator CC, it is not capturing my images and fonts. How do I make sure my linked photos and fonts are captured?

    Not all fonts can be packaged depending on their licensing. Some fonts are set to not allow packaging. For those you would have to manually locate them on your computer and add them to the folder where the packaging occurred.
    For the images have you checked the "copy links" option?

  • Setting font style and size

    I have created a form in Acrobat 9 Pro with multiple text fields for which I would like to make sure only a certain font style & size is used (e.g., Arial 10). I have set this in the properties of the text box, but when I test it by cutting and pasting from a Word document (which our applicants are likely to do), it keeps the original formatting and does not follow the settings I created. Is there a way to allow the cutting and pasting, but only into the settings I've made?
    Thanks for any help!

    Probably. Try doing the same with the field that doesn't have this setting
    turned on, and you'll know for sure...

  • Setting the font style and color for FileChooser labels

    Hi Friends,
    I have a certain standard Font style and color set for my application GUI. Now, I want to set the style and color for Swing components like FileChooser. Is it possible ?
    Also is it possible to localize JOptionPane ?
    Please advise.
    Best regards,
    Harilal.

    Does anybody knows how to do that?

Maybe you are looking for

  • No data loaded to the cube

    hello, I have created four dimensions, all validated, deployed and loaded successfully. I created a cube, and used a joiner to load the keys from the tables. It has just one measure, and I am loading it from a different table. I ran a query with a jo

  • When I trying to update my I phone to new version. It's lock

    Hello to everyone who now reading my message. I have a problem with my I phone. It' lock when I had has try to update version with I tune. I don't know why? They said normally it's not any problem. For my solution I need something to help me to updat

  • ITunes freezes when I connect iPad or iPod

    Whenever I connect my iPod classic or iPad, iTunes freezes and I have to force quit. This happened in the previous OS and this one, and with all iTunes versions. I'm on a 2006 iMac, upgraded to 10.7 from 10.6.8. I'm up to date on iTunes. Any suggesti

  • Delete the Record in Webdynpro java

    Hi   Gurus           I had one issue in webdynpro java , I need to delete row in Table  if I delete the row in webdynpro java table at the same time the row it needs to delete in Back end  table also . We are useing NWDS 7.2  and we are using Adaptiv

  • 40222 Disabled item failed validation.

    When I run a Forms app, I receive this error message after I click one of its buttons: 41012 Invalid value for field Renewal_Type 40222 Disabled item RB.Renewal_Type failed validation. There is a radio group by that name in one of the blocks, althoug