Solved

What happened to the table attributes in VS 2012 ?

Posted on 2013-05-29
2
1,247 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
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…

776 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