By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,968 Members | 1,506 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,968 IT Pros & Developers. It's quick & easy.

Copying a table's properties and styles

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.