css question

  • Thread starter Thread starter JohnE
  • Start date Start date
J

JohnE

Is there a way to to not show any css bordering, coloring, etc if the field
does not have any information in it? Have a table and there could be a field
(label) that would have not info. The table is not bordered, the field in
the table cell is bordered.
Thanks.
John
 
Is there a way to to not show any css bordering, coloring, etc if the field
does not have any information in it? Have a table and there could be a field
(label) that would have not info. The table is not bordered, the field in
the table cell is bordered.
Thanks.
John
You might have to do this from code behind or using javascript.

If you are adding content to the table cell then you can set a different CSS class "border:none" if the content you added was empty.

You could also loop through using javascript / jquery to see if the html of a control is empty if so change the css class.

Hope this helps

j1mb0jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top