how do i remove HTML snippets borders?
can anybody help me i want to remove the html snippet borders it won't show in my mac safari browser but i shows up in ios safari which is a bit annoying is there a way that i can remove to border
can anybody help me i want to remove the html snippet borders it won't show in my mac safari browser but i shows up in ios safari which is a bit annoying is there a way that i can remove to border
The HTML Snippet does not display a border.
It's probably your own code.
If you're using an iframe, then this is the default code :
<iframe src="http://url.to.file.html" frameborder="0" width="500" height="500" scrolling="no" allowTransparency="true"></iframe>
Notice the frameborder attribute.
Other browsers, like older versions of Firefox, display unwanted borders unless you specified "border:none" in the stylesheet.
The example of the "default code" given above is some what dated!
The "allowTransparency" attribute is only required for old versions of IE. Transpareny is the default value in all modern browsers and is not supported in HTML5. Neither are "frameborder" and "scrolling".
A new attribute in HTML5, that would be applicable in your case, is "seamless" which specifies that the iframe content should look as though its part of the page that contains it.
As far as preventing scrollbars is concerned, use "overflow:hidden" in the css.
For the time being, until HTML5 is universally adopted, it makes more sense to write iframe styles in CSS although you can still use the height and width attributes if you really want to since they are still supported.
<iframe src="URL to the embeded doc" style="width:Xpx;height:Ypx;border:none;overflow:hidden"></iframe>
The 'default code' provided is used by iWeb to display the HTML Snippet. Except that it uses a style="width: 100%; height: 100%;".
It does not display a border in iOS Safari on my iPad. With or without content.
And since we're dealing with iWeb in this forum, it's relevant code, regardless of the future.
So the future is already present in iWeb.
What's the URL of your site so we can examine it first hand and post the code you're using.
OT
Wyodor wrote:
It does not display a border in iOS Safari on my iPad. With or without content.
Obviously it won't since you specified "frameborder="0".
I'm not disputing the relevancy of the code - just pointing out its antiquity.
Obviously you miss the point.
It's iWeb's code, not mine. And if you display an empty HTML Snippet is does not display a border.
And don't talk about antiquity. It's valid code.
But if you disagree, submit a RFC.
you confused between antiquity and obsolescence.
in good engineering there is always backward compatible. and that's what rfc is all about.
using rfc ensures no obsolete of any kind (in giving standards) unless it needed to.
how do i remove HTML snippets borders?