File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Converting table to divs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Converting table to divs" Watch "Converting table to divs" New topic
Author

Converting table to divs

Dom Lassy
Ranch Hand

Joined: May 05, 2006
Posts: 181
I was wondering if someone could help me convert this to using only DIVs and a stylesheet. Any help would be appreciated.

EDIT:
I want to keep the iframe, I would just like to replace the table with divs.


[ April 27, 2007: Message edited by: Dom Lassy ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61224
    
  66

Where's your first attempt?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Dom Lassy
Ranch Hand

Joined: May 05, 2006
Posts: 181
I've tried about a dozen ways to get it to work to no avail, and thought it would be easier if I just posted exactly what I wanted to achieve. Just because you asked, here is one attempt:

The above code is just trying to get the div with the iframe to take up the whole screen, except for the top and bottom footer.

For what it's worth, the vast majority of my posts are answering people's struts problems.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61224
    
  66

Here's my quick and dirty first pass. It seems to work in Firefox, Safari and IE7. It fails horribly in IE6, good luck with that -- IE6's CSS implementation is horribly broken.

It's not a pure CSS solution as I needed to use the width and height attributes of the iframe in order to get it to work under IE7 (marginally better than IE6, but not by much).

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Converting table to divs