.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
without borders   


If you have a table with some rows and columns, and set the background color on the <tr>´s like this:

table.mytable tr

Then you can see the lines that seperates the <tr>´s and <td>´s. Its like the borders that define the tablestructure still has its original color (or is transparent). And it looks quite ugly. How do you avoid this? Is there a way in CSS to make these borders 0 pixels wide?

I know that I can just put the background color on the table instead, but that is not a possible solution in my case.

Thanks alot :)

    background: #b6b7bc;
    font-size: .80em;
    font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
    color: #696969;

a:link, a:visited
    color: #034af3;

    color: #1d60ff;
    text-decoration: none;


How to remove underline from Hyperlink and change the color of the link

How to remove underline from Hyperlink and change the color of the link

How do I change the backlground and font color of a web part header - Sharepoint 2010

Hello,  Im verya mateur with Sharepoint so bare with me.   We are running Sharepoint 2010 and I am settingup a basic site for our company.  What I need to know is there a way to change the color of the web part header.   I have a calendar web part that displays a list of our holidays, and I was able to change the background color of the content as well as the font colors for the list of holidays,  but I cannot seem to change the background for the title box where it says Holidays and Events remains with a white background.   I would appreciate any help!   Thanks   Charlie   charlieprice@live.com

MSChart - color only part of background

I'm trying to make a risk chart in ASP.NET using an MSChart control, and I only want to color the background for some of the quadrants.  The chart is 5 by 5, with 25 quadrants, and let's say I just want to color the upper-right quadrant red.  Can anyone tell me if that is possible?Thanks!Dave
Post New Web Links

change TD background/foreground color problem.

Posted By:      Posted Date: September 06, 2010    Points: 0   Category :ASP.Net
I have some javascript that is suppose to change the color of a table TD. the CSS file has an entry like this .tdcommand {} HTML TD is like <td colspan="2" height="162" valign="top" class="tdcommand"> if i put a background-color:red or whatever in the CSS file, the color is shown correctly. If i change it via a script it doesnt seem to have any impact. using the alert() to post info, i've found its entering my function correctly and getting the correct info. the important part of the function is thisfor (var i = 0; i < document.styleSheets[0][CSSRules].length; i++) { if (document.styleSheets[0][CSSRules][i].selectorText == obj) { document.styleSheets[0][CSSRules][i].style[prop] = color document.getElementById("opt_" + option).innerHTML = "'" + color + "'" } }   as i said, using the alert() i can validate that its finding the class ok (obj = .tdcommand) and the property is correct (background-color) and the innerHTML update is working fine. I use this same function to set other things, such as text color and highlighting of span's without any problem. what am i missing?   Justin

View Complete Post

More Related Resource Links

Selected to change the background color of the page



As this site, http://www.borfin.com.tr/genel/Default.aspx, How can I change the background color selected pages.

How to change background or border brush color of an element while it has template in xaml?

Dear all, I want to change some style property of one element in code behind while that element already had a data template in xaml. as an example this is a code for my window: <Window x:Class="Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300" Loaded="Window_Loaded"> <Window.Resources> <Style x:Key="ButtonStyle" TargetType="{x:Type Button}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate> <ControlTemplate.Resources> <Storyboard x:Key="OnMouseEnter1"> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="grid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)"> <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/> <SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1.1"/> </DoubleAnimationUsingKeyFrames> <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Story

HTML Editor: Change Edit Panel Background Color

I've created a custom editor from the default AJAX HTMLEditor control to limit the toolbar buttons, etc. But I can't see how to set the background color of the text area in design mode. I'd like to set the background color to something other than white, because with my app most users will want to use white as their text color. White text on a white background is no bueno. The editor has ForeColor and BackColor properties, but these values don't control the text area. I tried creating custom css styles based on Editor.css, but all I end up with is an HTMLEditor without a border. Am I approaching this wrong? Any suggestions?

Change background color of default 2010 look?

Hi, I like the default look of the 2010 v4.master.  I was just wondering if it was possible to change just the background color from white to another color (gray in my case)?  Thats really the only change i would like to make.  Thanks!

How to change the datagrid cell background color linear to the value



I have a WPF 4.0 Datagrid displaying order values and I need to colour the backgroud of the high value orders so the user will notice high value orders easily. Is it possible to set the colour from white to red but increasing in steps say every 10,000 and increase the colour intensity according to the value.

Many Thanks.


Change Background Color of WorkflowDesigner.View

The View of a WorkflowDesigner is a derivative of UIElement. Is there a way to change the background color of a UIElement (or WorkflowDesigner View)?

I've searched through documentation and intellisense and couldn't find a way to do this.

The reason I ask is the background for the runtime view of a Workflow is White, which does not fit the theme of my application.

Blog (WPF/C#)
Crystal (WPF Google Contact UI/C# Library)

Change selected row background color in gridview using javascript


hi frineds,

              i have a gridview with radio buttons in gridview i have chance to select only one item at a time in gridview like this

i need to change the row color of selected item in gridview with radio button using javascript if i select second row with radio button first row comes to normal condition now second row is in selected mode please help to write this functionality using javascript

How to change the background and font color of text for a web part header - Sharepoint 2010


Hi I am trying to change the font color and text Header color of the web part, can any one help me with that


How to change control's background color when validation fails?


In addition to show the error message when validation fails, I wanted to make the corresponding control's color change using CSS. Is this doable? Thanks.

OLAP background color causing performance problem?


Yes, it may sound strange.  When we started using Excel 2007 our pivot table connectivity saw a performance drop.

As near as I can tell, Excel 2007 wants to do a Discover for MDSCHEMA_PROPERTIES with a RestrictionList of <PROPERTY_TYPE>2</PROPERTY_TYPE>.  Since the restriction does not filter on a particular cube, it appears that the operation is causing the user's dimension security to be calculated for every single cube in the database.

This is not a behavior that occurred in Excel 2003.  I noticed that t

How can I change the color of my clandar by data from Db

Sub DayRender(ByVal source As Object, ByVal e As DayRenderEventArgs)

            Dim i As Integer
            For i = 0 To DataGrid1.Items.Count - 1
            'If (DataGrid1.Items(i).Cells(1).Text = e.Day.Date) Then
            'If (DataGrid1.Items(i).Cells(0).Text <> "") Then
            If (DataGrid1.Items(i).Cells(1).Text.Equals(e.Day.Date.ToString)) Then

                '  e.Cell.BackColor = Color.DarkOrange
                e.Cell.BackColor = System.Drawing.Color.Red
                e.Cell.ForeColor = System.Drawing.Color.Yellow

            End If
now I click the day on clendar, which have data from db it chage color ,  How can I let when the calendar is load wich day have dat in db change color ?

    End Sub


Is it possible to change the title bar background and the font style on default template?



Is there any way to change the default top link /title bar picture and the fonts of the title without breaking anything in the layout/structure?

I have changed the theme to Obsedian and I would also like to change the picture of the title bar of this theme and also the font/style of the title, top link bar, menus..etc. Is there a way to do this?

Please note: I am using WSS 3.0 and I am not the Administrator of the sharepoint. I am only the site admin of some sites on this sharepoint. I can do some basic customization using SPD.

Basically, what I am trying to do is that I want to set up a sharepoint site, however I want to make it NOT look like a sharepoint site.Well I know this is possible, but for my case it might be just partially possible due to the limitation that I am not the Site collection admin and hence I do not have direct access to the server itself.

What I want is to hide most of the sharepoint links/menus/bars, etc and use my own buttons/hyperlinks etc .. for user to navigate on the sites.

Thanks in advance for your help/advices.



change the font color according to the column



i have a column in the list which has values 1.Added



i want to make the field values Killed to be make it as Red so i tried in sharepoint designer converting to xslt data view then did formatting but the problem is i am not able to see the edit in data sheet option. can you please is there any way i can have both to be working? or is there any alternate solution for formatting column based on values

thank you so much.



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend