Results 1 to 2 of 2

Thread: CSS and Text inclusion

  1. #1
    Join Date
    Jun 2005
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS and Text inclusion

    Is there a way to include body text in a css and have it dynamically import into a <div> tag?


    Also, is what would the css look like if you wanted to have a <div> tag that scrolled in a certain size? Like an iframe without all the browser issues.


    Creative
    Last edited by creative; 07-09-2005 at 02:13 AM.

  2. #2
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by creative
    Is there a way to include body text in a css and have it dynamically import into a <div> tag?
    No. CSS can be used to produce dynamic content, but it's not designed as a mechanism for inserting significant amounts of content. It's also not supported by IE.

    Also, is what would the css look like if you wanted to have a <div> tag that scrolled in a certain size?
    Code:
    #your-div {
      height: ...;
      width: ...;
      overflow: auto;
    }
    Like an iframe without all the browser issues.
    It still has issues. Not all browsers will support it, and it could cause usability problems if the document itself requires scrollbars.

    Mike

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
  •