• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with HTML Tables

 
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am not an expert in HTML and I am having some difficulty. I want to have a table whose columns must have fixed width and rows must have variable width. Right now, my table doesn't behave this way. Here's how my table looks right now.



Can someone show me an example to achieve this?

Thanks,
Srikanth
[ March 02, 2007: Message edited by: Srikanth Raghavan ]
 
Srikanth Raghavan
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another problem, how do I enable HTML tags in my post? I wanted to post the 'code' section in monospaced font. Huh.... HTML is driving me crazy.
 
                            
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Make use of ROWSPAN and COLSPAN attributes.
By this you can fix your problem
 
Srikanth Raghavan
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by santosh billal:
Make use of ROWSPAN and COLSPAN attributes.
By this you can fix your problem



What should be the value of ROWSPAN? It seems like I can only specify more than 1 but not less. Can you please show me a piece of code which can produce the result that I am looking for? (The second diagram)

Thanks for the hint,
Srikanth
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use a tables within the table or have more than one table with same css.. I donot completely understand what exactly you want here though
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Srikanth,
You can post HTML by escaping it. For example, < becomes <

You are correct ROWSPAN can't be less than 1. However, you can avoid fractions by flipping the perspective you view it from. In your example, "only 1 line" occupies "half a row." When you flip it, "This one occupies multiple lines" occupies two rows. You can represent 2 with ROWSPAN, so set it on this cell.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic