Announcement

Collapse
No announcement yet.

How to remove new line after Header

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to remove new line after Header

    I want to be able to define the class of subtitles within a page using the h2 tag.

    Whenever I change the class of the heading as h2 a blank line is inserted after the heading:

    The Artila iPAC-5070 is a Linux-based, network-enabled and Web-ready programmable automation controller, with on-board 16-bit high precision analog inputs, opto-isolated digital inputs and 500mA high-drive digital outputs.

    !!<<h2>>!!Linux Operating System!!<</h2>>!!
    The iPAC-5070 is a true Linux computing platform with file system support. Users can operate the PAC-5070 the same way as they do on a normal Linux desktop.


    A blank line is inserted after the
    !!<<h2>>!!Linux Operating System!!<</h2>>!!

    I have checked the actinic.css definition for h2 and the blank line is not setup there. I wonder if the heading is interpretted as a new paragraph?

    Any suggestions would be most welcome.

    John Legg
    John Legg
    The Debug Store

    sigpic
    http://www.TheDebugStore.com

    #2
    The H2 tag by default has a margin applied to it by your browser so you may need to override this in your actinic.css. I'd recommend changing your heading to:

    !!<<h2 class="subheading">>!!Linux Operating System!!<</h2>>!!

    and then try adding this at the bottom of actinic.css:

    h2.subheading {margin:0; padding:0;}

    By changing it to h2.subheading (or whatever you want the bit in red to be) and declaring this class in the css it will only be overriding that specific instance of h2 so it shouldn't interfere with anywhere else you've used the h2 tags.

    EDIT: you may want to consider using <h3> or even <b> tags if you are using that subheading to add emphasis rather than as a 'structural' heading.
    See this page for more info
    Golf Grips Direct
    Hobby Tools

    Comment


      #3
      I presume that you're talking about text within Product or Section descriptions.

      Also note that Actinic adds a <br /> whenever it sees a newline in your description.

      So:

      !!<<h2>>!!Linux Operating System!!<</h2>>!!
      The iPAC-5070 is a....

      Will display differently from:

      !!<<h2>>!!Linux Operating System!!<</h2>>!!The iPAC-5070 is a....
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Thanks Norman.

        So it does! In fact two line breaks are showing after the h2 text.

        Your suggestion removes one of them and the result is quite acceptable.

        I will also try Robs suggestion.

        John
        John Legg
        The Debug Store

        sigpic
        http://www.TheDebugStore.com

        Comment

        Working...
        X