J
Julie Siebel
Apologies...I'm sure this has been asked before, but I can't seem to
come up with the correct Google search terms.
While my problem is with stylesheets, the errors are being caused by
my javascript, so this seemed a more appropriate place to post.
I'm using a media=print style sheet to do a version of a web page that
I am building. Currently, I'm working on the IE version.
I have an HTML page and 2 style sheets which all validate (this is a
FIRST for me! lol - now ya KNOW how desperate I am!) with the
exception of some IE scrollbar property stuff - but I deleted that and
it still didn't fix my problem.
I have a .js file which manipulates the stylesheet properties - I
adjust the vertical height of an "overflow: auto" scrollbar div so
that it fits the available space when the window is resized, and I
turn certain divs on and off to emulate a tab bar with product
information hidden beneath.
In the Media = "print" stylesheet, I want to print the scrollbar div
full width, and to print all of the off/on divs. However, any item
that has been manipulated with Javascript doesn't print properly.
The scrollbar text prints in a narrow column, as if the width from the
screen version is applied; I've tried to explicitly override this in
the style sheet (margin: 0, setting a width, etc.), but with no
result.
For the on/off divs, any tab that I've actually clicked on before
going to print preview doesn't show as "visible" when printed, even
though that is explicitly declared in the print stylesheet.
The really WEIRD thing is that if I delete the DOCTYPE designation
entirely, it all works just peachy!
The javacript to adjust the scroll bar uses IE specific addressing,
e.g. thisdivname.style.height = xxx - and the print version of the
style sheet works fine in Netscape, which can't do anything with this
command, but it has precisely the same problem with the on/off tab
divs (which DO work in Netscape) that IE does.
If I remove the javascript entirely (or the doctype as mentioned
above) everything works as expected.
What the heck am I doing wrong?
I can post the HTML, CSS files, and .js files here if needed, but that
seemed a little excessive considering how blabby I've already been.
Can someone steer me to a solution/tutorial/bourbon bottle?
Julie
P.S. E-mail to this address goes to a separate folder, which might be
looked at but might not! lol. To reach me directly, e-mail my first
name plus pandemoniumgraphics.com; please post solutions to the
newsgroup so it'll come up in a search the next time someone has this
problem.
come up with the correct Google search terms.
While my problem is with stylesheets, the errors are being caused by
my javascript, so this seemed a more appropriate place to post.
I'm using a media=print style sheet to do a version of a web page that
I am building. Currently, I'm working on the IE version.
I have an HTML page and 2 style sheets which all validate (this is a
FIRST for me! lol - now ya KNOW how desperate I am!) with the
exception of some IE scrollbar property stuff - but I deleted that and
it still didn't fix my problem.
I have a .js file which manipulates the stylesheet properties - I
adjust the vertical height of an "overflow: auto" scrollbar div so
that it fits the available space when the window is resized, and I
turn certain divs on and off to emulate a tab bar with product
information hidden beneath.
In the Media = "print" stylesheet, I want to print the scrollbar div
full width, and to print all of the off/on divs. However, any item
that has been manipulated with Javascript doesn't print properly.
The scrollbar text prints in a narrow column, as if the width from the
screen version is applied; I've tried to explicitly override this in
the style sheet (margin: 0, setting a width, etc.), but with no
result.
For the on/off divs, any tab that I've actually clicked on before
going to print preview doesn't show as "visible" when printed, even
though that is explicitly declared in the print stylesheet.
The really WEIRD thing is that if I delete the DOCTYPE designation
entirely, it all works just peachy!
The javacript to adjust the scroll bar uses IE specific addressing,
e.g. thisdivname.style.height = xxx - and the print version of the
style sheet works fine in Netscape, which can't do anything with this
command, but it has precisely the same problem with the on/off tab
divs (which DO work in Netscape) that IE does.
If I remove the javascript entirely (or the doctype as mentioned
above) everything works as expected.
What the heck am I doing wrong?
I can post the HTML, CSS files, and .js files here if needed, but that
seemed a little excessive considering how blabby I've already been.
Can someone steer me to a solution/tutorial/bourbon bottle?
Julie
P.S. E-mail to this address goes to a separate folder, which might be
looked at but might not! lol. To reach me directly, e-mail my first
name plus pandemoniumgraphics.com; please post solutions to the
newsgroup so it'll come up in a search the next time someone has this
problem.