473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Copying a table's properties and styles

Hi,

Is there a way to copy over a table's properties and styles (NOT it's
child elements like tbody, trs, etc) into another table, besides doing
them manually, one by one?

Thanks
Praveen

Aug 26 '05 #1
2 1599
Praveen wrote:
Hi,

Is there a way to copy over a table's properties and styles (NOT it's
child elements like tbody, trs, etc) into another table, besides doing
them manually, one by one?

Thanks
Praveen


Using a stylesheet like this:

table.similar {padding: 2px; margin: 0px; background-color: red; etc....}

and then creating two tables in your html like this:

<table class="similar">
.....
</table>

otherwise use getElementById and make an array of all the styles you want to
copy.

I hope this makes sense
- Nicolaas
Aug 26 '05 #2
Praveen wrote :
Hi,

Is there a way to copy over a table's properties and styles (NOT it's
child elements like tbody, trs, etc) into another table, besides doing
them manually, one by one?

Thanks
Praveen


Yes, it's doable. It depends on the way you declared the properties and
styles. Inline style? in local/embedded stylesheet? external stylesheet?
imported stylesheet? Your post does not say.

Gérard
--
remove blah to email me
Aug 26 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: James A. Donald | last post by:
-- I am just beginning to get into CSS. I like to keep all my html simple and generic looking. I want to use a table, because I have, (gasp) tabular data. I want it to look like a table. Not...
2
by: toneill_2000 | last post by:
I'm using VS.Net 2003. I have a Web App where I'm trying to resize cells in an HTML table just the way I want in design view. Whenever I try to drag the size of the cells it snaps to larger sizes...
7
by: David Findlay | last post by:
I'm trying to do a table for laying out a links page in CSS. See http://qldstorms.com/links.php. My stylesheet is at http://qldstorms.com/styles/screen.css. My problem is that if the link name in...
3
by: sparks | last post by:
I was copying fields from one table to another. IF the var name starts with milk I change it to egg and create it in the destination table. It works fine but I want to copy the description as...
3
by: Darryn Ross | last post by:
Hi, I am having a few problems with my datagrid, the data in my database isn't coming through right. for example 100.00 in the table is coming through as 100 and 01/01/2004 in the table is...
3
by: Aaron Smith | last post by:
I can't seem to get my table styles to apply to my DataGrid. In order for them to apply correctly, what exactly has to be set in the DataSource and DataMember, and then the DataMapping properties?...
4
by: ThePinkPanther | last post by:
Hello I seem to have a re-occuring problem with tables. Every tiime i create a new table in my code (Table x = new Table();) it creates in the final code the browser gets the attribute...
7
by: TG | last post by:
hi! I am trying to create a sql server table from an excel sheet. Here is the code I have: 'This procedure the xlsx file and dumps it to a table in SQL Server
2
by: Josh Valino | last post by:
Hi, I'd like to take the style properties from one control and apply them all to the properties of another control, where they relate. The situation is this: I have a TreeView control, and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.