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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListUDT CSS for “Normal UDT_Table*”UDT CSS for “Normal UDT_Table*”
Previous
 
Next
New Post
10/31/2006 11:36 AM
 

I want all my UDTs using the “Normal UDT_Table*” setting to have the following:

  • a 1px border around the grid and all cells, colour: #666666
  • the header row has a background colour: #FFCC66, and text is bolded
  • all other rows have no background colour, and text is not bolded

I see from the HTML source (and the manual) that the following styles are being applied to the <TR> elements:

NormalBold UDT_Table_Head
Normal UDT_Table_Item
Normal UDT_Table_AlternateItem

I have tried to define these in my skin.css file but nothing changes on my UDT. I think I just don't know enough CSS to get the syntax right. Example:

.NormalBold UDT_Table_Head {
   background-color: #FFCC66
}

What is the correct syntax?

 
New Post
10/31/2006 12:05 PM
 

class="NormalBold UDT_Table_Head" assigns the classes NormalBold and UDT_TableHead. You need to override just one css class:

.UDT_Table_Head
{
   background-color: #FFCC66
}

 
New Post
11/2/2006 8:22 AM
 
Thanks, I am now able to set the background colour.

It looks like it is impossible to apply styles to borders. If you apply border styling to either of the above 3 classes they are ignored. From reading the Add some Style to your DataGrids I think this is because there is no CssClass property available in the <asp:datagrid> in UserDefinedTable.ascx. Having said that, when I added one manually and set up a class it made no difference - no borders appeared.

How can I create borders in my UDT?


 
New Post
11/2/2006 9:21 AM
 
all three classes are applied to rows in the datagrid. If you need to apply a class to the whole table or single columns, use xsl rendering.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/5/2007 11:56 PM
 

The borders needs to be applied to the table cells e.g. the TD's which you can target as follows:

tr.UDT_Table_Head td, tr.UDT_Table_Item td, tr.UDT_Table_AlternateItem td {
    border:solid 1px black;
}

However because of a strange style applied the the table (http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/56/threadid/104678/scope/posts/Default.aspx) you will need to find a way to target the table (either target all tables in the particular content area or make a special container with its own identifier) and apply the following style to it:

/* If contained in something with ID=Test */
#Test table {
    border-collapse:collapse ! important;
}

/* If contained in something with class=Test */
.Test table {
    border-collapse:collapse ! important;
}


www.creative-dreaming.com
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListUDT CSS for “Normal UDT_Table*”UDT CSS for “Normal UDT_Table*”


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