ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

<font color> tag adding break lines above and below

July 29, 2009 9:05am

Subscribe [2]
  • #1 / Jul 29, 2009 9:05am

    Tux Kapono

    65 posts

    I’ve never seen this before, but when I use <font color=“red”>red</a> in my body text, it adds a break line above and below the word when it’s displayed. Anyone have an idea why? It works fine when using

    [color=red]red[/color]

    but I’d rather not get in the habit of mixing codes.

    Thanks!

  • #2 / Jul 29, 2009 9:17am

    Ingmar

    29245 posts

    The <font> tag has been deprecated since HTML 4.0. Consequently, EE’s typography parser leaves the whole paragraph alone. At least that’s what I think is happening. You should probably use a <div> or <span> with a bit of CSS instead, or, yes, use pmCode.

  • #3 / Jul 29, 2009 10:27am

    ender

    1644 posts

    as Ingmar suggested, using CSS is the preferred method of controlling fonts now.  red would do the trick.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases