473,320 Members | 1,876 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,320 software developers and data experts.

-moz-binding: none; IE equivalent?

Hello everybody. I just became the webmaster of an organization who
wants a marquee on the front page. I don't have problems using a
marquee sensibly. I actually have some structured content inside the
marquee (headings and paragraphs) and there's some CSS to set all those
things to display:inline. So, on the screen, this does exactly what I
want it to in IE and Firefox, and theoretically any browser that
doesn't support marquees should still display the content inside,
although the display:inline part could make it interesting.

Anyway, what I want to do is make the browser ignore the <marquee> tag
when the page is printed. With Firefox I could probably use
-moz-binding: none; in a stylesheet for print media, but is there a way
I can write CSS to do this for IE? I know I can simply make it all go
away (including the content) by setting display: none; but I would like
to keep the content if I can. Does anybody know a way to do this?

--
Vid the Kid

Apr 3 '06 #1
9 2077
VidTheKid wrote:

Anyway, what I want to do is make the browser ignore the <marquee> tag
when the page is printed.

Add a media=print stylesheet that sets <marquee> to "display:none".

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Apr 4 '06 #2
Jim Moe wrote:
VidTheKid wrote:

Anyway, what I want to do is make the browser ignore the <marquee> tag
when the page is printed.

Add a media=print stylesheet that sets <marquee> to "display:none".


Did you not read my entire post? I am aware of this option as a last
resort, but I am looking for a solution that allows the content to be
printed as if it weren't inside a <marquee> element. When I said I
want the browser to ignore the <marquee> tag I did not mean it should
ignore its contents too. Do you understand me now?

--
Vid the Kid

Apr 5 '06 #3
To further the education of mankind, "VidTheKid" <vi*******@gmail.com>
declaimed:
Jim Moe wrote:
VidTheKid wrote:
>
> Anyway, what I want to do is make the browser ignore the <marquee> tag
> when the page is printed.
>

Add a media=print stylesheet that sets <marquee> to "display:none".


Did you not read my entire post? I am aware of this option as a last
resort, but I am looking for a solution that allows the content to be
printed as if it weren't inside a <marquee> element. When I said I
want the browser to ignore the <marquee> tag I did not mean it should
ignore its contents too. Do you understand me now?


Use Jim's solution and add a <p> or something which only shows when
printed...

--
Neredbojias
Infinity can have limits.
Apr 5 '06 #4
Neredbojias wrote:
Use Jim's solution and add a <p> or something which only shows when
printed...


Essentially duplicating the marquee'd content in the markup? Less than
desirable.

Logically, shouldn't <marquee>'s default printed behavior be to just
act like <div> or whatever, showing the content as if <marquee> and
</marquee> simply weren't in the code?

*sigh* I guess I have a few options in front of me. I'll have to
choose which one is the least displeasing.

--
Vid the Kid

Apr 5 '06 #5
VK

VidTheKid wrote:
Hello everybody. I just became the webmaster of an organization who
wants a marquee on the front page. I don't have problems using a
marquee sensibly. I actually have some structured content inside the
marquee (headings and paragraphs) and there's some CSS to set all those
things to display:inline. So, on the screen, this does exactly what I
want it to in IE and Firefox, and theoretically any browser that
doesn't support marquees should still display the content inside,
although the display:inline part could make it interesting.

Anyway, what I want to do is make the browser ignore the <marquee> tag
when the page is printed. With Firefox I could probably use
-moz-binding: none; in a stylesheet for print media, but is there a way
I can write CSS to do this for IE? I know I can simply make it all go
away (including the content) by setting display: none; but I would like
to keep the content if I can. Does anybody know a way to do this?


First of all -moz-binding has nothing to do with marquee. -moz-binding
is Mozilla's replication of long existing IE's behaviors (google for
"internet explorer behavior").
rather
marquee is not related neither with bindings nor with behaviors: this
is an animation element implemented on the core browser level, same as
pre-historic <blink> in Netscape.

On print it is treated as regular block element (like p or div) without
need of any extra coding/styling, so the subject of your worries is
escaping me. In media:print block you may define some extra styling if
you want - say place borders around the text.

The only problem you have to solve is the overflow issue: say if the
marquee text is very long, on print it may take the whole page plus
kill the layout. I would go with overflow:hidden.

If you want to print not just marquee text, but the part of text
displayed at the moment your user pressed "Print" button, then this
problem is not solvable by CSS means. It is a rather tricky JavaScript
task.

Apr 5 '06 #6
VK wrote:
First of all -moz-binding has nothing to do with marquee. -moz-binding
is Mozilla's replication of long existing IE's behaviors (google for
"internet explorer behavior").
rather
marquee is not related neither with bindings nor with behaviors: this
is an animation element implemented on the core browser level, same as
pre-historic <blink> in Netscape.
I had read about some "tricks" that could be applied in FF's
usercontent.css: specifically, setting marquee { -moz-binding: none; }
would disable (but not remove the content of) any marquee element. I
had assumed that setting the binding to "none" could be used to turn
off any special meaning that an HTML element might posess. I tested
this just now, and it works for <marquee> but not if I make it
print-media specific, so it doesn't really help me anyway.
On print it is treated as regular block element (like p or div) without
need of any extra coding/styling
It should be, but it's not. In both IE6 and FF1.0, a <marquee> element
appears in print (well, print preview -- I'm not wasting paper and ink
to check presentation behavior) *exactly* as it does on-screen, except
of course without any motion. In IE, you see the first bit of content
that fits in the horizontal space, (maybe an overflow property might
help here?) and in FF it's just blank, as if the content is "about to"
scroll onto the page.
The only problem you have to solve is the overflow issue: say if the
marquee text is very long, on print it may take the whole page
That wouldn't bother me, if it behaved logically.
plus
kill the layout.


Excessive content "killing" the layout? Not in any of my designs!

I'm beginning to think that this is something the W3C really should
address. <marquee> needs to be standardized, and the standard needs to
include practical print behavior.

--
Vid the Kid

Apr 7 '06 #7
To further the education of mankind, "VidTheKid" <vi*******@gmail.com>
declaimed:
Neredbojias wrote:
Use Jim's solution and add a <p> or something which only shows when
printed...


Essentially duplicating the marquee'd content in the markup? Less than
desirable.

Logically, shouldn't <marquee>'s default printed behavior be to just
act like <div> or whatever, showing the content as if <marquee> and
</marquee> simply weren't in the code?


I'm not that familiar with <marquee> but there may be a style you can add
in the css print stylesheet (which, of course, is only active during
printing,) that may render the marquee content printable. Personally, I
would try a few things (like e.g. "display:inline;" or even 'pre') just to
see what happened.

--
Neredbojias
Infinity can have limits.
Apr 7 '06 #8
VK

VidTheKid wrote:
It should be, but it's not. In both IE6 and FF1.0, a <marquee> element
appears in print (well, print preview -- I'm not wasting paper and ink
to check presentation behavior) *exactly* as it does on-screen, except
of course without any motion. In IE, you see the first bit of content
that fits in the horizontal space, (maybe an overflow property might
help here?) and in FF it's just blank, as if the content is "about to"
scroll onto the page.
Well, sorry for IE: they must be changed the onprint behavior since IE
3.0 (and that was the last occasion I used marquee). You seem wrong
about FF though: on FF 1.5.0.1 under Windows 98 SE it behaves exactly
as IE: visible part of marquee is printed, the rest is hidden.
I'm beginning to think that this is something the W3C really should
address. <marquee> needs to be standardized, and the standard needs to
include practical print behavior.


Kill me if I understand why did they include this "spirit from the
past" on the first place. <marquee> was forgotten for years and not
used anymore even by IE adepts. Somehow I understand that FF *still*
(not "now*) supports <blink>: as a sign of traditions and inheritance
from Netscape. But marquee?? There is a ocean of DHTML scrollers
written to move your text LTR, RTL, TTB, BTT and even from BRCorner to
TLCorner - and they all have no problem with printing. Just go to (just
an option) dynamicdrive.com and get what you like.

IMHO marquee specs are as much of preoccupation of W3C as say <spacer>
or <ilayer>.

Apr 7 '06 #9
VidTheKid wrote:

<marquee> needs to be standardized


Some of us would rather it go away altogether. ;)

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Apr 7 '06 #10

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

Similar topics

47
by: Martin DeMello | last post by:
It seems to be a fairly common pattern for an object-modifying method to return None - however, this is often quite inconvenient. For instance def f(lst1, lst2): g((lst1 + lst2).reverse()) #...
28
by: The Eternal Squire | last post by:
PEP: 336 Title: Make None Callable Version: $Revision: 1.1 $ Last-Modified: $Date: 2004/11/03 16:58:30 $ Author: Andrew McClelland Status: Draft Type: Standards Track Content-Type: text/plain...
15
by: Josef Meile | last post by:
Hi, Textually from the highlights of python 2.4: "Assigning to None - the compiler now treats assigning to None as a SyntaxError." I think in general assignments to built-in types,...
35
by: Steven Bethard | last post by:
I have lists containing values that are all either True, False or None, e.g.: etc. For a given list: * If all values are None, the function should return None.
5
by: Frans Englich | last post by:
That's what PyChecker tells me, at least. A line of: if testReport is not None: results in: runner.py:587: Using is not None, may not always work
7
by: Marek Mänd | last post by:
When using <TABLE rules="all"> Mozilla 1.6 and previous versions draw a nasty interiour border, which doesnt go away though I have on TD's css border:none set. Is it something wrong with my...
3
by: Iain Hallam | last post by:
Hi. I've been using display:none on the style property of some <option> elements in my forms, which works fine with Mozilla - as expected it removes the option from my dropdown (although it...
5
by: Daniel Crespo | last post by:
Is there a built-in method for transforming (1,None,"Hello!") to 1,None,"Hello!"? Thanks
30
by: Raymond Hettinger | last post by:
Proposal -------- I am gathering data to evaluate a request for an alternate version of itertools.izip() with a None fill-in feature like that for the built-in map() function: >>> map(None,...
15
by: tereglow | last post by:
Hello all, I come from a shell/perl background and have just to learn python. To start with, I'm trying to obtain system information from a Linux server using the /proc FS. For example, in...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.