www.webdeveloper.com
Results 1 to 8 of 8

Thread: Getting rid of iFrame borders

  1. #1
    Join Date
    Jun 2003
    Posts
    54

    Getting rid of iFrame borders

    Is there a simple CSS to eliminate/change iFrame borders?

    Thanks.

  2. #2
    Join Date
    Jun 2003
    Posts
    36

    dave

    is it going to run in netscape 4.x?

  3. #3
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    why couldn't you just use the html attribute. Border="0".

  4. #4
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    Originally posted by PeOfEo
    why couldn't you just use the html attribute. Border="0".
    Because the IFRAME element doesn't have a "border" attribute. It does, however, have a "frameborder" attribute. See http://www.w3.org/TR/html4/present/f...ml#edef-IFRAME.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Example</title>
    <iframe src="http://www.w3.org/" frameborder="0"><a href="http://www.w3.org/">http://www.w3.org/</a></iframe>
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  5. #5
    Join Date
    Jun 2003
    Posts
    54
    Thanks all.

    ...and no, I no longer keep compatibility with netscape 4.x.

  6. #6
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    Originally posted by Charles
    Because the IFRAME element doesn't have a "border" attribute. It does, however, have a "frameborder" attribute. See http://www.w3.org/TR/html4/present/f...ml#edef-IFRAME.
    Awww you know what I mean.

  7. #7
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Originally posted by PeOfEo
    Awww you know what I mean.
    How would he? border and frameborder are two very different things...

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  8. #8
    Join Date
    Nov 2002
    Location
    Auburn, AL
    Posts
    9,222
    well when hes refering to an iframe, that only has frameborder. There is no border attribute, I just was not thinking. But because their is no border attribut but rather frame border, one shoudl probably assume thats what I meant.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles