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, ...FireFox CSS questionFireFox CSS question
Previous
 
Next
New Post
5/4/2006 11:40 PM
 
I have a skin that includes a table. That table has a class that puts a 1px border around the entire table, then each cell has a style applied that also has a 1px border. The combined effect is a 2px grid for the table.

Everything looks ine in IE, but in firefox the 1px border on the cell only shows up if the cell has content in it. This causes problems as the border size changes based on the pages you are viewing.

So the 2 questions I have are....

Is there a better way to create that 2px grid look?
Is there a way, in firefox, to force the style on the cell without placing content in it?
 
New Post
5/5/2006 12:36 AM
 
Try puttng a non-breaking space in the cell if there is no data.
 
New Post
5/5/2006 11:00 AM
 

Another way to create this effect is to use only one table and set the cellspacing="1", then wrap that table with a div or a span that has the background color set to the color you want for your gridlines.

<style>
.gridtable { empty-cells: show; }
.gridtable td { background-color:#fff; }
</style>
<div style="background-color:blue;width:150px;">
<table cellspacing="1" cellpadding="1" border="0" class="gridtable" width="150" >
<tr><td>Cell with data</td><td width="50"></td></tr>
<tr><td>Cell with data</td><td></td></tr>
</table>
</div>

The empty-cells:show is a CSS2 reference, but it doesn't make a difference using this method unless you set it to empty-cells:hide because the default is to show.

The main reason why you wouldn't see an empty cell without data is because it would collapse without it, so set a width to make it stay "open".

 


DotNetNuke Modules from Snapsis.com
 
New Post
5/5/2006 8:27 PM
 
Thanks for the replies. I will try each to see what works for me.
 
New Post
5/5/2006 9:11 PM
 
The nbsp worked for this existing skin. I will try the other method with my next skin.

Thank you both for your help.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...FireFox CSS questionFireFox CSS question


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