-1

To start: I 100% understand that the font tag is depresiated and should not be used. I'd love to meet the terrible person who did this to me, trust me :)

I have a large CMS system with custom entries that use:

<span>
    <font size="5">
        This is the long sentence that gives me a problem every time.
    </font>
</span>

Now what is happening is I'm getting random spacing between words (like between This and Is, it's twice as big as the space between gives and me). I've tried using letter-spacing -0.1em, but that really screws up other areas of the site. I would love to use text-align to fix it, but it's not working.

How can I control the word spacing/alignment for JUST the font tag. Messing with the span tags, unless there's a way that won't mess with my grandfathered content, isn't an option it appears.

Thanks a ton

4

1 回答 1

1

尝试重置排版样式:

font {
    padding: 0;
    letter-spacing: 1px;
    display: block;
}

display默认情况下不继承该属性。您需要明确设置它。

于 2013-02-14T16:20:33.010 回答