PC Review


Reply
Thread Tools Rate Thread

css question

 
 
JohnE
Guest
Posts: n/a
 
      10th May 2010
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
 
Reply With Quote
 
 
 
 
James Parker
Guest
Posts: n/a
 
      10th May 2010
>
>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

-----------------------------------
Posted @ http://www.dotnethelp.co.uk
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Perhaps and off topic question....but could use some help with video question.....I don't need codec help, just a general question. Bret Miller DIY PC 0 13th Oct 2006 12:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:08 AM.