Previous Message
Next Message

Ul printing problems in my print stylesheet

Sent by Jukka K. Korpela on 17 September 2007 19:07


On Mon, 17 Sep 2007, Ling, Luke C wrote:

> I have a ul with type=square on the page.

The page URL would help a lot in analyzing the problem. I was unable to 
reconstruct the problem from the snippets you gave, at least on IE 7. 
Which browser(s) did you test it on?

> ul { margin:0 0 0 1em;
> padding:0;
> list-style-position:inside;

Setting the left margin to just 1em (and assuming ul and li left margin 
and padding are otherwise zero) is just about enough to accommodate a list 
marker. This means that it might occasionally be a little too little, 
causing the marker to be partially cut. But this shouldn't happen when the 
position is inside.

So I'm afraid I can't even see the problem, still less try to find some 
solution.

> list-style-type:circle;
- -
> <ul type="square">

This is somewhat odd. It's of course possible to override HTML attributes 
in CSS. But if you prefer circles as list markers, why has the markup got 
that attribute, instead of type="circle"?

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: