473,569 Members | 2,772 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Div Layout - Need Help

1 New Member
Since this is becoming a complete hack-job, I think its about time I asked for some help. I am trying to make a calendar using AJAX to allow for the main calendar to display, then load in the events afterwards for any given week. Each step along the way I find some hack to make it work but its becoming with all the problems I've been running into I'm thinking I'm not attacking it right.

Here's the output of the iframe in question (I know they don't match up perfectly on the days, in the iframe they actually do better, even at several different resolutions)

On the actual server I'm using mod_rewrite to point to a CSS file that is generated by PHP for the events. The div tags that are later positioned by the CSS are loaded via an XML request and inserted into a DIV tag at the bottom of the page, positioned absolutely to their locations. (I originally had each day's events loading within the top of the actual calendar grid, but I couldn't get them to not affect the width of the table and they were messing up the whole alignment. My hack was to load them outside of the whole table and have them absolutely position where they need to be).

If you're usine IE, you will notice my latest issue. The popup onmouse over in IE hides behind the adjacent events (In Firefox it works as expected). At one point I tried to do these popups with CSS, but also ran into the issue of them going behind the adjacent events (even with the Z index higher). Javascript was a hack that worked in Firefox, but not in IE.

Any ideas on how to attack and fix this?

If not, anyone know some good resources that talks about methodologies of layout in CSS. I know what many of the properties do (at least I think)... but I've had a hard time finding any tutorials that really explain how to use CSS layout well. Most of them are extremely basic.
Sep 18 '06 #1
1 2424
drhowarddrfine
7,435 Recognized Expert Expert
I'll edit this as I look at your code:

First, you have no doctype. This immediately puts IE into quirks mode and you don't know what the heck it's going to do. As your first line, insert this:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

Second, it's <style type="text/css">

After making those two changes, validate your html AND css. I know you have at least two css errors.
Sep 18 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
2727
by: James Thornton | last post by:
I'm trying to make the transition from tables to CSS, and I need someone to explain how to achieve the following layout (understanding the concepts behind this layout will help me considerably in grokking CSS positioning): http://unifiedmind.com/images/css-example.gif In this example, boxes one and two are wrapped in a box that is 100%...
47
9094
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
20
24970
by: Tammy | last post by:
What would be a good alternative to using frames? I need something that will section my webpage into two halves and can change both frames on a single click. Thanks in Advance, Tammy
10
5168
by: Volker Lenhardt | last post by:
For a QApplication (PyQt) on the small screen of my Zaurus 5500 PDA I try to layout my data output in a QScrollView as the central widget. I'd prefer to use QGridLayout, but cannot add it to the scroll view. sc=QScrollView(self) layout=QGridLayout(..., sc.viewport()) sc.addChild(layout) results in a TypeError.
14
4823
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it can be done using the designer but I intentionally don't want to use that. The one reason is that you cannot change the code generated by the...
7
2165
by: Trammel | last post by:
Im trying to do something which I hoped would be alot easier than it seems. Im trying to design the layout of the page in CSS to avoid table, etc but having problems making the bottom "fade" background actually stick to the bottom of the page. Try making your browser window small... then scroll down & see how ugly it looks. ....now try...
7
2809
by: PB | last post by:
Hi, I need some CSS layout guidance because I think I've been staring at this too long! I designed my layout using Photoshop, then sliced everything up and saved as a CSS web page. My problem arises when I started re-coding the html and CSS. My graphics begin to break up at the bottom with large gaps and wrong
14
2449
by: varois83 | last post by:
Hi The code I am pasting below is just practice so the colors are goofy, it's to help me see what is where. The text isn't styled either at this time. I am working on a fixed 2 columns/header/footer layout that I adapted from one I found on the web. Something is wrong as I can't place a 1px solid black border between my navigation and...
26
2574
by: mark | last post by:
The idea of this is very simle. The site is 800px wide and sits in the middle of the browser window, on either side of the site I want a different background image aligned against it. If I were doing this with table based layout the code would be as follows: <head> <style type="text/css"> #bgleft { background: url(left_half_circle.gif)...
3
1132
by: Andy B | last post by:
I am creating a CSS layout and need to test it with different browsers. I have the framework for the layout done with contrasting colors for each section. Can anybody if possible, go to www.test.eternityrecords.org/index2.aspx and look at the design? Tested browsers need to be Safari 3 +, IE5+ including IE8 and Firefox 2+. After you go to the...
0
7609
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7921
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7666
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6278
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.