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 4 of 4
  1. #1
    New Coder
    Join Date
    Jul 2013
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts

    iframe Google Calendar

    copy/pasted Google html code to iframe calendar on page. I cannot adjust the Width and Height of calendar unless I set
    style= "Border=0"

    then the width and height properties respond. If i do not put the border rule in, then the calendar only accepts the height property specified, but width remains "overridden" by the lack of the "border=0" property.

    Can anyone provide an explanation for this phenom?
    thx

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    3,760
    Thanks
    23
    Thanked 546 Times in 545 Posts
    style= "Border=0"
    is not correct, it's style= "border:0". But the big question is : What are you trying to style?
    You can't style the calendar, so you should be styling the iframe.
    Maybe a help: http://www.w3schools.com/tags/tag_iframe.asp
    Evolution - The non-random survival of random variants.

  • #3
    New Coder
    Join Date
    Jul 2013
    Posts
    15
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Yes the iframe is it, but the width would not "expand" unless I included the "border:0" attibute which seemed odd since the iframe border should be affecting the width of the iframe, i don't think,

    i'll check out the link,
    thx
    F

  • #4
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    3,760
    Thanks
    23
    Thanked 546 Times in 545 Posts
    I had to look this up because I don't believe iframe has a border attribute or ever had. Well it did, but it was called frameborder and is now obsolete use CSS instead.
    Found it here http://dev.w3.org/html5/markup/iframe.html

    Maybe the best explanation comes from Mozilla Developer Network here https://developer.mozilla.org/en-US/...Element/iframe which gives us this:
    height
    Indicates the height of the frame HTML5 in CSS pixels, or HTML 4.01 in pixels or as a percentage.
    width
    Indicates the width of the frame HTML5 in CSS pixels, or HTML 4.01 in pixels or as a percentage.
    and
    frameborder HTML 4 only
    The value 1 (the default) tells the browser to draw a border between this frame and every other frame. The value 0 tells the browser not to draw a border between this frame and other frames.

    If your still having problems please post the iframe tag with attributes and/or the CSS you are using.
    Evolution - The non-random survival of random variants.


  •  

    Posting Permissions

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