• Hi

    I just started a new site ..

    http://survivor-story.com

    and came across a recurring problem.

    How to use tags such as <h3> etc for only part of a line.

    <h3 style=”display:inline;”>Via Cracow and Beirut – A Survivors Story</h3>, is a story of survival courage and hope.

    But the second half gets put on a new line.

    Is there a way around this?

    Thanks,

    Jane

Viewing 4 replies - 1 through 4 (of 4 total)
  • the second part is wrapped in a paragraph tag, which has the same ‘problem’ as the h3 tag; you need to style this as ‘inline’ as well.

    Thread Starter redbourn

    (@eagerwatcher)

    Thanks, I’ll change it.

    Strange that the forum wouldn’t let me upload the whole code, which is

    http://i52.tinypic.com/qrhjqf.png

    Jane

    Strange that the forum wouldn’t let me upload the whole code

    for posting code, click the ‘code’ button once, then write/paste the code, then click the ‘code’ button again;
    or highlicht the code section, and click the ‘code’ button.

    Thread Starter redbourn

    (@eagerwatcher)

    thanks again.

    This worked.

    <style type="text/css"><!-- .inlinemode h3, .inlinemode p { display:inline; } --></style>
    <div class="inlinemode"><h3>Via Cracow and Beirut - A Survivors Story</h3>, is a story of survival courage and hope.</div>
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem with "in-line" text.’ is closed to new replies.