Solved

What happened to the table attributes in VS 2012 ?

Posted on 2013-05-29
2
1,253 Views
Last Modified: 2013-05-29
What has replaced the cellpadding, cellspacing, and width attributes of a table?


<table id = "tblMeasures"
            style="font-family: Arial; font-size: 10pt; font-style: normal; font-weight: normal; width: 5.25in; height: 151px;"
            cellpadding="5" cellspacing="0" width="5.5in">

Thanks
0
Comment
Question by:Dovberman
2 Comments
 
LVL 12

Accepted Solution

by:
jitendra patil earned 300 total points
ID: 39204078
try the below one.

// cellpadding
th, td { padding: 5px; }

// cellspacing
table { border-collapse:separate; border-spacing: 5px; } // cellspacing="5"
table { border-collapse:collapse; border-spacing: 0; }   // cellspacing="0"

// valign
th, td { vertical-align: top; }

// align (center)
table { margin: 0 auto; }

ref taken from  In HTML5, with respect to tables, what replaces cellpadding, cellspacing, valign, and align?

hope this helps
0
 

Author Closing Comment

by:Dovberman
ID: 39204243
Thank you
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question