Sent by Matthias Gutfeldt on 21 February 2003 17:05
--- Ted Pibil [EMAIL-REMOVED]> wrote:
> I am using python to generate a calendar for my blog
> (http://www.pibil.org).
> I would like to get away from tables all together. Does anyone
> know of any examples of markup for a tableless calendar? If not,
> does anyone know why this is breaking in IE6/WIN?
Oh, the basic idea is simple: Float every day to the left.
Here you go... this is an extremely simple example based on the above
concept. Adjust at will.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<style type="text/css">
div {width:200px;}
p {float:left; width:20px; margin:0.5em; border:solid 1px green;
background-color:#eeeeee; color:green; font-size:12px;
text-align:right; padding:0.5em;}
</style>
<title>My calendar</title>
</head>
<body>
<h1>My calendar</h1>
<div>
<p>1</p><p>2</p><p>3</p><p>4</p><p>5</p><p>6</p><p>7</p><p>8</p><p>9</p><p>10</p><p>11</p><p>12</p><p>13</p><p>14</p><p>15</p><p>16</p><p>17</p><p>18</p>
<p>19</p><p>20</p><p>21</p><p>22</p><p>23</p><p>24</p><p>25</p><p>26</p><p>27</p><p>28</p><p>29</p><p>30</p><p>31</p>
</div>
</body>
</html>
Tested in IE6, Mozilla 1.2, Opera 7. Breaks spectacularly in Netscape
4.
IMHO, a calendar is just about the most obvious example for
table-like tabular data. Therefore I think anything but a table is a
structurally and semantically inferior solution. But that's just me
:-).
Matthias
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/