SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict
    Join Date
    Jan 2002
    Location
    NJ/NY
    Posts
    346
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    using CSS to imitate iframe

    I think I've seen this before, but I can't remember the code at all.

    Is there a way to create a textarea that has html inside without showing the html tags? In other words, create an effect that looks exactly like an iframe tag but not an iframe.

    Thanks in advance.

    -dave

  2. #2
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, just create a div, assign it a height and width and set the "overflow" property to "auto":

    http://www.w3schools.com/css/pr_pos_overflow.asp

  3. #3
    SitePoint Guru Marc's Avatar
    Join Date
    Nov 2000
    Location
    New York
    Posts
    765
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep. I know I've used this technique before, and the only thing I can remember distinctly is cross-browser problems I don't think the site worked at all in netscape, although that could be unrelated to that css code.
    Marc Gugliuzza
    marc.gugliuzza.com



  4. #4
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's alright. Iframes don't work in Netscape either.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  5. #5
    SitePoint Addict goma's Avatar
    Join Date
    Jan 2002
    Location
    smelly armpit of Asia
    Posts
    305
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    iframe works in NN6 but not in NN4
    http://www.soapbox101.com

  6. #6
    SitePoint Wizard
    Join Date
    Oct 2001
    Location
    Tucson, Arizona
    Posts
    1,858
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    dtang4,

    I think you're going to have the same NS4 problems either way, whether you decide to use an <iframe> or CSS. NS4 doesn't support the <iframe>, and it hardly supports CSS, so take your pick.


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
  •