|
|||||||
| JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...) |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm posting this in the javascript forum instead of the CSS forum because my guess is that this issue only has a real solution based on javascript. Please read before posting. Also, notice that I've only tested this application on FireFox and IE 7.0. I'll be needing to show all the HTML and Javascript in my page in order to expose the while problem, so I'll try explaining what's the logic behind the application so you won't be totaly in the blank about it.
I'm currently coding a Javascript based window system for IE and browsers who follow the DOM specification (ex: FireFox). The application structure will be divided in three div areas: - List of tabs. -* This will list all available tabs, each containing it's own window area and list of windows. - Window Area. -* Each Window area will be able to have several windows. - List of windows (of a certain tab). -* Will list all windows in the selected tab. All the area's root are div elements named: Header, Body and Footer; and every content on them is dynamically generated using javascript as soon as the body's "onload" event fires. The called function is named: LoadGWS. Javascript overall explanation: PHP Code:
- Creating a tab. - Selecting a tab. HTML structure: (after being generated by the javascript) PHP Code:
PHP Code:
Here is what I mean: PHP Code:
I'm completely lost on why this appens, and my only guess is that IE doesn't apply the "display: inline" to it's "position: absolute" children? I've already tried several combinations of "display: inline" on the involved elements but nothing seems to work. Can someone help me solve this problem? I'll apreciate any suggestion. PS: I've attached the html file. Last edited by HiDeWaY; 01-21-2007 at 10:34 AM. Reason: Problem solved. :) |
|
#2
|
||||
|
||||
|
For the moment I see strange things in your code. It seems like you have not understood the end tag rules in XHTML.
The slash <tag /> is used in XHTML to close only those tags which in HTML have no end tags (br, input, ...), but not those who have already native end tags (span, div,...) So that coding as: <div /> and <span /> is incorrect, as far as I know. Should be, as in HTML, <div></div> , <span></span> On the other hand, div is a native block-level displayed element, not an inline one, while span is an inline, not a block To align inline the same line block elements you should use the CSS float Last edited by Kor; 01-21-2007 at 01:10 AM. |
|
#3
|
|||
|
|||
|
First of all, thanks a lot for your reply. It solved my problem.
![]() I was misguided on the display: inline description on www.w3schools.com wich states that display: inline is the default value. I knew that div is a block element but all I wanted to do was to reset the display to it's original value. Thanks a lot for noticing that. ![]() PS: The generated code it's just copy paste from FireBug. But thanks for stating that.
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|