CSS for Table in Wordpress

I am trying to add custom css to a certain table in Wordpress.

However it seems that the default css is overwriting it perhaps?

<table id="2table" border="0" cellspacing="3" cellpadding="3">

CSS:

table#2table {
       margin-left: 450px auto;
       margin-top: -205px auto;
}

Answers


IDs mustn't start with a number.

Change your id="2table" to something else like id="table2", then adjust your CSS accordingly.


Need Your Help

Delegated openid does not work on slashdot.org

openid slashdot

I created an open-id recently on myopenid.com: http://axqd.myopenid.com/

Simple example of using tables + knitr for latex

r latex knitr tables-package

I'm struggling with a tables package, all the examples in the packable docs are so complex and none of them works for me with knitr and latex. Could somebody help be out and display a simple table ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.