|
Prev: Faux Absolute Positioning
Next: font background color
From: Steffan A. Cline on 16 Sep 2008 00:15 I have a situation where I am making a calendaring solution and need to have 5 scrollable divs side by side in a week view but the week div needs to scroll left and right. As it sits now, unless the week div is set to something like 1500px, they wrap. The idea is not to have the browser scroll left and right. Unfortunately this needs to work in IE6 also. =( <div style="overflow:scroll; height: 500px; width: 700px;"> <div style="float:left;"> Monday<br> <div style="height:495px; width:300px; overflow:scroll> ... </div> </div> <div style="float:left;"> Tuesday<br> <div style="height:495px; width:300px; overflow:scroll> ... </div> </div> <div style="float:left;"> Wednesday<br> <div style="height:495px; width:300px; overflow:scroll> ... </div> </div> <div style="float:left;"> Thursday<br> <div style="height:495px; width:300px; overflow:scroll> ... </div> </div> <div style="float:left;"> Friday<br> <div style="height:495px; width:300px; overflow:scroll> ... </div> </div> <br style="clear:both"> </div> Is there any way to have the height of the week div be automatically set to the height of the days without specifying the height of the week div? Also, inside the daily divs I have a vertical time line. Anyone know of an easy way whether straight javascript or jQuery one might have say the 8:00 position be at the top of the scroll area (the day starts at 12AM)? Any suggestions are MUCH appreciated. Thanks Steffan
From: Andreas Prilop on 16 Sep 2008 09:12 On Mon, 15 Sep 2008, Steffan A. Cline wrote: > <br style="clear:both"> It should be possible to replace this BR element with a DIV, too. -- Solipsists of the world - unite!
From: Steffan A. Cline on 16 Sep 2008 09:55 in article Pine.GSO.4.63.0809161510230.8473(a)s5b004.rrzn.uni-hannover.de, Andreas Prilop at prilop4321(a)trashmail.net wrote on 9/16/08 6:12 AM: > On Mon, 15 Sep 2008, Steffan A. Cline wrote: > >> <br style="clear:both"> > > It should be possible to replace this BR element with a DIV, too. Yes, and it still wraps. I'm still stuck. :( Any other suggestions?
From: Andreas Prilop on 17 Sep 2008 10:32 On Tue, 16 Sep 2008, Steffan A. Cline wrote: >>> <br style="clear:both"> >> >> It should be possible to replace this BR element with a DIV, too. > > Yes, and it still wraps. I'm still stuck. :( You are immune to irony. <div irony=off> You should avoid the meaningless DIV and rather use meaningful elements from HTML: http://www.htmlhelp.com/reference/html40/olist.html Make sure that your page looks reasonable without CSS. Any decent browser lets you disable CSS. After you have done so, you can start bothering with styles. </div> -- I used to believe in reincarnation in a former life.
From: Andy Dingley on 18 Sep 2008 08:34 On 16 Sep, 14:12, Andreas Prilop <prilop4...(a)trashmail.net> wrote: > On Mon, 15 Sep 2008, Steffan A. Cline wrote: > > <br style="clear:both"> > > It should be possible to replace this BR element with a DIV, too. I favour a <hr> for this task.
|
Pages: 1 Prev: Faux Absolute Positioning Next: font background color |