frames and borders.. xhtml compliant?

Discussion in 'HTML & Website Design' started by libertygone, Mar 1, 2007.

  1. #1
    border=0 is not xhtml compliant when trying to make frames have no border, but it works..

    is there an xhtml compliant way of making a frame have no border and not show any border?
     
    libertygone, Mar 1, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    I'll assume you're using a frameset DTD, since frames are not valid in any strict DTD. The object is the preferred element for importing a document. To see the object element in use, see show/hide div. Scroll down a bit, and click button three.

    To style the border, use your stylesheet.
    
    frame {
        border: 0 none;
        }
    Code (markup):
    cheers,

    gary
     
    kk5st, Mar 1, 2007 IP
  3. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #3
    Frames, as mentioned, are not compliant. I believe they will work with the transitional DTD (correct me if i'm wrong). But why frames?
     
    Louis11, Mar 1, 2007 IP
  4. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #4
    Frames must use the frameset DTD, and iframes require a transitional or loose DTD.

    cheers,

    gary
     
    kk5st, Mar 1, 2007 IP
  5. dollcharm

    dollcharm Peon

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I think attribute values have to be within quotation marks to be valid, eg. border="0", otherwise just do what kk5st said and try styling it with css.
     
    dollcharm, Mar 1, 2007 IP