Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Jul 2003
    Location
    Denmark
    Posts
    111
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Iframe attributes

    Hi

    I've found the attributes of <iframe> on w3c but I cannot find its attributes for use in css.

    Can anyone help?

    I want to write the frameborder attribute in my css file..

    Thanks
    Mz

  • #2
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Use border.

    Most CSS properties apply to all elements. There aren't individual sets of properties that apply to only certain elements, which is probably why you couldn't find it.
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #3
    Regular Coder
    Join Date
    Jul 2003
    Location
    Denmark
    Posts
    111
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The border is just placed around the iframe and thus is not the same as the html:frameborder.


    Any other ideas?



    Mz

  • #4
    Regular Coder
    Join Date
    Sep 2002
    Location
    self.location
    Posts
    181
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Mzungu,

    You are right in that the two borders are distinct. You'll prolly find that you have to kluge what you want by first setting

    <iframe frameborder="no"></iframe>

    ... to completely suppress the default "chrome" border, and then styling your custom border as desired, emulating the chrome border if need be, and changing whatever attributes you want, eg:

    iframe { border:3px inset #C0C0C0; }

  • #5
    me'
    me' is offline
    Senior Coder
    Join Date
    Nov 2002
    Location
    Warwickshire, England
    Posts
    1,229
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That should frameborder="0":
    Code:
    <!ELEMENT iframe %Flow;>
    <!ATTLIST iframe
      %coreattrs;
      longdesc    %URI;          #IMPLIED
      name        NMTOKEN        #IMPLIED
      src         %URI;          #IMPLIED
      frameborder (1|0)          "1"
      marginwidth %Pixels;       #IMPLIED
      marginheight %Pixels;      #IMPLIED
      scrolling   (yes|no|auto)  "auto"
      align       %ImgAlign;     #IMPLIED
      height      %Length;       #IMPLIED
      width       %Length;       #IMPLIED
      >
    David House - Perfect is achieved, not when there is nothing left to add, but when there is nothing left to take away. (Antoine de St. Exupery).
    W3Schools | XHTML Validator | CSS Validator | Colours | Typography | HTML&CSS FAQ | Go get Mozilla Now | I blog!

  • #6
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    hi. dunno if this will hell you but this is how I have done my iframe in the css.

    .facilitiesiframe {
    width : 100%;
    height : 325px;
    border : 0;
    overflow : hidden;
    background-color : transparent;
    margin-top : 15px;
    }

    se how the iframe displays here

    The iframe is the bulletted text betwen the main image and the taxi logo/ad at the bottom. They're both in the left div.

    hth
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link


  •  

    Posting Permissions

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