Hi! I want to put a html file into another html file . I tried iframe and object tag, which works but the problem is i also get scrolling frames. How can i insert a html file into another html file as it is without anything added to it like scrolling bars ?
Thx !
samson.oba.77
0
Newbie Poster
Recommended Answers
Jump to PostThe best way is server side using either php or asp.net or any other server side language.
If server side is not an option for you than sticking with your iframe you can hide bars like this in css:<iframe src="/path/to/file.html" seamless></iframe>
iframe[seamless] {
border: none;}
Remember though that iframes have many, many …
Jump to PostYou could also use the object element to include HTML content.
<object data="incl/foo.html">Warning: foo.html could not be included!</object>
W3C even recommends this over an iframe:
http://www.w3.org/TR/WD-html40-970708/struct/includes.html#h-7.7.4
All 6 Replies
tdrosiadis
0
Light Poster
gentlemedia
803
Master Poster
Alicera Nz
0
Newbie Poster
Alicera Nz
0
Newbie Poster
diafol
samson.oba.77
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.