jQuery in Action, 2nd edition*
The moose likes JSP and the fly likes How to use table in div tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to use table in div tag" Watch "How to use table in div tag" New topic
Author

How to use table in div tag

kavita vala
Ranch Hand

Joined: Jul 22, 2010
Posts: 42
hi all

i have a tabpanel wich is developed using javascript and css.
and i use it in my jsp using <div> tag.

I have problem that if i write <table><tr> or <td> into div tag , the content of tab are go outside the tab.
So please help me. how can i write table,tr,td tag inside my div tag


thanks in advance
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Probably fix your HTML or CSS. Impossible to help; you've not told us very much.
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

If you want, put your code here (using code tag please).

Why dont you still using DIV instead table? You may do like colmns by using divs...


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Tables are just fine for tabular data, and at leastbsome accessible browsers handle them differently than they handle divs.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use table in div tag
 
Similar Threads
Creating table in a "div" HTML element
Funny innerHTML behavior
disable overflow to inner div element if outer div uses overflow hidden
Setting div's innerhtml behaves differently in IE and Mozilla
Table with Scrollbar