my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes Verticle Space between the table rows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Verticle Space between the table rows" Watch "Verticle Space between the table rows" New topic
Author

Verticle Space between the table rows

Don boscoo
Greenhorn

Joined: Sep 20, 2010
Posts: 28
Hi All,



I have the nested tables, One of the table inside has cellspacing = 20, but it even gives verticle spacing btw the rows, How do i get rid of this?

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61421
    
  67

cellspacing=0


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Don boscoo
Greenhorn

Joined: Sep 20, 2010
Posts: 28
Thanks for the reply. I need the cell spacing for that particular table, So is there any way around?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61421
    
  67

Well, that's what cellspacing does. I'm confused: you say that you need it, but don't want it. Which is it? Do you want the spacing or not?

Perhaps you need to describe what you are trying to achieve in more detail?
Don boscoo
Greenhorn

Joined: Sep 20, 2010
Posts: 28
Ok Am sorry for that, I actually need some horizontal space btw the cells for that particular table, when i have given cellspacing, It gives horizontal space but , It also gives verticla space, i want to get rid of that vertical space. I hope this gives the clear information.

Thanks.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61421
    
  67

Don't use cellspacing. Use CSS padding or margins for the table cells to get the spacing that you want.
Don boscoo
Greenhorn

Joined: Sep 20, 2010
Posts: 28
Thanks, It worked. I got lazy and thought of using cellspacing and that takes up everthing
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Verticle Space between the table rows