Previous Message
Next Message

[css-d] Re: IE print and link problems (was RE: css-d Digest, Vol4, Issue 3)

Sent by Holly Bergevin on 6 March 2003 21:09


"Stephanie Chausse" [EMAIL-REMOVED]> wrote:

>Hi
>I have two CSS problems (at the moment):
>1. The home page will not print in IE; it closes the browser when trying
>to print--but prints fine in Netscape--other pages in the site, same
>code, print fine--I quadruple checked the code--
>http://www.provlib.org/building/campaignhome.htm
>
>2. The additional links I added to the body affect the other links--in
>the nav bar and the picture on the right side--
>http://www.provlib.org/building/news.htm

Hi Stephanie - Well, you have one easy one (the second) and one that has me looking rather
crosseyed at the moment. Here's what to do - 

For #2, add position: relative to the image.right selector. That should fix the disappearing parts
of your image. (I see that since I started looking at this you have repositioned the pictures) 

For #1 - For some reason, when you add the last <li> in your last <ul> the print problem (crashing)
happens. All the other parts of the page can stay, but that one. I have no idea why this is
happening, but I have a fix (which lets you keep the <li>), at least on my machine. 

You will need to add a margin-bottom rule for the ul selector. But there are a few catches. First,
the rule must be applied to all the <ul>s, second, the units must be pixels, and third, it must be
12px or fewer. Whew! 

Here's what your selectors should look like for both fixes - 

img.right { 
        float: right;
    margin-left: 15px;
    margin-bottom: 2px;
    margin-right: 2px;
    position: relative;/*add this*/
    }

ul {
    list-style-type: square;
    list-style-position: outside;
    margin-top: 3px;
    margin-bottom: 12px;/*must be pixels and 12 or less*/

    }

I recommend that you also check this page, and your others with the w3c validator (
http//validator.w3.org/ ). There are a couple of errors. They aren't what is causing IE's problems,
but you'll probably want to fix them. 

If I might suggest, the following page has good suggestions on how to isolate mystery problems and
bugs. I find it is very helpful.

http://users.rraz.net/mc_on_the_rocks/testpage/articles/mys-bug.html

HTH,

~holly

__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now!
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
Previous Message
Next Message