POV-Ray : Newsgroups : povray.general : Online documentation suggestion : Re: Online documentation suggestion Server Time
29 Jul 2024 06:27:39 EDT (-0400)
  Re: Online documentation suggestion  
From: Jellby
Date: 31 Oct 2012 10:17:11
Message: <4bm7m9-a5e.ln1@meles.unex.es>
Anthony D. Baye wrote:

> couldn't you add to the rule for p like so:
> 
> p {
>     text-align: justify;
>     max-width: 600px;
> }
> 
> or something similar?  I think max-width is css 3.0, but iirc it is
> supported by the most popular browsers.

max-width is in CSS 2 (<http://www.w3.org/TR/CSS21/propidx.html>), and it is 
not supported by IE 6, I believe (but who cares?)

> if you don't want all of your p tags to use the same rule, you could
> subclass it.
> 
> p .docText {
>     max-width: 600px;
> }

Just remove the space before the dot: p.docText, otherwise it applies to all 
anything with a docText class *inside* a <p> tag, but not to the <p> tag 
itself.

I would suggest specifying the max-width in relative units, like ems, 
instead, 50-60 em looks like a sensible size.

-- 
light_source{9+9*x,1}camera{orthographic look_at(1-y)/4angle 30location
9/4-z*4}light_source{-9*z,1}union{box{.9-z.1+x clipped_by{plane{2+y-4*x
0}}}box{z-y-.1.1+z}box{-.1.1+x}box{.1z-.1}pigment{rgb<.8.2,1>}}//Jellby


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.