Changing the Paragraph/Heading style

  •  09-22-2005, 6:32 PM

    Changing the Paragraph/Heading style

    I have a questions regarding the Paragraph drop down menu.
     
    I noticed that when you highlight a line of text and select a Format style for it (ie, Heading 1), the tags surrounding that line of text are changed to the corresponding Format tags (ie, <h1>).
     
    The problem I am experiencing is that sometimes there are cases where the surrounding tags are <div> tags around a block of text.  So if I try to apply a Format style to even a single word within a block of text, the whole block of text changes to that Format style (the <div> tags surrounding the block of text turn into <h1> tags).
     
    Is there any way to allieviate this problem?
     
     
    Here is an example.
     
    This is the block of text as it normally stands

    <div>
    <br/>ABB Automation
    <br/>
    <br/>is the world&#39;s leading supplier of automation technologies, from stand-alone products to integrated solutions. Our portfolio includes controls and instrumentation, motors, drives and power electronics, robotics and flexible automation, marine and turbocharger systems, plus a vast range of industry-specific solutions. We serve customers in virtually every industry and geographic location, through a network of professionals that understand our customers&#39; businesses.
    </div>
     
    If I want to make the words "ABB Automation" in style Heading 1, I highlight them and select "Heading 1" from the Paragraph drop down.  This is what results:
     
    <h1>
    <br/>ABB Automation
    <br/>
    <br/>is the world&#39;s leading supplier of automation technologies, from stand-alone products to integrated solutions. Our portfolio includes controls and instrumentation, motors, drives and power electronics, robotics and flexible automation, marine and turbocharger systems, plus a vast range of industry-specific solutions. We serve customers in virtually every industry and geographic location, through a network of professionals that understand our customers&#39; businesses.
    </h1>
     
    As you can see, the <h1> tags simply replaced the <div> tags.  This isn't correct because all I wanted to do was apply the <h1> tags to the words "ABB Automation." 
     
    Is there any way to make this work right without having to directly edit the HTML? Is there a way to make it so that the Paragraph drop down selection simply inserts new tags around the highlighted text, rather than modifying the existing surrounding tags?
     
    Thanks you,
    Nathan
View Complete Thread