473,320 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Divs in Divs

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

Sep 16 '08 #1
4 2022
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!
Sep 16 '08 #2
in article Pi******************************@s5b...ni-hannover.de,
Andreas Prilop at pr********@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?

Sep 16 '08 #3
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.
Sep 17 '08 #4
On 16 Sep, 14:12, Andreas Prilop <prilop4...@trashmail.netwrote:
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 <hrfor this task.
Sep 18 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Egon Pasztor | last post by:
Hi. I'm new at CSS, so maybe this is obvious, but I've looked around quite a bit looking for a solution. I'm playing with the vertical positioning of elements in a 2-column layout. The...
2
by: David Winter | last post by:
This is a totally trivial CSS problem, I'm sure, but I don't get it. I want a centered DIV with a fixed width between two other DIVs that should fill the rest of the window/viewport (= 100%). How...
12
by: deko | last post by:
Is there any way to work around the blank space created by hidden divs? I'm trying to use a relatively postioned divs with show/hide behaviors to annotate an image. The divs show/hide...
15
by: red | last post by:
How do I center two side by side divs ? I've been writing css pages for a while but there's one thing tha still eludes me. I can center a div with margin auto. I can place two divs side by side...
3
by: Marc | last post by:
Hi to all, I have several DIVs in a page, each has a unique name. I'd need a method to cycle through all DIVs so that I can change their style. For example, let's say I need to set a red...
39
by: WindAndWaves | last post by:
Hi Gurus I have a page, which looks a bit like this: .... <body> <div ID=id1>................</DIV> <div ID=gsd>................</DIV> <div ID=ewd>................</DIV> <div...
12
by: meltedown | last post by:
I would like the floating divs to float and then the header to come after them , on the left. That's what I thought clearing the floats was for, but in this example, the header is to the right of...
2
by: tasman.hayes | last post by:
I'm experimenting with converting a site from a table layout to CSS. I'm floating three DIVs in a row for the top of a website (a logo, navigation buttons and a email list signup box). The DIVs...
2
by: sicapitan | last post by:
Hi There :) Is it possible to get the 4 corners where 2 dives intersect? I'm making a table-ish system and som drag and drop elements need to snap to the area intersecting between 2 divs. I...
11
by: dusk | last post by:
Hi, I'm very new to javascript, and I'm having trouble finding a way to display a string of divs without the code getting really messy. I have several different pages to write, each with about...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.