Two Laptop Bag
The moose likes HTML, CSS and JavaScript and the fly likes how to shrink the cell size in jsp table? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "how to shrink the cell size in jsp table?" Watch "how to shrink the cell size in jsp table?" New topic
Author

how to shrink the cell size in jsp table?

Govinda Gopala
Greenhorn

Joined: May 12, 2011
Posts: 18
hi i have this framework springs+struts2+hibernate framework

and am new to all this

am suppose to design a simple table on the jsp
the catch is its having 8 columns
all of thehm are having uniform size
columns like serial no are also taking up same size as that of name
i want to shrink the serial number and expand name

although i tried playing with the width attribute of td the column size seems to be fixed kindly help
binu narayanan
Ranch Hand

Joined: Jul 24, 2009
Posts: 56
Its same way has it is done in html. You can either use width with % or size explicitly
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691

I moved this to the HTML forum because it is not a JSP question. JSP only creates HTML to send to the browser. if you do not understand this, please read this article.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Komal Renu
Ranch Hand

Joined: Jul 21, 2011
Posts: 50
Hi Govinda,

You can use the Span tag.. Just surround the Sr no column with the <span> tag and give the the custom width.
This will not affect the width of other columns.

Hope this helps!

Thanks and Regards,
-------------------------------------------------------------------------------------
Komal Renu | krenu@infocepts.com | www.infocepts.com
-------------------------------------------------------------------------------------
Govinda Gopala
Greenhorn

Joined: May 12, 2011
Posts: 18
thank you very much you helped me a lot
 
 
subject: how to shrink the cell size in jsp table?
 
Threads others viewed
JTable column resizing
Dynamically rendering JSP page
Need to keep one column constant in HTML?
Printing JTable
What is other way to iterate throgh collection instead of logic:iterate...?
developer file tools