Announcement

Collapse
No announcement yet.

Change format of h2 style

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

    Change format of h2 style

    I have V8 and wish to override or amend the default setting of the h2 style. At the moment, text defined as the h2 style appears on its own line, with a bigger font and in a different colour. I have managed to change the font size and colour in the Actinic StyleSheet but cannot find what insists it is on a line on its own. I need to remove this so that the h2 text is then immediately followed by the normal text.
    .
    Any ideas?
    Thanks

    #2
    OK, you could add:

    {display:inline;}


    to your h2 style to achieve what you ask but I wouldn't reccommend doing this for several standards, accessibility and (probably) seo reasons - headings are by default block level elements and I can't see much to be gained by this - though I am sure people will soon put me straight if I am wrong!
    The Pretty Dress Company

    Comment


      #3
      This sounds pretty foolish to me, what I suspect you actually want is the bottom margin to disappear so that text starts directly underneath with no gap. Headings are in larger styles because they are just that - headings - and operate as they are supposed to (block level elements) and more importantly as people and SEs expect. If you insist of retaining a H2 and also having text on the same line, then i suspect (not tested or tried ever) float: left; would be your best way as this will shrink it to size and allow content to sit up next to it. It will look a mess though unless your text size is the same, in which case it's a pointless heading as it heads nothing.

      Hopefully this is just a design request and not some crazy ass SEO expert guiding you.

      Comment


        #4
        Out of interest, are you trying to get your site to read like a newspaper, for example:

        *Pulls latest news entry from the BBC*

        BANKING BONANZA

        Giving bonuses to executives at Lloyds Bank would be "completely wrong", Tory leader David Cameron has said.

        Payments totalling £120m are reportedly to go to workers at Lloyds - which is 43% state-owned - despite record losses at the bank's subsidiary HBOS.


        -------

        With the 'G' wrapped within the <h2> tag and 'iving bonuses to...' within a <p> tag?

        Comment


          #5
          There's a CSS style to enlarge the first letter of a sentence like in oldy worldy books.

          Comment

          Working...
          X