POV-Ray : Newsgroups : povray.off-topic : Small CSS question Server Time
11 Oct 2024 11:12:55 EDT (-0400)
  Small CSS question (Message 29 to 38 of 38)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Invisible
Subject: Re: Small CSS question
Date: 9 Nov 2007 10:20:43
Message: <47347acb@news.povray.org>
Nicolas Alvarez wrote:

> All you need is server-side scripting. Count the parentheses levels and 
> generate the CSS with that many levels. But a pure CSS method would be 
> nice.

Nah; just generate a file with 20 levels of nesting. If there's more 
than that, you won't be able to disentangle it visually anyway. (And 
it's not like the program will crash; it'll just show less clean output.)

> Still, you should really use MathML. That's what it's made for...

What, drawing pretty lines around bits of text?


Post a reply to this message

From: Phil Cook
Subject: Re: Small CSS question
Date: 9 Nov 2007 10:59:18
Message: <op.t1i7untmc3xi7v@news.povray.org>
And lo on Fri, 09 Nov 2007 15:08:59 -0000, Nicolas Alvarez  
<nic### [at] gmailisthebestcom> did spake, saying:


>> Phil Cook wrote:
>>> And lo on Fri, 09 Nov 2007 14:40:17 -0000, Invisible <voi### [at] devnull>  
>>> did spake, saying:
>>>
>>>> Certainly a lot easier to find subexpressions than in the raw text  
>>>> above. Just a pitty it takes so many miles of CSS...
>>>
>>> Well the CSS is fixed so just dump it into a separate file and all  
>>> you'll have is the spans
>>  True.
>>  I'm wondering if I could do something weird with inheritance and  
>> percentage units...
>
> All you need is server-side scripting. Count the parentheses levels and  
> generate the CSS with that many levels.

Which was my first suggestion :-)

> But a pure CSS method would be nice.
>
> Still, you should really use MathML. That's what it's made for...

But little use unless you can serve it as application/xhtm+xml whereas  
html is always served as text/html without the need for a dedicated server  
component.

-- 
Phil Cook

--
I once tried to be apathetic, but I just couldn't be bothered
http://flipc.blogspot.com


Post a reply to this message

From: Darren New
Subject: Re: Small CSS question
Date: 11 Nov 2007 17:46:33
Message: <47378649$1@news.povray.org>
Phil Cook wrote:
> span span span span {padding:14px; border: green 1px solid;}

Wonderful span! Glorious span! (span span span!)

Shut up! Shut up!

Could I have S(S(KS)K)(S(S(KS)K)I) without so much span in it?

EWWWW!

> span span span span span {padding:12px; border: blue 1px solid;}
> span span span span span span {padding:10px; border: red 1px dotted;}

Seriously, I didn't know you could do that with CSS. Cool.

-- 
   Darren New / San Diego, CA, USA (PST)
     Remember the good old days, when we
     used to complain about cryptography
     being export-restricted?


Post a reply to this message

From: Phil Cook
Subject: Re: Small CSS question
Date: 12 Nov 2007 04:09:20
Message: <op.t1n81f14c3xi7v@news.povray.org>
And lo on Sun, 11 Nov 2007 22:46:33 -0000, Darren New <dne### [at] sanrrcom>  
did spake, saying:

> Phil Cook wrote:
>> span span span span {padding:14px; border: green 1px solid;}
>
> Wonderful span! Glorious span! (span span span!)
>
> Shut up! Shut up!
>
> Could I have S(S(KS)K)(S(S(KS)K)I) without so much span in it?
>
> EWWWW!

well you could replace all the span with inline div :-)

>> span span span span span {padding:12px; border: blue 1px solid;}
>> span span span span span span {padding:10px; border: red 1px dotted;}
>
> Seriously, I didn't know you could do that with CSS. Cool.

Heh I think it should be called MySpace code

-- 
Phil Cook

--
I once tried to be apathetic, but I just couldn't be bothered
http://flipc.blogspot.com


Post a reply to this message

From: Invisible
Subject: Re: Small CSS question
Date: 12 Nov 2007 04:33:18
Message: <47381dde@news.povray.org>
Phil Cook wrote:

> Heh I think it should be called MySpace code

That's not even funny. Seriously. Have you *seen* MySpace? >_<


Post a reply to this message

From: Phil Cook
Subject: Re: Small CSS question
Date: 12 Nov 2007 05:41:17
Message: <op.t1odapdec3xi7v@news.povray.org>
And lo on Mon, 12 Nov 2007 09:33:17 -0000, Invisible <voi### [at] devnull> did  
spake, saying:

> Phil Cook wrote:
>
>> Heh I think it should be called MySpace code
>
> That's not even funny. Seriously. Have you *seen* MySpace? >_<

Oh yeah. I wasn't suggesting the term as a compliment.

-- 
Phil Cook

--
I once tried to be apathetic, but I just couldn't be bothered
http://flipc.blogspot.com


Post a reply to this message

From: Invisible
Subject: Re: Small CSS question
Date: 12 Nov 2007 08:05:37
Message: <47384fa1$1@news.povray.org>
>>> Heh I think it should be called MySpace code
>>
>> That's not even funny. Seriously. Have you *seen* MySpace? >_<
> 
> Oh yeah. I wasn't suggesting the term as a compliment.

The only thing worse than the HTML on MySpace is the crud the actual 
users add to it themselves.

(I especially liked the red writing on a pink background with a hail of 
red hearts constantly raining down in the foreground...)


Post a reply to this message

From: Phil Cook
Subject: Re: Small CSS question
Date: 12 Nov 2007 12:11:08
Message: <op.t1ovcgkec3xi7v@news.povray.org>
And lo on Mon, 12 Nov 2007 13:05:36 -0000, Invisible <voi### [at] devnull> did  
spake, saying:

>>>> Heh I think it should be called MySpace code
>>>
>>> That's not even funny. Seriously. Have you *seen* MySpace? >_<
>>  Oh yeah. I wasn't suggesting the term as a compliment.
>
> The only thing worse than the HTML on MySpace is the crud the actual  
> users add to it themselves.
>
> (I especially liked the red writing on a pink background with a hail of  
> red hearts constantly raining down in the foreground...)

I like the way MySapce<sic> don't enforce picture sizes then auto-expand  
column widths.

-- 
Phil Cook

--
I once tried to be apathetic, but I just couldn't be bothered
http://flipc.blogspot.com


Post a reply to this message

From: Invisible
Subject: Re: Small CSS question
Date: 13 Nov 2007 04:25:54
Message: <47396da2$1@news.povray.org>
Also... is there a reason why every MySpace profile randomly plays 6 
different MP3 files at you simultaneously as soon as you visit it?


Post a reply to this message

From: Phil Cook
Subject: Re: Small CSS question
Date: 13 Nov 2007 05:10:18
Message: <op.t1p6inl0c3xi7v@news.povray.org>
And lo on Tue, 13 Nov 2007 09:25:53 -0000, Invisible <voi### [at] devnull> did  
spake, saying:

> Also... is there a reason why every MySpace profile randomly plays 6  
> different MP3 files at you simultaneously as soon as you visit it?

Yes, but the reason is only revealed once you've been illuminated into the  
9th degree.

-- 
Phil Cook

--
I once tried to be apathetic, but I just couldn't be bothered
http://flipc.blogspot.com


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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