css 3

Icon

A comprehensive CSS 3 reference guide, tutorial, and blog
Are you a CSS expert? Want to contribute? Contact us

CSS INCLUDE-SOURCE

This property inserts another document into the current document, replacing the current element’s content. Any elements or CSS properties applied to or inherited by the current element are applied to the inserted content as well.

 

Example

div {
  position: absolute;
  top: 100px; left: 300px;
  width: 200px; height: 200px;
  border: thin solid black;
  include-source: url(http://www.example.com/testpage.htm);
}

 

Possible Values

Value Description
[URL] An absolute or relative URL pointing to a document. If rendering of the document is not possible by the browser, it should be ignored and the regular element content be displayed instead.

 

9 Responses

  1. Soc0ut says:

    I’ve not been able to get this to work. Is it a form of CSI?

  2. Ron Skingley says:

    Neither have I.
    Not only is it ignored by all the browsers I’ve tried (4), Coda also doesn’t recognise the syntax.

    So what’s the story on this please?

  3. Seventhfury says:

    This would be a great attribute to have as a designer/developer if this worked fluidly across all browser platforms.

    It would be interesting to know if this has been resolved to work across all browsers, or if this is something to expect in the future.

  4. Marreone says:

    Sounds like a harmful property to me. The purpose of CSS is to separate the layout from the content.

    I guess this is some loony web browser invention and not W3 approved?!

  5. Gautam Bhatia says:

    Hello,
    I would love to use this property, looks great to me
    as this can also be used to insert dynamic data into the element which sounds nice too me :).

  6. giodex says:

    This trick doesn’t work with any browser

  7. Chris says:

    include-source is an old Netscape Navigator proprietary property, it is not part of the CSS3 specification, or any other CSS specification for that matter.

    The only browser which supports include-source is Netscape Navigator version 4 onwards.

  8. Soc0ut says:

    Thanks!

  9. vicky says:

    But this is not working in any of browser.how it works

Leave a Reply

Pages

Sponsors

$100 PSD to XHTML. CONTACT US FOR MORE INFORMATION


CSS3.com



Please help CSS3.com stay alive and running

Bad Behavior has blocked 973 access attempts in the last 7 days.