473,625 Members | 2,632 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

EMBED + overflow

Hi all.
I don't have a very deep understanding of CSS and this question might
sound stupid for you. Sorry for that.

Can the overflow CSS property be applied to the embed tag?

I have an embed tag whose source is big SVG file, whose dimensions are unknown.
If it is bigger than the screen, the rest of the SVG is clipped and not shown.
I would like to force the embed tag to scroll in that case.

But setting the overflow to scroll doesn't have any effect.

Can I set the overflow property on embed tag at all?

Thank you very much for help.

Anna
Jul 20 '05 #1
10 6313
Anna wrote:
Can the overflow CSS property be applied to the embed tag?
Since <embed> would be a replaced element, I would assume that it
does, however, <embed> is a non-standard, proprietary Netscape element,
so maybe that's why it doesn't.
I have an embed tag whose source is big SVG file, whose dimensions are unknown.


You should be using <object> as defined in the HTML 4.01 and XHTML
1.1 specifications, instead. However, IE doesn't support the standard
very well, only it's proprietry extensions. You should also be able to
use the <img/> element for SVG, when it's deleivered correctly as
"image/svg+xml".

--
Lachlan Hunt
http://www.lachy.id.au/
la**********@la chy.id.au.updat e.virus.scanners

Remove .update.virus.s canners to email me,
NO SPAM and NO VIRUSES!!!
Jul 20 '05 #2
On Sun, 30 May 2004 08:58:53 GMT, Lachlan Hunt
<la**********@l achy.id.au.upda te.virus.scanne rs> wrote:
Anna wrote:
I have an embed tag whose source is big SVG file, whose dimensions are unknown.
You should be using <object> as defined in the HTML 4.01 and XHTML
1.1 specifications, instead.


Nope, OBJECT isn't well enough defined for SVG (do links within the
object navigate the parent or jus the object's container?) use
IFRAME.
However, IE doesn't support the standard
very well, only it's proprietry extensions.
IE supports OBJECT for SVG just fine.
You should also be able to
use the <img/> element for SVG, when it's deleivered correctly as
"image/svg+xml".


Why should you be able to?

Jim.
--
comp.lang.javas cript FAQ - http://jibbering.com/faq/

Jul 20 '05 #3
Jim Ley wrote:
On Sun, 30 May 2004 08:58:53 GMT, Lachlan Hunt
<la**********@l achy.id.au.upda te.virus.scanne rs> wrote:

Anna wrote:
I have an embed tag whose source is big SVG file, whose dimensions are unknown.


You should be using <object> as defined in the HTML 4.01 and XHTML
1.1 specifications, instead.


Nope, OBJECT isn't well enough defined for SVG (do links within the
object navigate the parent or jus the object's container?) use
IFRAME.


Why not, I thought you could use
<object type="image/svg+xml" data="image.svg ">
<p>Alternate Content...</p>
</object>

From my experience, experementing with embedding XHTML documents
using <object> instead of <iframe>; links within an object's content
replace the contents of the object, not the parent/window, without
explicit use of the target attribute.
However, IE doesn't support the standard
very well, only it's proprietry extensions.


IE supports OBJECT for SVG just fine.


What? this seem contradictory. First you said OBJECT isn't well
defined for SVG, yet now you say IE supports it just fine. IE has
trouble supporting things which are well defined, let alone those which
are not.
You should also be able to
use the <img/> element for SVG, when it's deleivered correctly as
"image/svg+xml".

Why should you be able to?


Because SVG is an image format, which is why it should be served as
"image/svg+xml", so I assumed using <img/> would work. I included the
mime type, because I wasn't sure how UAs would work if it were delivered
as "applicatio n/xml" or "text/xml". It's possible they would work fine,
but it would mean the UA would need to read the file to determine which
type of XML it was, whether or not it was an XML image format, such as
SVG, and whether or not it supported the format.

--
Lachlan Hunt
http://www.lachy.id.au/
la**********@la chy.id.au.updat e.virus.scanners

Remove .update.virus.s canners to email me,
NO SPAM and NO VIRUSES!!!
Jul 20 '05 #4
you could just add it in your XML markup
Jul 20 '05 #5
On Sun, 30 May 2004 15:22:36 GMT, Lachlan Hunt
<la**********@l achy.id.au.upda te.virus.scanne rs> wrote:
From my experience, experementing with embedding XHTML documents
using <object> instead of <iframe>; links within an object's content
replace the contents of the object, not the parent/window, without
explicit use of the target attribute.
What even with flash?
What? this seem contradictory. First you said OBJECT isn't well
defined for SVG, yet now you say IE supports it just fine. IE has
trouble supporting things which are well defined, let alone those which
are not.


IT supports it, and something happens when you perform a navigation,
the problem is, it's not something that's been defined in the
specification - hence the problem with the definition of object.
You should also be able to
use the <img/> element for SVG, when it's deleivered correctly as
"image/svg+xml".

Why should you be able to?


Because SVG is an image format, which is why it should be served as
"image/svg+xml", so I assumed using <img/> would work.


Why is that a reasonable assumption to make? there's lots of image/*
which aren't rendered by browsers, and there's certainly no browser
out there which does a wide amoung of SVG that supports it under an
img ref.

Jim.
--
comp.lang.javas cript FAQ - http://jibbering.com/faq/

Jul 20 '05 #6
Firstly, this is completely off topic, and has turned into a discussion
which should probably be on c.i.w.a.html instead; however, I will still
attempt to answer you questions.

Jim Ley wrote:
On Sun, 30 May 2004 15:22:36 GMT, Lachlan Hunt
<la**********@l achy.id.au.upda te.virus.scanne rs> wrote:

From my experience, experementing with embedding XHTML documents
using <object> instead of <iframe>; links within an object's content
replace the contents of the object, not the parent/window, without
explicit use of the target attribute.


What even with flash?


I don't know, my experience with embedding flash, and other
technologies is minimal, that's one reason why I explicitly mentioned
embedded XHTML documents. Flash on other sites I've been to, tend to
open links in the parent, so I guess it depends on what's being
embedded. Although I'm at a loss, as to where that question came from,
and why you asked about linking when that wasn't the topic; but anyway,
I did my best to answer it.
You should also be able to
use the <img/> element for SVG, when it's deleivered correctly as
"image/svg+xml".

Why should you be able to?


Because SVG is an image format, which is why it should be served as
"image/svg+xml", so I assumed using <img/> would work.

Why is that a reasonable assumption to make? there's lots of image/*
which aren't rendered by browsers, and there's certainly no browser
out there which does a wide amoung of SVG that supports it under an
img ref.


I never mentioned anything about how well it was or was not
supported, I only mentioned that it should be able to be used. The HTML
4.01 specification's definition of the <img> element [1] only provides
examples of widely used image formats, and does not limit the formats
which can be supported in any way. Therefore, it should be completely
valid to embed SVG, or any other "image/*" type, using the <img/> element.

As it turns out, now that I've had time to test the various methods
of embedding SVG, the following lists the support using Internet
Explorer with Adobe's SVG Viewer 3.01 plugin.

<object>: Not Supported (standard implementation only,
not IE's confusing proprietary
implementation)
<img/>: Not Supported
<iframe>: Supported
<frame/>: Supported (within a <frameset>)
<embed>: Supported (but non-standard element)
Inline: Not Supported (using the XHTML 1.1 + MathML 2.0 + SVG 1.1 DTD)

I'd also like to know which ones work in an SVG enabled build of
Mozilla, or Opera if there's a plugin available for it, or with any
other plugins available for IE.

[1] http://www.w3.org/TR/html401/struct/....html#edef-IMG

--
Lachlan Hunt
http://www.lachy.id.au/
la**********@la chy.id.au.updat e.virus.scanners

Remove .update.virus.s canners to email me,
NO SPAM and NO VIRUSES!!!
Jul 20 '05 #7
On Mon, 31 May 2004, Lachlan Hunt wrote:
I never mentioned anything about how well it was or was not
supported, I only mentioned that it should be able to be used.
With respect - your original wording was capable of misinterpretati on.
The HTML 4.01 specification's definition of the <img> element [1]
only provides examples of widely used image formats, and does not
limit the formats which can be supported in any way.
Fair comment.
Therefore, it should be completely valid to embed SVG, or any other
"image/*" type, using the <img/> element.

^^^^^^^^^^^^^^

NCSA X Mosaic used to support application/postscript as an image
format from <img...>, by the way. But, as you say, this is off-topic
for the present group.
Jul 20 '05 #8
Mozilla SVG-enabled build
<object>: Supported
<img/>: Not Supported
<iframe>: Supported
<frame/>: Supported (within a <frameset>)
<embed>: Not Supported
Inline: Supported (just using the svg namespace)

It's too bad <img/> isn't supported. Plus you can't use SVG with the
background: url() css property.
Jul 20 '05 #9
On Mon, 31 May 2004 10:42:03 GMT, Lachlan Hunt
<la**********@l achy.id.au.upda te.virus.scanne rs> wrote:

As it turns out, now that I've had time to test the various methods
of embedding SVG, the following lists the support using Internet
Explorer with Adobe's SVG Viewer 3.01 plugin.

<object>: Not Supported (standard implementation only,
not IE's confusing proprietary
implementation)
<img/>: Not Supported
<iframe>: Supported
<frame/>: Supported (within a <frameset>)
<embed>: Supported (but non-standard element)
Inline: Not Supported (using the XHTML 1.1 + MathML 2.0 + SVG 1.1 DTD)


I think these results are more due to the limitations of Internet
Explorer's plugin interface than anything else.

It seems that a lot of recent new ideas have shown that IE wasn't
designed with future expansion in mind. Observe the image loader only
supporting 1-bit transparency, the fact that plugins are limited to
rendering in a child window in response to a non-standard OBJECT
element, and the quite shaky XML namespace support.

They designed it for how things were at the time, and aren't doing
anything to make things better now.

I suspect (but do not know) that Mozilla would (could?) do a better
job of all this given that its SVG support is part of Gecko rather
than a plugin. I don't have an SVG-enabled version handy to test,
however.

Regards,
-Claire
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3108
by: Wolfgang Schwanke | last post by:
Dear usenet, I'm having the following small problem. I've been ask to add some Quicktime panoramas to a website. The author of the panoramas has made two versions of each: One in MOV format, which needs a Quicktime plugin, and one Java applet. He's also kindly supplied me with sample HTML code for each. The code looks like this (simplified):
3
5216
by: Tony Sutton | last post by:
I have this following code in my html file: <object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab# version=7,0,0,0" width="320" height="320"> <param name="src" value="file.dcr" /> <embed src="file.dcr" pluginspage="http://www.macromedia.com/go/getflashplayer" width="320" height="320"> </embed>
11
4486
by: Anna | last post by:
Hi all. I want to embed the EMBED tag in the object tag. I understood that I need to provide a PARAM tag inside the OBJECT whose value will hold the content of EMBED src attribute, but after that I've got confused. For example, what should be put into classid and codebase attributes of the OBJECT now embedding the EMBED tag?
0
688
by: Anna | last post by:
Hi all. I don't know if I should ask this question here or on html group. I'll try. I have an embed element whose src is a big SVG file. The width and height of embed are set to 100%. When the SVG file is bigger than the screen size, the rest of it is just cropped, and cannot be seen. I tried to add a style="overflow:scroll" attribute to the embed, but it doesn't work.
2
5421
by: François de Dardel | last post by:
Please don't scream that EMBED is evil ! What I am doing is <EMBED SRC="BWV659.mid" AUTOSTART="false" LOOP="TRUE" CONTROLS="SMALLCONSOLE" WIDTH="50" HEIGHT="15" TITLE="BWV 659"> Note the AUTOSTART="false"... In the good old days of Netscape 3 or so, just <A HREF="BWV659.mid">Musique</A> would open a small console in the active page itself, based on the plug-in selected by the user. Today, it opens
1
2974
by: Andrew Poulos | last post by:
With "normal" SWF HTML there's an EMBED tag nested within an OBJECT tag. How can I check which tag is actually displaying the SWF? I'm using CSS on them and the style on the OBJECT affects the EMBED tag so I'm going to use some code to correct it but I can't tell which tag is responsible for the display. Andrew Poulos
42
6998
by: thomas.mertes | last post by:
Is it possible to use some C or compiler extension to catch integer overflow? The situation is as follows: I use C as target language for compiled Seed7 programs. For integer computions the C type 'long' is used. That way native C speed can be reached. Now I want to experiment with raising a Seed7 exception (which is emulated with setjmp(), longjmp() in C) for integer
2
8066
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I did not understand some parameters totally in the HTML tag. These days when I was surfing the Internet I have found some comprehensive introduction to these two tags. I read it and conclude it with my own words; I think it will be useful to us, so I...
0
8635
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8352
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7178
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6115
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4085
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2614
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1800
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1496
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.