473,796 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1620
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
4192
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 only that, but I want it to look like a plain ordinary uncomplicated vanilla table, to look like everyone else's table.
2
2170
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 and acts really weird. Also it doesn't go exactly where I want it to go. My cells are not the size I want them I am having trouble sizing them correctly. Does any have suggestions or a good resource for me to learn about using HTML tables in...
7
1869
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 the first column get's word wrapped, but the description text in the second column doesn't, the next row get's wrapped to sit next second line of the link name. Also if a two line link name is last in the category box, it'll cross the outside of...
3
2574
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 well. Short version :) For Each fld In tdf.Fields pos = InStr(fld.Name, "milk") If pos > 0 Then
3
1444
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 coming through as 01/01/2004 10:45 AM??? how do i format my custom table and column styles to reflect the correct data type stored in my tables... my code is as follows.
3
1071
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? I keep trying all different combinations of DataSets, tables, and even DataViews, but it just isn't working... I have a DataSet that has the following: Table1 |_ Table 2
4
1130
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 'border="0"'.(i prefer putting my styles in a seprate css file) Doesnt matter what i do, Table.Attributes.Clear(),Table.Style.Clear() nothing seems to work.even changing the Table.BorderWidth property creates a 'style="border-width:x"' and stucks me with...
7
12076
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
1169
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 the SelectedNodeStyle has some things set. In addition to the TreeView, I have a few LinkButton controls. A user can select a node in the tree or one of the LinkButton. I'd like the LinkButtons to have the same look that a selected node has when...
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10217
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9047
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5568
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.