Welcome to TalkGraphics.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2006
    Posts
    1,602

    Default text in placeholder issue

    Hi,

    I placed this question in another thread but it wasn't answered.
    Why the text isn't contained to the object height but does to its width?
    This could mean that people could use a single div for their text,
    as it seems to be a culprit for some.


    Hans
    Attached Files Attached Files
    IP

  2. #2
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: text in placeholder issue

    Because the default overflow setting for the div is "visible" so that content is allowed to be renderen over the border. You can embed your content within a <div> with different overflow setting. For exemple, it may be set to scroll, so that overflowing content will be scrolled. For your example file it may look like this:

    <div style="overflow:scroll; width:100%; height:100%;">
    <h1>OIOIO</h1>

    <p>The following is an example streaming video.
    It's easy to embed your own YouTube videos, or any of
    the tens of thousands of third party 'web widgets'
    using the Placeholder feature. Most web widgets provide
    a short snippet of HTML that you can attach to a graphic.
    So the following rectangle acts as a placeholder for the
    streaming video. To see the actual HTML snippet used,
    open the Web Properties dialog and look at the Placeholder
    tab.</p>
    </div>
    John.
    IP

  3. #3
    Join Date
    Nov 2006
    Posts
    1,602

    Default Re: text in placeholder issue

    Yes the div style works but only with scroll,auto isn't supported.
    This means people need to scroll sideways,not up and down,which is the normal behavior in every website.

    Hans
    Attached Files Attached Files
    IP

  4. #4
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: text in placeholder issue

    No, in your example file when I insert this code I get vertical scrolling only. Do you get horisontal as well?

    Ah, I see you have added a little bit different code than I proposed. Make shure it is:

    <div style="overflow:scroll; width:100%; height:100%;">
    John.
    IP

  5. #5
    Join Date
    Nov 2006
    Posts
    1,602

    Default Re: text in placeholder issue

    Added attachment in prev post.
    **edit**When adding the dimensions it worked.

    Hans
    Last edited by haakoo; 08 March 2009 at 09:10 AM.
    IP

  6. #6
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: text in placeholder issue

    Yes, yes, I have edited my post to comply to it.

    Oh, and yes, you can specify "overflow:auto" if you want to scrollbar to be hidden when content fully fits the placeholder.
    Last edited by covoxer; 08 March 2009 at 09:39 AM.
    John.
    IP

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •