Forums

Div use in WordPress.. (3 posts)

  1. ricland
    Member
    Posted 7 years ago #

    My site is located here: http://cincynews.net

    Here's my problem: Each post will contain a video clip and text. I want to format the text with a div, but can't do so without also formatting the video clip.

    Specifically, I want the text to scroll, a feature that ordinarily is possible like this:
    <div style="
    width: 400px;
    height: 250px;
    overflow: scroll;">
    "My text ..."
    </div>

    However, as I say, it's not working out that way. When I try the inline div above, nothing happens, even though I place the text in the proper place within the document.

    How do I solve this problem?

    ric

  2. Jinsan
    Member
    Posted 7 years ago #

    why not create a .scroll in your css and apply it as a div class with those values to where you need to?

  3. ricland
    Member
    Posted 7 years ago #

    "why not create a .scroll in your css and apply it as a div class with those values to where you need to?"

    I think I tried that without success.

    It seems the only way to apply css to the text is within the post element, but the problem with that, as I say, is that it includes the video which means the video falls within the scroll box.

    ric

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags