This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to use table in div tag