473,396 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Adding a border to a Flash OBJECT using styles

I'm trying to apply a border to a Flash learning object, which
is loaded into a page via <object>. I'm trying to use a
style to put a black border around the Flash object.

http://www.chem.utoronto.ca/courseno.../column01.html
http://www.chem.utoronto.ca/courseno...ci/analsci.css

Quick summary:

<object class="bordered" ...>

and

..bordered {
padding: 2px;
border: solid black 2px;
/** uncomment for debugging **/
color: black;
background-color: red;
}

This renders the way I expect in Safari 2.0.3. In IE 6.x, the
border appears but the padding appears to be ignored or over-
written. In Firefox/Camino, no border appears at all - it's
as though the rendering engine expands the Flash object to fill
out to the margin of the box.

Any ideas on how to get the border to show in FF? I could add
the border permanently in the actual *.swf, but I would rather
not as I want to be able to reuse the flash object without
having to edit the border in/out.
Jun 1 '06 #1
3 15332

David Stone wrote:
I'm trying to apply a border to a Flash learning object, which
is loaded into a page via <object>. I'm trying to use a
style to put a black border around the Flash object.

http://www.chem.utoronto.ca/courseno.../column01.html
http://www.chem.utoronto.ca/courseno...ci/analsci.css

Quick summary:

<object class="bordered" ...>

and

.bordered {
padding: 2px;
border: solid black 2px;
/** uncomment for debugging **/
color: black;
background-color: red;
}

This renders the way I expect in Safari 2.0.3. In IE 6.x, the
border appears but the padding appears to be ignored or over-
written. In Firefox/Camino, no border appears at all - it's
as though the rendering engine expands the Flash object to fill
out to the margin of the box.

Any ideas on how to get the border to show in FF? I could add
the border permanently in the actual *.swf, but I would rather
not as I want to be able to reuse the flash object without
having to edit the border in/out.


Place it inside a div tag with padding set to zero and add a border to
the div tag.

Jun 5 '06 #2
In article <11**********************@f6g2000cwb.googlegroups. com>,
dw************@gmail.com wrote:
David Stone wrote:
I'm trying to apply a border to a Flash learning object, which
is loaded into a page via <object>. I'm trying to use a
style to put a black border around the Flash object.

http://www.chem.utoronto.ca/courseno.../column01.html
http://www.chem.utoronto.ca/courseno...ci/analsci.css

Quick summary:

<object class="bordered" ...>

and

.bordered {
padding: 2px;
border: solid black 2px;
/** uncomment for debugging **/
color: black;
background-color: red;
}

This renders the way I expect in Safari 2.0.3. In IE 6.x, the
border appears but the padding appears to be ignored or over-
written. In Firefox/Camino, no border appears at all - it's
as though the rendering engine expands the Flash object to fill
out to the margin of the box.

Any ideas on how to get the border to show in FF? I could add
the border permanently in the actual *.swf, but I would rather
not as I want to be able to reuse the flash object without
having to edit the border in/out.


Place it inside a div tag with padding set to zero and add a border to
the div tag.


The padding of the div, presumably? I'll play around with this
later today and see what works best.

Thanks for the suggestion! I'd still like to know why Firefox
has such a hard time with this, though - is it a known bug?
Jun 6 '06 #3
In article <no****************************@news1.chem.utoront o.ca>,
David Stone <no******@domain.invalid> wrote:
In article <11**********************@f6g2000cwb.googlegroups. com>,
dw************@gmail.com wrote:
David Stone wrote:
I'm trying to apply a border to a Flash learning object, which
is loaded into a page via <object>. I'm trying to use a
style to put a black border around the Flash object.

http://www.chem.utoronto.ca/courseno.../column01.html
http://www.chem.utoronto.ca/courseno...ci/analsci.css [snip]
This renders the way I expect in Safari 2.0.3. In IE 6.x, the
border appears but the padding appears to be ignored or over-
written. In Firefox/Camino, no border appears at all - it's
as though the rendering engine expands the Flash object to fill
out to the margin of the box.
[snip] Place it inside a div tag with padding set to zero and add a border to
the div tag.


Ok, this works as long as the object is left-aligned on the page.
If you try centring, the div stretches the entire width, so the
border looks odd. Presumably, I could set width and height on the
div, but this is starting to get ridiculous - much easier to add
the border in the fla/swf file, even though this is less flexible
in the long run.
Jun 7 '06 #4

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

Similar topics

3
by: Markus | last post by:
hi, i am new to the xsl-fo-pdf-stuff... i want to create a pdf document with apache-fop. in this document i do have a border around two blocks. my designer want to have round corners for the...
23
by: MattB | last post by:
Hello please help, I have a table cell with a div in it. The div has a width of 300px. but when it is rendered it puts extra space into the table cell. Here's the style <style>...
0
by: Chef Blair | last post by:
I want to use CSS to control the color and borders on all the tables in my site, so I can just modify the CSS file, to control the behavior of the tables. Problem Is: Using CSS I cant seem to...
7
by: Bob Bedford | last post by:
I've an image in a cell of a table. I've this CSS: ..dbtable{ width: 600px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; border-collapse: collapse; border: 1px solid #000000;
2
by: Jon | last post by:
Hi all, I am trying to create a page that contains a number of div elements, with links on the left side of the page allowing the user to select which div to display. Some of the pages contain...
6
by: Edge | last post by:
hi all, I added a html table with 2 rows inside the itemtemplate of my gridview. It works ok, but the table border never touches the border of my gridview cell. How should I do if I want the...
18
by: gconrads | last post by:
OK, today is my twofer special on js questions. BTW: the method used here is working in Firefox I'm working on a script that switches the width of a Flash movie between 100% and 812 pixels...
1
by: swc76801 | last post by:
I desperately need help. My understanding of CSS is non-existent. I have a store http://astore.amazon.com/texasheat-20 with Amazon.com. According to the information from Amazon.com "Write your own...
5
by: Nathan Sokalski | last post by:
I have css that would normally be placed in style tags in the header of the Master page that I want to add programmatically for a specific Web Content Form (the *.aspx page). How do I do this for a...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.