Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...backgrounds and cell width in empty table cellbackgrounds and cell width in empty table cell
Previous
 
Next
New Post
4/13/2006 2:33 PM
 

Why does a html table have difficulty with a css-based background & width if the table cell is empty? For example, if i have a table cell defined as:

<td class="SkinRow1Cell1"></td>

and the class is as:

.SkinRow1Cell1{
   background-image:url(images/bk_1.jpg;
   width:16;
}

Why is it necessary to add something like &nbsp;&nbsp;&nbsp; to the cell directly in order to have the image display completely? Thanks kindly for any pointers.. drew..

 

 
New Post
4/14/2006 10:42 AM
 
Simply because the cell is empty. If there was content, it would have the background you styled, and if bk_1.jpg is smaller than 16px wide, it would repeat. Now, I think you could change your css to something like .SkinRow1Cell1:TD {  and get what you are looking for with an empty cell...
 
New Post
4/14/2006 11:00 AM
 

The HTML 3.2 spec more or less tells the browser to ignore empty cells:

Tables are commonly rendered in bas-relief, raised up with the outer border as a bevel, and individual cells inset into this raised surface. Borders around individual cells are only drawn if the cell has explicit content. White space doesn't count for this purpose with the exception of &nbsp;.

Using CSS, this can be mitigated by using:

table { empty-cells:show; }

Browser mileage will vary.

Nik

 


Nik Kalyani
Co-founder
DotNetNuke Corporation
Blog | Twitter | FaceBook
 
New Post
4/14/2006 2:27 PM
 
Nik, thanks for stepping in and setting the facts straight.  Although I don't have the credentials, I'm trying to help some folks wherever I can. Drew's question went unanswered, so I thought I'd at least respond... Again, thanks!
 
New Post
4/14/2006 3:51 PM
 
Thanks to everyone who posted. I will go thru the posts and glean what i can. I had found the empty-cell nothingness issue, and sort of slapped my forehead with a "duh", and for the most part am getting the results i need, but not quite. But i do appreciate the efforts, and hopefully the question can help others, cheers, drew..
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...backgrounds and cell width in empty table cellbackgrounds and cell width in empty table cell


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out