Connecting Tech Pros Worldwide Help | Site Map

Divs in Divs

  #1  
Old September 16th, 2008, 05:15 AM
Steffan A. Cline
Guest
 
Posts: n/a
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

  #2  
Old September 16th, 2008, 02:15 PM
Andreas Prilop
Guest
 
Posts: n/a

re: Divs in Divs


On Mon, 15 Sep 2008, Steffan A. Cline wrote:
Quote:
<br style="clear:both">
It should be possible to replace this BR element with a DIV, too.

--
Solipsists of the world - unite!
  #3  
Old September 16th, 2008, 03:05 PM
Steffan A. Cline
Guest
 
Posts: n/a

re: Divs in Divs


in article Pine.GSO.4.63.0809161510230.8473@s5b...ni-hannover.de,
Andreas Prilop at prilop4321@trashmail.net wrote on 9/16/08 6:12 AM:
Quote:
On Mon, 15 Sep 2008, Steffan A. Cline wrote:
>
Quote:
> <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?

  #4  
Old September 17th, 2008, 03:35 PM
Andreas Prilop
Guest
 
Posts: n/a

re: Divs in Divs


On Tue, 16 Sep 2008, Steffan A. Cline wrote:
Quote:
Quote:
Quote:
>> <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.
  #5  
Old September 18th, 2008, 01:35 PM
Andy Dingley
Guest
 
Posts: n/a

re: Divs in Divs


On 16 Sep, 14:12, Andreas Prilop <prilop4...@trashmail.netwrote:
Quote:
On Mon, 15 Sep 2008, Steffan A. Cline wrote:
Quote:
* * <br style="clear:both">
>
It should be possible to replace this BR element with a DIV, too.
I favour a <hrfor this task.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
syntax question to catch dynamically generated divs in a page jonavanmona answers 1 May 28th, 2008 10:26 AM
Expand/collapse blocks of divs in a page sam answers 2 May 22nd, 2006 12:25 PM
3 floated DIVs in a row in IE - gap between last two DIVs - why? tasman.hayes@gmail.com answers 2 January 31st, 2006 01:48 AM
CSS Positioning divs wrt unrelated divs in IE Egon Pasztor answers 2 July 20th, 2005 11:36 PM
How can I pass trough all objects of a form, if some of them are contained in divs? Andrés Giraldo answers 1 July 20th, 2005 11:57 AM