根据其他Div动态调整Div的大小

Using PHP only with no JavaScript, is it possible to position and size a div based on two other divs?

I know how to do it with JavaScript, but want to avoid using JavaScript for this if at all possible. Essentially, it's the day view of a calendar. The day is broken up into 15 minute intervals, depicted by divs. If an appointment lasts 2 hours, starting at 8am, we want to draw a div over the time divs, starting at the 8am div, and extending down to the 10am div.

I'm really thinking there is no way to do this without JavaScript, but JavaScript is Satan's meanest invention, and I'd like to avoid it as much as possible.

Avoid javascript is really difficult today :) you preclude some really cool features and XHR functionality. However, you can easily create inline code and work with CSS. Something like

<div style=" <?php echo (yourstyleyear);"?>></div>