Possible to set a background color to a single line of text?

Hello, I am a beginner in InDesign and I'm doing a simple model that should look like this:

Skärmavbild 2013-03-22 kl. 21.05.51.png

The titles are now areas of separate text with a background color assigned to them. Is it possible to create a similar effect as a style (width 100% with a background color)? Now you need to copy and paste a text box whenever you need a title. If you add / remove of some body text, you will need to move everything manually. I want to type all of the text in a single textbox with titles, but I want the headlines to look like the picture above. I tried to create a style, but I can't find a property of background color, or watching the wrong settings. I use CS6.

Thank you!

To fill the entire width of the page, you the text box should be set to the width of the page, or adjust the left and right indents to expand the rule.

For the rounding rule, I just read on a tip yesterday to achieve this. Use a rule dotted with padding and gap of the same color:

Tags: InDesign

Similar Questions

  • is it possible to set the background color of a table or chart to be transparent?

    is it possible to set the background color of a table or chart to be transparent?

    Thank you

    Yes.

    Select tools palette (view > tool palette) and set the background of the graph as well as the control in transperent.

  • How to change the background color of a single line

    Hi, OTN,.

    I use JDeveloper with ADF faces 11.1.1.2 in the view layer. My question is how to change the background color of a single line in af:table?.

    Hi idir Mitra
    You can use EL to bind column for example inlineStyle (#{row.id == null?' background-color: rgb (255,214,165);':'background-color:red'})})

    Cordially Abhilash.S

  • How can I set the background color for a photo book to be between photos as well as on the perimeter?

    I am trying to create a book in iPhoto. I can set the background color, but it doesn't seem to work between photos that appears white by default. How can I make the background color of work between photos?

    You can not

    but to see exactly what you always get an overview of your book before ordering

    LN

  • How to set the background color of an application in bbui.js?

    How can I set the background color of an application that uses the bbui.js?

    his does not work just to put a:

    body {
        background-color: #000000;
    }
    

    It is even easier than... just create the style or the class on your screen

  • How can set the background color of the status bar?

    Quote from the old forum:

    Comments: comments
    How can set the background color of the status bar?
    Posted the: July 17, 2008 02:56
     
    How can set the background color of the status bar?
    Using this code for the status bar:
    LabelField statusField = new LabelField ("Good Morning", LabelField.USE_ALL_WIDTH |) LabelField.NON_FOCUSABLE | LabelField.HCENTER)
    {
    int _backgroundColour = Color.LIGHTGREEN;
    public void paint (Graphics g)
    {
    g.setBackgroundColor (Color.RED);
    g.Clear ();
    Super.Paint (g);
    }
    };

    Font defaultfont = Font.getDefault ();
    Police smallfont = defaultfont.derive (Font.PLAIN, 12);

    statusField.setFont (smallfont);
    setStatus (statusField);

    When I ran the code you have above, my status background color was red.  Is not what you see?  If so, please provide the BlackBerry model and software version that you are testing.  You can find this under Options.

    Or if you try to do something else, please provide details.

    I tested this in the BlackBerry Simulator included with version 4.5.0 BlackBerry JDE (4.5.0.44).

    To do this in version 4.1, first call getColor and save the current color.  Then call setColor, setting the color to the color you want to use for the background.  After this call call fillRect, starting with 0, 0 and go to the size of the field (use this.getWidth () and this.getHeight () to get this).  This must fill in the field with your specified color.

    To allow the drawing of the default content of the field call setColor once again, passing in the original color, then call super.paint.

  • How to set the background color of the title?

    Generally, the title background color is black and the other area of the main screen is white. I want to set the background color of the linear gradient background as blue or something. I try the following 2 ways, but there is always a black line at the bottom of the title bar.

          Background background = BackgroundFactory
                    .createLinearGradientBackground(0x00ff0000, 0x00ff0000,
                            0x0000ff00, 0x0000ff00);
            LabelField title = new LabelField("Hello World Demo",
                    LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);
            title.setBackground(background);
            setTitle(title);
    
           LabelField title = new LabelField("Hello World Demo",
                    LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);
    
            HorizontalFieldManager hrzManager = new HorizontalFieldManager() {
                protected void paintBackground(Graphics graphics) {
    
                    graphics.setBackgroundColor(0x00382B79);
                    graphics.clear();
                    super.paint(graphics);
                }
            };
            hrzManager.add(title);
            setTitle(hrzManager);
    

    Hello

    I think that there may be a problem using the default setTilte() method.

    Have something by default, behavior with the device.

    It may be a way to customize the default title to remove the black line at the bottom of the title bar.

    But I suggest an alternative that will behave like the title bar without using the setTitle() method.

    You can use something like below to get your condition.

    import net.rim.device.api.ui.*;import net.rim.device.api.ui.component.*;import net.rim.device.api.ui.container.*;import net.rim.device.api.system.*;
    
    class TestScreen extends MainScreen{
    
        private VerticalFieldManager verticalManager;    private HorizontalFieldManager hrzManager;
    
        TestScreen()     {            super(NO_VERTICAL_SCROLL);
    
            LabelField title = new LabelField("Hello World Demo",                        LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);
    
            hrzManager = new HorizontalFieldManager()         {            protected void paintBackground(Graphics graphics)             {                graphics.setBackgroundColor(0x00382B79);                graphics.clear();                super.paint(graphics);            }        };        hrzManager.add(title);        this.add(hrzManager);
    
            //rather than  adding component in the mainScreen        //add components in this verticalManager and then        // add this manager to mainScreen          verticalManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR)        {            /*              public void paint(Graphics graphics)            {                graphics.setBackgroundColor(0x00ffffff);                graphics.clear();                super.paint(graphics);            }            */                        protected void sublayout( int maxWidth, int maxHeight )            {                int width = Display.getWidth();                int height = Display.getHeight() - hrzManager.getHeight();
    
                    super.sublayout( width, height);                setExtent( width, height);            }        };
    
            ButtonField button1 = new ButtonField("Button1");        ButtonField button2 = new ButtonField("Button2");        ButtonField button3 = new ButtonField("Button3");        ButtonField button4 = new ButtonField("Button4");        ButtonField button5 = new ButtonField("Button5");
    
            verticalManager.add(button1);        verticalManager.add(button2);        verticalManager.add(button3);        verticalManager.add(button4);        verticalManager.add(button5);        this.add(verticalManager);
    
        }}
    

    Concerning

    Bika

  • Set the background color of the screen?

    someone knows how to set the background color for a screen?

    Also see this article.

    How - to change the background color of a form

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800256/...

    Concerning

    Bika

  • Setting the background color of a TextArea

    I was not able to set the background color of a text box. Here's what I try and it works for the other components.

    ****************************************************************

    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    import javafx.scene.control.TextArea;
    
    public class TextAreaTest extends Application{
      public void start(Stage stage){
        TextArea area = new TextArea();
        area.setStyle("-fx-background-color: black; -fx-text-fill: lightgreen;");
        Scene s = new Scene(area);
        stage.setTitle("black text area");
        stage.setScene(s);
        stage.show();
      }
      public static void main(String[] args){
        launch(args);
      }
    
    }
    

    ***************************************************************

    I use jdk 8 with whatever version javafx is included. I searched a bit on the internet and I think I see mixed results using this technique.

    Thank you.

    In an external css file, do

    .text-area .content {
       -fx-background-color: black ;
    }
    
  • How to set the background color in a scene?

    I'm new to JavaFX and just started my first program of FX.  I created a FX 7.3 NetBeans project and the project runs correctly.   All the samples in the JavaFX samples download work as well.  But when I try to do something as simple as the definition of the background on my first stage color to black, I can't make it work.  I find examples and documentation telling me that what I do should work, but it's not.

    Scene = new scene (root, 300, 250, Color.BLACK);

    scene.setFill (Color.BLACK);

    primaryStage.initStyle (StageStyle.UNDECORATED);

    primaryStage.setTitle ("Hello World!");

    primaryStage.setScene (scene);

    The two lines "BOLD" are marked as errors.  Unfortunately, I can't find a way to copy the error popup text in the IDE, so I'll summarize.  The two lines are errors that say that I gave a color but paint was expected.

    Is there something that I am missing? Can it be this hard set a background color in JavaFX?

    Thank you.

    Hello. Choose your imports. You probably

    import java.awt.Color;
    

    Instead of

    import javafx.scene.paint.Color;
    
  • How to set the background color of a page_item?

    I was pasting "background-color: #5CD65C" in a number of places, like the 'attributes of the HTML table cells' under the label and the tabs of the item, but get no results. Can someone tell me how to set the background color of a cell, please?

    Hi Doug,.
    One method is to add a style to your header html in page attributes, if you add the below css styling and the change of the name of the item page (#P2_FIRST_NAME) to your he should style correctly:

    Thank you

    Paul

  • Setting the background color to a region

    Hi all

    I need to set the background color for the regions on page apex.

    Am trying to do this using the following html tag in the header part of the region, but not able to succeed.

    Can someone help me in this?

    Use APEX 3.2

    Thank you and best regards,
    Santini.

    Published by: Santini on February 23, 2011 04:07

    Change the region-> region attributes, put more css

    // should put backgound-color:red with-in quotes
    style=background-color:red;
    

    Note: You should have #REGION_ATTRIBUTES # reference in the model of your region.

    See http://www.w3schools.com/css/pr_background-color.asp for tips of css.

    Kind regards
    Hari

  • Is it possible to change the background color of some options in the menu drop-down

    Is is possible to change the background color of some options in a drop-down list?
    For example, in the list below, I would like to than the background color yellow for Jason, John, and Roger:

    Heather
    Jason
    John
    Keith
    Linda
    Roger

    Hello

    One method is to use jQuery.
    Examples
    http://Apex.Oracle.com/pls/OTN/f?p=40323:54

    I have this on HTML page header

    
    

    This could help how to install jQuery on Apex
    http://www.oracleapplicationexpress.com/tutorials/66

    Or you can just load the Google by adding this also to HTML header or a page template

    
    
    

    BR, Jari

  • Set the background color of af: SelectOneChoice

    Hi all

    I use Jdeveloper 11 and I have an af:SelectOneChoice in a table.
    According to the value selected on the af: SelectOneChoice I want to set the background color.

    I now have this style as the content property:
    contentStyle = "#{row.priority == 9?' background-color: Red;': ' background-color: White ;'}}"

    When the priority is 9, then the color is red, otherwise it is white.
    It's works well but I want to extend this by assigning the Orange color when the priority is 8 or 7.

    How can I do?

    Well I did it using nested condition and it works.
    Sorry that I have copy paste directly from my code but I'm busy:

    value="#{ (row.bindings.ToKont.inputValue == 'N') ? globalParams.storedText[206]:((row.bindings.ToKont.inputValue == 'Z') ? globalParams.storedText[304] : globalParams.storedText[207]) }"
    

    Good luck :)

  • How to set the background colors of different message by account?

    I have two email accounts (let's say a private one for companies) in Thunderbird. Sometimes I (wrongly) mail on the wrong account. That is, I read some messages in a single account, followed by reading in the other account. I hit 'empty' to send a message and be sure to make sure I'm in the right account, that I want to mail to. Every now and then post to the wrong account, get the name wrong 'sender' and I ' answer to "name of the message.

    I looked at the account settings and found I can change the background color (in the e-mails triggered and and sent in the mail while composing). I changed the background color in a SINGLE account (in light yellow) and expects the other account be unchanged (white). Not the case. Change the background color in the account for a single account settings changes the color in all accounts (both).

    It is unexpected and unwanted, and my problem is still there.

    There is an add-on that accounts of color coding and records:

    https://addons.Mozilla.org/en-us/Thunderbird/addon/account-colors/

    and also the modules allowing to choose the correct identity:

    https://addons.Mozilla.org/en-us/Thunderbird/addon/identity-Chooser/

    https://addons.Mozilla.org/en-us/Thunderbird/addon/correct-identity/

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

Maybe you are looking for

  • Safari tries to load the page .html with PDF plugin

    Since two days I can not launch an application I had installed for a long time on my iMac. So far I double clicked on a START. File HTML and the PPA began in Safari. Since two days Safari opens with a black screen with a button to download Adobe Flas

  • Watch the Mac not unlock

    I've updated latest watch OS 3 and Sierra OS for my Mac. I also have the steps in system preferences to allow watching to unlock Mac. I also activated two-factor authentication. When I opened the small wheel begins to scroll Mac saying Watch is unloc

  • 9.3 software problems

    Sorry, my English is miserable, but I try to explain the problem with the software and S6. Startet Sunday that I was not able to lock in my email account. Next day same problem with google. Today, got 9.3 Problem: nothing happened. Everything always

  • most visited bookmarks does not go to the bookmarks bar

    Recently transferred from hotmail to gmail. Only, I have a bookmark in the bookmarks bar & don't know how it got there. My most visited Favorites do not get the bookmarks toolbar. I think that this should happen at this time. Thanks, have a nice day

  • Why I - Phone 4 always shows use of 2.6 GB mail when the total of all the mail is only 5 MB?

    Why my I-Phone 4 mail application always displays the use of 2.6 GB when the total of all messages is less than 5 KB?