POV-Ray : Newsgroups : povray.off-topic : Small CSS question : Re: Small CSS question Server Time
14 Nov 2024 22:22:09 EST (-0500)
  Re: Small CSS question  
From: Nicolas Alvarez
Date: 6 Nov 2007 11:53:15
Message: <47309bfb@news.povray.org>

> *tweaks more*

Doesn't seem easy. You would need like three columns on each span: the 
letter, the inner span, and the other letter.

I got close enough with floats:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
   <head>
     <style type="text/css">
     div.block {
       border: red 1px solid;
       padding: 5px;
       margin: 5px;
     }
     div {
       float: left;
     }
     </style>
   </head>
   <body>
     <div class="block">
       <div>A</div>
       <div class="block">
         <div>B</div>
         <div class="block">
           <div>C</div>
         </div>
         <div>D</div>
       </div>
       <div>E</div>
     </div>
   </body>
</html>

But I couldn't manage to get the letters vertically centered.


Post a reply to this message

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