What is the best way to change the color of the first word in a paragraph?

I have a lot of paragraphs where I want that the first word to keep the same font, the size, the type - but I want to change just the color of the lettering.

I suggest to do this:

(1) change your BC 4567000000 to the following line:

4,567,000,000 BC - name derived from Hades.

(2) add the following line after the top of the page:

. first-word {color: red ;}}

Note the period in the above code.

The top of line will now look like this:

H1 {make-size: 200%; do-family: "Comic Sans MS"; color: #66FFFF; text-align: center ;}}

H2 {make-size: 100%; do-family: "Comic Sans MS"; color: Red ;}}

p {make-size: 100%; do-family: "Comic Sans MS"; color: #EEEEEE ;}}

. First-word {color: red ;}}

Alternatives are almost similar to this one but try this one and then come back and demand the implementation of alternatives.

Tags: Dreamweaver

Similar Questions

  • GREP does not not in the first word of a paragraph. What's wrong?

    I'm having a small problem using GREP in a paragraph style. It does not apply the requested character style if the word is in the first paragraph. This is the condition:

    ( ? i) Data: | Description: | Hora. Monday: | Information: | Local: | No site. Object. OBS.: | Telefone. Type:


    Nobody knows why, in what's happening?

    Maybe every other word that data must leave a space in front of her to match.

  • "BOLD" from the first words of each line?

    I wonder if there is a way to fully automate this. I'm style expandable body of interview-format the text, and I would only the first word of each paragraph, be bold if they are one of the three names. I currently have a nested style black the first word of each paragraph, but not all of the paragraphs in the text begin with a name of interview. Can anyone help?

    Depends on if you need it to happen automatically when you start new documents with interviews, or if you need to do just for a single doc where all your text has already been sent to. If the latter, I had:

    (1) make a duplicate of the nested-style-parastyle called BoldNames

    (2) remove the nested style old style paragraph - now zero paragraphs have the nested style applied, and you have a separate unused paragraph with the nested style in style.

    (3) research the doc with a GREP query:

    To find

    ^(Jake|) Joel | James)

    Implement

    $

    with the format of

    BoldNames

    In this way, only the paragraphs that have one of these names at the beginning of the paragraph will be marked with the paragraph style that owns the nested style that applies "BOLD".

  • The best way to change the red color to white?

    Can someone tell me the best way to change the red part of the label in this image for white? I'm having a hard time understand this point and I know there must be a solution simple or semi-facile. I have about 10 of these I need to change. Thanks for the help!

    label.jpg

    Hi Sheera730,

    Please take a look at the following article, it should be useful: https://blog.udemy.com/photoshop-replace-color/

    Kind regards

    Tanuj

  • I just purchased creative cloud. What is the first step I should take?

    I just purchased creative cloud. What is the first step I should take?

    I'm unable to download the apps and I don't know why. I thought it had something to do with me having the prior consent of the trial, so I advanced and deleted. And I can not even download applications. Am I missing a specific step in all of this? I was under the assumption that when I bought the creative cloud, it would be a kind of command prompt to install the program (the way adobe works normally) then I would be able to install applications separately.

    Hi Poe7,

    Welcome to the community & thank you for being the Member of creative cloud!

    The first thing is to download Creative cloud desktop application that will help you to download all the available applications, go to https://creative.adobe.com/products/creative-cloud and download it.

    One time downloaded, launch it and select any product to start the download/installation of the app.

    Thank you!

    Ankit

  • When you use find on the page (ctrl + F on Windows) it is a message indicating the total number of matches. What does the first number?

    When you use find on the page (ctrl + F on Windows) it is a message indicating the total number of matches. What does the first number?
    I'm more interested in the case when this number is smaller than the total.

    Hello

    I think you mean the text stating "x of there matches", to the right of the box where you entered the search term.

    The first number ("x" in my example above) indicates the current entry highlighted on the page that matches the search phrase. If you use the upper and down arrows to navigate through the instances of this term on the page, you will see this number go up and down.

    I hope this helps, but if not please come back here and we can look at another solution for you.

  • What is the first version of labview can be used with a USB-6001

    What is the first version of Labview, which can be used with a USB-6001?

    According to the user's Guide, you must DAQmx 9.9 or later version.  The oldest version of support DAQmx 9.9 is LabVIEW 2010 (DAQmx and LabVIEW version compatibility).

  • WHAT IS THE FIRST STEP TO ADDING TEXT TO YOUR NEW WEBSITE?

    WHAT IS THE FIRST STEP TO ADD TEXT/CONTENT OF MY NEW WEB SITE?

    @

    Create a new file of type HTML. (CTRL-N). Then type or paste the text.

    Images that you add to your new site must be included in the site folder. Then, you can drag and drop them.

  • I need help to write a script that detects the first instance of a paragraph style and then change

    I need help to write a script that detects the first instance of a paragraph style and then he goes to a different paragraph style.  I don't necessarily need someone to write all this, by the biggest problem is to find how to find just the first instance of the paragraph style.  Any help would be greatly appreciated, thank you!

    Hello

    then try this with your active doc:

    ....................

    myDoc var = app.activeDocument;

    mStyle var = myDoc.paragraphStyles.item ("PS_NameToFind"); change the name to paraStyle

    var mStyle_1 = myDoc.paragraphStyles.item ("PS_NameToChange"); change the name to paraStyle

    var mFrames = myDoc.pages.everyItem ().textFrames.everyItem () .getElements ();

    app.findTextPreferences = null;

    app.findTextPreferences.appliedParagraphStyle = mStyle;

    for (var k = 0; k)< mframes.length;="">

    {

    currFound = mFrames [k] .findText ();

    If (currFound.length > 0)

    currFound [0] .paragraphs [0] .appliedParagraphStyle = mStyle_1;

    }

    app.findTextPreferences = null;

    ................

    Rgds

  • GREP in parastyle - all the words in tiny paragraph outside the first word

    Hello. I hope for more assistance with the implementation of a GREP in a paragraph style.

    I'm composition several books and the many subtitles (all in the same paragraph style) are written so that each word is capitalized. The editor here now only the first word of each subheading to be capitalized, and instead of working my way through them manually, I was wondering if a GREP could achieve this? I know there are exceptions with proper names, but they are few.

    Any help appreciated, as any quick explanation on each part of the GREP so I understand better how it works!

    If the text was actually indexed using corks, it cannot be changed using GREP, but it may be film script. Script updated Dave Saunders style find/change case script would probably do what you want (change because of the sentence).

  • make the first line of each paragraph "BOLD"

    Hi all

    I read this forum, but I can't really find the answer, I need.

    Here's my problem, we intend to automate the flow of text in our Organization, that's what I have to do

    -read the input from the story of a database

    -flow text into a text box in particular for example 4.5 cm wide

    -each paragraph will be had 2 new lines

    -Select the first line of each paragraph then putting in bold.

    in the above list, I can do everything except the first paragraph selection and putting in bold. I am looking for the selection of text I see there is a function called textframe.select?

    Can someone help me with this please?

    This severely reduced your options. (Which reminds me, you can specify a detail important like that from the beginning the next time.)

    The simple solution would be to apply your "BOLD" font (or better: a character style) in the first line of each paragraph by using the property of a paragraph .lines. UH customary ‑‑ link to the HTML version of the omitted OMV, it seems I'm not coming back as much as CS2... (Is there a CHM for it to http://www.jongware.com/idjshelp.html).

    This should work:

    App.Selection [0] .paragraphs [0]. Lines [0] .appliedCharacterStyle = "YourBoldCharStyle";

    ... With your cursor in the paragraph you want to change. Will adjust to meet your specific needs.

    There is a drawback of the simple method. Unless you use a special police who makes bold with the same width as her (quite rare) usually, the text will be redistributed after he applied. So there are one or more words in bold on the next line, so you must remove the tank style "BOLD" of those. But! At that time InDesign may determine that these non-bold words may go back on the first line!

    Well written code does not help, because it could be possible the same word oscillates backwards with each change between the first and the second line, each time to cheat... At * some * point you'll have to help the poor ID a bit; perhaps to fix this first line with No Break applied.

  • How can I get the first line of a paragraph style indent, but others not in withdrawal

    I created a style of paragraph indented on the first line of each paragraph. In most of the books, at the start of the first line of a chapter, this line is not indented while the rest are. Is there a way to set up in InDesign CS3? Is the only way to make this work is to manually go out the tab at the start of each chapter?

    2 paragraph styles.

    1 paragraph style has no dash

    2nd paragraph style has dash

    set "next style" in 1st paragraph for paragraph 2e style style

    the "next style" value in the style of paragraph 2 to "even".

    Existing text.

    Select all of the text

    Right-click on the 1 paragraph style and select apply style then next style.

    New text (typeing)

    Start typing with the selected 1 paragraph style. When you press ENTER to start a new paragraph, the style will switch automatically to the 2nd paragraph style to what manually enable you return.

    HTH

    -mt

  • [JS] [CS3] Apply the character Style to the first word

    I'm a noob that Javascript is concerned, and I expected a little guidance.

    Here is my scenario: I have a book that was composed in a single file; the main content is in a story. I want to select the first word in each block of text on each page and apply a character style. My goal is to use this character style to indicate the page breaks in the XML document - I maps to a specific tag style.

    So far, I have this poor specimen:

    myDocument var = app.activeDocument;
    myPage var = myDocument.pages.item (1);
    var myTextFrame = myPage.textFrames.item (0);


    If (app.activeDocument.stories [0] .paragraphs [0] .words [0]! = null)
    myTextFrame.paragraphs.item (0).words.item (0) = .appliedCharacterStyle
    myDocument.characterStyles.item ('foo');

    I know, I did not implement any kind of loop again (which will be more complicated given that there will be some blank backs, etc.). What I try to do in this is to select the first word in the first paragraph on the second page - which it does in reality. It's the first paragraph of the second begins on the first page, so I select that word on the first page, second page.

    As I said, a lot of work to do but a bit of help on getting to the right word would be most appreciated.

    Well, you were on the right track, but the "myText" test fails if there is no block of text on a page, because it fails a line earlier

    > var myTextFrame = myPage.textFrames.item (0);

    just before that, you must test the number of blocks of text:

    If (myPage.textFrames.length > 0)

    {

    ... your stuff...

    }

    Use it only if you are absolutely positive that there is just a block of text on each page! A slightly better way would be to always loop on each textframe:

    for (frames = 0; frames

    {

    var myTextFrame = myPage.textFrames.item (frames);

    .. etc.
    }

    in this case you don't have test his first length (the loop will not be executed if there is zero text blocks).

    [Grumpy] Since you have only a continuous story, an even better way would be to loop on texts related to this single story executives. You must identify the story somehow, and I usually click on the text cursor in the one that I need:

    monarticle = app.selection [0] .parentStory;

    or you can rely on the fact that the story begins as part of text on page 1:

    monarticle = app.activeDocument.pages [0] .stories [0];

    (I think this should work.) Then, each frame of the story until the end can be found in the table

    myStory.textContainers

    which are usually text blocks. Make a loop on them to help

    for (image = 0; frame)

    {

    myTextFrame = myStory.textContainers [frame];

    .. etc.

    }

  • Why Ctrl + right arrow doesn't ignore the last word in a paragraph?

    Just fossoyée Chrome and Firefox installed on Windows 10. Overall excellent experience with a complaint. When I write an e-mail, Ctrl + right arrow behaves as expected, except at the end of a paragraph when he jumps the last word and jump to the next paragraph. How to solve this problem? Safe mode did not fix anything. Thank you.

    said jscher2000

    Phoxuponyou said

    I can confirm that what is happening in the box to answer here. Correctly, the cursor moves to the beginning of the last word in a paragraph, but instead to respect the full stop at the end of the paragraph, it will jump to the word starting in the next paragraph.

    In Word 2010 for example, the cursor stops before the last point of the paragraph. Even the notebook stops behind the last point.

    CTRL + right arrow, Firefox ignores generally up to the first non-space character after next space. However, it ignores also up to the first non-space character after a hyphen or a sign (+) joining the two words.

    Firefox and Word seem to work very differently in terms of punctuation: Word stops before the periods, commas, points of question marks, hyphens and signs more is not the case with Firefox. Firefox stops just after the apostrophes, is not the case of Word. Each program seems to have a very different definition of the border between the "words".

    Thanks, both. We'll put it down to the vagaries of human nature. It's almost a deal breaker. Using Shift + Ctrl + right arrow to select and "Vault" on the last word in a paragraph is a workaround I can live with that.

  • Receive emails from retailers who have 'click' as the first word.

    Original title: cannot find ' click on ' addresses?

    Lately I have received emails from retailers who have 'click' as the first word, such as click.elowes.com and I always get a 'not found '.  What is the problem?

    Hello

    As you use Windows Live mail, you can also post your request in the Windows Live forums to get help.

Maybe you are looking for