• 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

colspan TableItem j2MEPOlish

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to use colspan in .css file to merge five columns, j2MEPOlish.?

Regards,
kumar
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The colspan attribute is part of HTML code (use in th, td tags). You can't use CSS.
 
kumar mdu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thans for your reply,

In the TableItem document of j2MEPolish i saw the style colspan,

How can i use?

please help me
kumar
 
Walter Gabrielsen Iii
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I haven't used J2MEPolish, but I assume you refer to the same thing described in this J2ME Polish TableItem Documentation.

It appears that you can give one or more CSS attributes (described on the TableItem documentation page) to a markup class or id. These styles would then be applied to the table cells with the same markup class or id.

I looked into the API and found the colspan attribute described in the de.enough.polish.ui.FakeCustomItem class.

colspan: when this item is embedded in a table, you can span it over several cells, e.g. colspan: 2;.



In terms of table cells the colspan integer describes how many cells, in the horizontal direction, the styled cell would span.
TableItem.png
[Thumbnail for TableItem.png]
Visualize how the colspan style might work in a TableItem.
 
kumar mdu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much!!

I tried like this.



In Css, I want to merge these 3 cells into one, so,




but its not works.

please help me?
kumar

 
Walter Gabrielsen Iii
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your CSS doesn't look right: You're missing the dot "." in front of your classes.

I also notice the min/max values are numbers, but I don't know, do you need to specify "px" or "%" after them?

You should review J2ME Polish Topics: GUI Concepts and CSS Basics.
 
kumar mdu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Thanks for your reply,

Your CSS doesn't look right: You're missing the dot "." in front of your classes.



I did my css file right by insert '.' before class name, and also value but it doesn't work.

please provide me example of colspan..? what is problem in my code..?

correct it and post here.

kumar.
 
Walter Gabrielsen Iii
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you storing the CSS and other related files in a "resources" directory of your project?

Is the resources directory registered with your project, and can your project read files from the resource directory?

Looking through J2me polish online documentation they use both dot and non dot styles, So I'm not sure when to use the dot now, but here is what I was thinking regarding style:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic