Sent by Dave Silvester on 10 August 2004 20:08
On Tuesday 10 August 2004 19:05, Khalid Sattar wrote:
> thanks again for all the help.
I haven't checked your site in IE, but here's some general advice about print
stylesheets:
You may benefit from using media="screen" on your main stylesheet, to prevent
the two stylesheets conflicting with each other. I suspect your problem may
be caused by floats, or the width of the page, or something like that which
is not being properly overridden from your main stylesheet. Separate the
media types, and this is less likely to happen.
In the print stylesheet, you should also use " !important" at the end of a
rule to override stuff from other stylesheets, again, reducing the chances of
a conflict of rules causing weird things to happen.
Those are the beginnings of the techniques I use for print stylesheets, and
they seem to work well.
This is a good article: http://www.alistapart.com/articles/goingtoprint/
Also, some more general advice:
If you're developing a site, even if you don't care too much about Mozilla,
it's still best to develop in a more standards compliant browser and then
patch for less compliant (such as IE). If you develop in IE first, you're
far more likely to get away with bad code from the start, so when someone
comes to your page in any other browser, they're more likely to get a messed
up layout. If you develop in the browsers with rigid standards support, it's
much much easier to fix the site to work in IE at a later stage. (Mozilla's
"Web Developer Toolbar" extension is an incredibly powerful development tool
as well, and you can't get that in IE.) Develop in Mozilla (or Opera) and
then patch for IE.
But, here's probably the most important one: Your page does not validate, not
even close. Run it through validator.w3.org a few times and fix the issues
until it validates. Valid pages are less prone to layout issues, and this is
definitely the first thing you should fix.
Hope that helps a bit! :-)
~Dave
--
Dave Silvester
Music Technology Junkie
Web: http://www.mu-sly.co.uk/
Email: sly at mu hyphen sly dot co dot uk
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/