Styling first letter in each line differently [was: Dreamweaver cs4 question]

I am trying to change the font in a group of text, I want to change the first letter of each sentence to a large size and different color and when I do this it changes the entire  paragraph in the div, so how can I change the attribute of one letter in a word? Example: See how the first letter of each sentence spells out earth?  I want to make those letters to stand out.  CAN ANYONE TELL ME HOW TO DO THIS??????
Ensuring compliance with relevant environmental legislation and regulations.
Achieving and reviewing our set objectives and goals with continual improvements.
Reducing environmental pollution by reducing, recycling and re-using by-products and waste.
Training and communication to all our staff to participate and achieve environmental excellence.
Having our environmental policy documented, implemented, maintained and made available to the public and interested third parties.
Thank you in advance
[Subject line edited for clarity by moderator]

Your question went unanswered for nearly a day because of the meaningless subject line you used. Please take a moment to read How to get help quickly.
There are a couple of ways to achieve what you want. The way I would do it is to make each line a separate paragraph, and wrap them in a div with an ID called "earth". The following CSS style rule will make the first letter of each paragraph 24px tall and green:
#earth p:first-letter {
  color:#090;
  font-size:24px;
This uses the first-letter pseudo-element and applies it to all paragraphs in the earth div.

Similar Messages

  • Unwelcome caps on first word of each line in Pages 08

    I'm brand new to Pages, though I've used AppleWorks for years.
    I've searched exhaustively in "helps" for a/the way to disable the quirk of changing
    the first letter of each line of copy to a cap when typing. (We still 'type' here in the
    cornfields) I Would appreciate greatly, your help in finding an escape.
    Thank you for any help,
    ps

    Welcome to the Discussions!
    When you go to:
    Pages > Preferences > Auto-Correction (Tab)
    Is your Fix Capitalization box checked?
    Joe

  • I was set up to use mac mail but it is slow so I have switched back to gmail. When I write an email the first letter of each sentence does not capitalize and it use to. what do i do...

    When I bought this computer it was set up for mac mail but i am not using it it's to slow. i am using my gmail thru safari and when I type an email the first letter of each sentence is NOT capitalized and it use to be, any help is appreciated.

    Talk to Google. Gmail is not an Apple product. Writing an email message is using the Google editor.

  • Extract First letter from each word

    Hi All,
    I have a requirement to extract first letter of each word as shown in below example
    input: abcd output: a
    input: abcd efgh output: ae
    input: abcd efgh ijkl output: aejany help will be highly appreciated
    I am on db version 11g

    jeneesh wrote:
    Just a note - This will not take care of spaces at the end of the line..You're right, and not just spaces but any non-word characters. Here is fixed solution:
    with t as (
               select 'abcd ' str from dual union all
               select 'abcd efgh.' from dual union all
               select 'abcd efgh ijkl,' from dual union all
               select ' a abcd efgh ijkl! ' from dual
    select  str,
            '[' || regexp_replace(str,'\W*(\w)(\w*)|(\W*$)','\1') || ']' initials
      from  t
    STR                 INITIALS
    abcd                [a]
    abcd efgh.          [ae]
    abcd efgh ijkl,     [aei]
    a abcd efgh ijkl!  [aaei]
    SQL> BTW, oldie_63's solution takes care of spaces but not:
    with t as (
               select ' abcd' str from dual union all
               select '.abcd efgh' from dual union all
               select ',abcd efgh ijkl' from dual union all
               select '! a abcd efgh ijkl' from dual
    select  str,
            '[' || trim(regexp_replace(str,'(\S)\S*\s*','\1')) || ']' initials
      from  t
    STR                INITIALS
    abcd              [a]
    .abcd efgh         [.e]
    ,abcd efgh ijkl    [,ei]
    ! a abcd efgh ijkl [!aaei]
    SQL> Also, OP needs to clarify what to do with hyphenated words:
    SQL> with t as (
      2             select 'sugar-free' str from dual
      3            )
      4  select  str,
      5          '[' || regexp_replace(str,'\W*(\w)(\w*)|(\W*$)','\1') || ']' initials
      6    from  t
      7  /
    STR        INITIALS
    sugar-free [sf]
    SQL> with t as (
      2             select 'sugar-free' str from dual
      3            )
      4  select  str,
      5          '[' || trim(regexp_replace(str,'(\S)\S*\s*','\1')) || ']' initials
      6    from  t
      7  /
    STR        INITIALS
    sugar-free [s]
    SQL>Or words like:
    SQL> with t as (
      2             select 'O''Reily' str from dual
      3            )
      4  select  str,
      5          '[' || regexp_replace(str,'\W*(\w)(\w*)|(\W*$)','\1') || ']' initials
      6    from  t
      7  /
    STR     INITIALS
    O'Reily [OR]
    SQL> with t as (
      2             select 'O''Reily' str from dual
      3            )
      4  select  str,
      5          '[' || regexp_replace(str,'\W*(\w)(\w*)|(\W*$)','\1') || ']' initials
      6    from  t
      7  /
    STR     INITIALS
    O'Reily [OR]
    SQL> SY.

  • Read the first word of each line in a text file

    i need to read the first word of each line of a text file.
    i know of line.split() but not actually sure how i would go about using it
    Any help most appreciated
    Many Thanks
    Ben

    Hi thanks for the reply!
    this is what i tried... and it still doesn't get me the first word of each line!
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.Color;
    import java.awt.event.ActionEvent;
    import java.io.*;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import java.util.Calendar;
    import java.util.Scanner;
    import java.util.Vector;
    import java.text.SimpleDateFormat;
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    import java.io.BufferedReader;
    public class testing {
         Vector progs=new Vector();
         Vector rand=new Vector();
         String[] tmp = new String [2];
         String str;
         String str2="ewerwer";
         String str3;
         public void programTest()
                   try
                             BufferedReader in = new BufferedReader(new FileReader("progList.log"));
                             while ((str = in.readLine()) != null)
                                  progs.add(str);
                        catch(IOException e)
                             System.out.println("cannot read file");
         //////THE ISSUES IS HERE....I WANT TO GET THE FIRST WORD FROM EACH LINE OF THE FILE!!!     
              try
                             BufferedReader in2 = new BufferedReader(new FileReader("eventLog.log"));
                             while ((str = in2.readLine()) != null)
                                  tmp = str.split(" ");
                                  System.out.println(tmp[0]);
                        catch(IOException e)
                             System.out.println("cannot read file");
    public static void main(String[] args)
                 testing B = new testing();
                 B.programTest();
               //  B.fileToVector();
                 //B.LoginWindow();
               //B.anomDetect();
    }//end class

  • How to capitalize the first letter of each  word in a sentence?

    Can anyone please explain how to split a sentence at a comma, or space or hyphen in to words and capitalize the first letter of each word. But I don't know how many words the sentence contains.

    HI,
    data : begin of itab occurs 0,
             words(40),
             end of itab.
    data : v_sentence(1000).
    data : lv_firstchar.
    split v_sentence at ',' into table itab.
    loop at itab.
    translate itab-words+0(1) to upper case.
    modify itab index sy-tabix.
    endloop.

  • Is there a command to capitalize the first letter of each word?

    That is to say, can you capitalize the first letter of each word in a document like say, word? Or using the net?
    Thanks guys.
    (hope that makes sense.)

    Select the text, then Format->Change Case->Title Case (Word 2004).

  • Select first word in each line of a text file to do something.

    How do I select the first word in each line to do something newer from a text file in Powershell?
    Example:
     GBL                            Primary    File            
     local                          Primary    File            
     localhost                      Primary    File            
     Opstest                        Primary    File            
     TrustAnchors                   Primary    File            
    99upgrade

    Hi 99,
    here's an example on how to do it:
    $lines = Get-Content "C:\ExampleFolder\Example.txt"
    foreach ($line in $lines)
    Write-Host ($line.Split(" "))[0]
    Just replace the Write-Host line in the loop with what you actually want to do with the first word in the line.
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • First letter of each sentence in pages!

    how can I fix the first letter in each sentence, it doesn't turn to uppercase automatically, although i have tryed to choose none, title case etc. in the advanced setting? what should i do?

    We guess you are talking about Pages 5. You didn't say.
    Feature dropped by Apple along with 100 others.
    Pages '09 can capitalise the first letter of sentences automatically.
    Peter

  • First letter on a line only partially printing

    HP 3310 Photosmart All-in-one
    On almost every page printed, the left-most part of the first letter on (mainly) the first line of the page does not print.  Frequently, first letters on subsequent lines (not necessarily consecutive)  also only partially print.  Sometimes, interior letters have the same problem.
    I have changed cartridges several times and cleaned print heads several times (although the test sheet printed when cleaning printheads is invariably perfect). Sometimes the very lowest portion of several letters in a row will not print.  
    The problem happens with different paper stock, different fonts, and different cartridges (including genuine HP cartridges.  

    RichardK wrote:
    HP 3310 Photosmart All-in-one
    On almost every page printed, the left-most part of the first letter on (mainly) the first line of the page does not print.  Frequently, first letters on subsequent lines (not necessarily consecutive)  also only partially print.  Sometimes, interior letters have the same problem.
    I have changed cartridges several times and cleaned print heads several times (although the test sheet printed when cleaning printheads is invariably perfect). Sometimes the very lowest portion of several letters in a row will not print.  
    The problem happens with different paper stock, different fonts, and different cartridges (including genuine HP cartridges.  
    It sounds like you have an issue with the ink drying out in the printheads.  This could be caused by a defective service station area (the part that caps the printheads while not printing), bad ink or by turning the power off to the printer before the printheads have been put away properly.
    It would take a long time for a change of ink cartridges to actually show up at the printheads, there would be a significant amount of ink that remains in the system even after a cartridge change.  You say you have used different cartridges (including genuine HP cartridges).  Does that mean you have used non-HP ink?   I would suggest putting in HP ink and running several (three or more) cleaning cycles but unfortunately if you have used bad ink it may be very difficult to flush this out of the system.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • HT3669 Latest Mac OS Update Driver for Canon 9500 Pro causes text lines all to be printed over the first letter of the line?

    Anyone know how I can 'fix' the Mac OS printer driver for the Canon 9500 Pro - all my text lines end up with the whole line being printed over the first character of the line of text when printing PDFs. It has ruined a lot of work.

    I'd try this:
    Delete the current printer (reset the print system) Mac OS X: How to reset the printing system
    Delete all other Canon software and utilities from your computer.
    Do a factory reset on your printer
    Use Software Update to download the driver from Apple.
    Don't reinstall any other Canon Utilities.
    Make sure you don't have something mechanical stopping the paper from advancing.
    If the problem is really the driver, then you could look in Gutenprint for a different driver. Gutenprint for Mac OS X

  • I don't want the first letter of every line to be capitalized

    When I try to put in user id's and passwords on web sites, I don't always want the first letter to be capitalized.  How do you make the Ipad stop doing this?

    Settings -> General -> Keyboard
    Turn off Auto-Capitalization.
    Regards.

  • Styles not displayed after uploading site [was: Dreamweaver CS4]

    First time using CS4 Dreamweaver, just upgraded to Windows 7.
    I have designed several sites and never had this problem. Uploaded
    everything - my web site views like it is missing the Style Sheets. Whats
    up with this? I keep reviewing and reviewing and cannot seem to find the problem.
    Web site is http://www.mid-lifecycle.com. Any suggestion would be very helpful.
    Thank you
    Barbara
    [Subject line edited for clarity by moderator]

    xxzzyyt wrote:
    First time using CS4 Dreamweaver, just upgraded to Windows 7.
    Together with John's reply, this gives a strong clue. It looks as though the site root is incorrectly defined. See http://forums.adobe.com/thread/478327.

  • Linking to a specific section of a page [was: Dreamweaver noob question]

    Hello everyone, I am rather new to dreamweaver and am required to use it at work to update the company website.  Long story short we have a list of databases.  In this list of databases there are several subsections, for instance.  Automotive,Government, Health, School, etc.  They are all on the same page so essentially it is a long list.  After updating the databases the link now brings you to the top of the page, regardless of what you click on.
    So my question is, how do you make a link take you to a certain scroll section, say 25% down the page, 50%, etc ,etc.
    Thanks again to anyone taking the time to read this post and shed some light on my situation.
    [Subject line edited by moderator for clarity]

    Hi,
    in addition to our hints, here an example from one of my websites, please look here:
    http://www.goldschmiede-blumberg.de/LBIC/GinkgoL.php:
    At this place ("Text s. weiter unten"):
    "Ginkgo biloba"
    Gedicht von Wolfgang von Goethe
    (Text s. weiter unten)
    you will find an anchor to Goethe's poem. It's code for the link in shorthand ist like that:
    <a href="#Johann">(Text s. weiter unten)</a>
    Hans-G.

  • How to retrieve FTP connection settings for live website? [was: Dreamweaver MX question]

    We have a website that is live (and hasn't been edited in 5 years), but we cannot update it because the company no longer owns the computer which had Dreamwewaver MX installed on it and thus all the settings are lost.  I downloaded Dreamweaver MX on another computer and have all of the files for the site, but don't know how to "reconnect" this to the live site.  Can someone please advise?

    Once you have all your FTP info, you'll create a new, blank site in DW.
    Once that is created, you connect via the Files window (little plug in icon) and choose Get (down arrow). That should prompt you with "Download entire site?" to which you should click "Yes".
    That will download the entire current site from your server to your computer's HD. From there, you will simply edit the pages locally, test them in the browsers installed using Preview In Browser, and then upload to the website, overwriting the online files.
    DW cannot edit files on your server directly, it's designed to work locally, then upload and overwrite files on the server.

Maybe you are looking for

  • Restricting user to input a maximum number of characters in a JTable cloumn

    Hi all, I'me developing a program which should restrict the user with a maximum number of characters input in a JTable column. It should show a msg and restrict the user from typing in, if the number of characters exceed the limit and on clicking can

  • Default currency in shopping cart

    Hi Freinds, Can anyone let me know how the default currency can be changed in SC.I have done the same in ytansaction PPOMA_BBP under the attributes but it doesnt seem to be working.Where else do i have to check it out. Regards, Pawan.

  • ATI HD5770 Performance Issue

    I have a HD5770 card driving an Acer 22" monitor and my old HD2600XT powering another 17" IBM monitor. Everything works well, I think. I do alot of FCP and Logic stuff and play World of Warcraft, but I im not really seeing any performance increase fr

  • PL/SQL Associative Array as INPUT Parameter

    Hi, Just wondering if anyone out there has a good example of how to get VB.NET (using ODP.NET 9.2.0.4) to pass an Associative Array as an Input parameter to a stored procedure (not for bulk binds)? Specifically, I'm looking for an example of how a VB

  • Refference Error #1069

    I have a reference error on my flash project. Its a drag and drop project with muscles. I'm trying to make the code so that my dynamic text will change when the muscle is placed over its target and when it is off of its target. The dynamic text works