css question

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
 
J

James Parker

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

Members online

No members online now.

Forum statistics

Threads
474,083
Messages
2,570,591
Members
47,212
Latest member
RobynWiley

Latest Threads

Top