POV-Ray : Newsgroups : povray.off-topic : Web page construction : Re: Web page construction Server Time
4 Sep 2024 01:14:17 EDT (-0400)
  Re: Web page construction  
From: Invisible
Date: 14 Sep 2010 07:33:06
Message: <4c8f5d72$1@news.povray.org>
>> Is there some way I can style it so that it shows up more like
>>
>> Introduction
>> (Show/hide)
>>
>>
>> ...real content...
>
> .h1 {margin-bottom:0}

Wouldn't that mean that the margin between the header and the real 
content would now be incorrect?

>> or even
>>
>> Introduction (Show/hide)
>>
>>
>> ...real content...
>
> As nemesis states
> .h1 {display: inline}

Yeah, that's what I went with ultimately.

> Other than using absolute positioning why not:
>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <style>
> ul, li {list-style-type: none; margin: 0px; padding: 0px;}
> span {width: 100px; display:inline-block;}
> .indent{margin-left: 100px;}
> .col1 {margin-left: 200px;}
> .col2 {margin-left: 100px;}
> </style>
> </head>
> <body>
> <ul>
> <li><span>Root</span><span
> class="col1">2009-09-12</span><span>Ahsc</span></li>
> <ul class="indent">
> <li><span>Resources</span><span
> class="col2">2009-09-10</span><span>Ahsc</span></li>
> <ul class="indent">
> <li><span>Main.css</span><span>2009-09-10</span><span>Ahsc</span></li>
> <li><span>Main.js</span><span>2009-09-10</span><span>Ahsc</span></li>
> </ul>
> <li><span>Packages</span><span
> class="col2">2009-09-12</span><span>Ahsc</span></li>
> <ul class="indent">
> <li><span>ansi-terminal</span><span>2009-09-12</span><span>Ahsc</span></li>
> </ul>
> </ul>
> </ul>
> </body>
> </html>
>
> Works in IE7, Firefox, Opera and Chrome. I mean technically you don't
> need the ul li as you're indenting manually, but it does keep it tidy
> both in code and for text readers.

I always try to design my pages so that if you totally disable all CSS, 
it still displays sensibly. It might not be pretty, but it's readable. 
Then I apply CSS to make it pretty.

Not sure you need to use ".indent"; why not just "li ul" or something?

Anyway, absolute positioning seems to work fine, but for the minor 
detail that I need to figure out how wide the columns are supposed to be...

Also, whenever I try to open an XHTML document in IE (v7), it asks me 
what application I want to use it open it with, and defaults to Firefox. 
I can't seem to convince it to open it. The best I can do is get it to 
display a blank page.


Post a reply to this message

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