473,835 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Table behavior Old Way upgraded to CSS

I have a table that works nicely using a combo of old school HTML and
some CSS. I need to keep using tables (due to other code on the
serverside), but would love to get cellpadding, cellspacing and border
in the TABLE tag to be replaced with a single class, while keeping the
same overall behavior.

Here is the current code:

<table height="27" cellpadding="0" cellspacing="0" border="0">
<td class="table1_c orner_top_left" ><!-- Shape Holder --><img
src="../images/dot_blank.gif" width="8" height="23" alt=""></td>
<td class="table1_t op_sliver" width="100%"
align="absmiddl e">Stuff</td>
<td class="table1_t op_sliver" rowspan="2"
align="absmiddl e">Options</td>
<td class="table1_c orner_top_right "><!-- Shape Holder --><img
src="../images/dot_blank.gif" width="7" height="23" alt=""></td>
<td class="table1_l eft_sliver"><!-- Shape Holder --><img
src="../images/dot_blank.gif" width="8" height="4" alt=""></td>
<td class="table1_m ain_bg_color">< img
src="../images/dot_blank.gif"> a<br>b</td>
<td class="table1_r ight_sliver"><!-- Shape Holder --><img
src="../images/dot_blank.gif" width="7" height="4" alt=""></td>

What class properties will keep this table behaving the same way?

I tried:

<table height="27" class="Main_Tab le">


padding: 0;
border: 0;
border-collapse: collapse;

But I couldn't find a replacement for cellspacing, AND, the whole thing
started getting distorted (where I am using background images).

Is this an instance where I should stick with the Old School HTML way?


Feb 1 '06 #1
2 1410
Giggle Girl wrote:

I tried:

<table height="27" class="Main_Tab le">
padding: 0;
border: 0;
border-collapse: collapse;
But I couldn't find a replacement for cellspacing, [...]

.Main_Table td { padding: ...; margin: ...; }
to set the spacing for the cells.

jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Feb 1 '06 #2
Thank you so much, Jim Moe! :)


Feb 1 '06 #3

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

Similar topics

by: weldonj | last post by:
I upgraded to MySQL 4.1.1-alpha-standard the other night and ever since then at least twice a day my main message board table will crash. Here's what i get when I check on the board or analyze it: check board: Table Op Msg_type Msg_text myboard.board_data check warning Table is marked as crashed myboard.board_data check error Key in wrong position at page 3072
by: (Pete Cresswell) | last post by:
I'm putting a little table in my DB that I'll call zstblVersion. ("..stbl" for System Table, "z" so it sinks to the bottom of the list and doesn't look like something to do with the app) The purpose is to let somebody look at the DB and divine which version they're seeing. So far, I've got 3 columns:
by: Damien | last post by:
I have a table in my database called Users: CREATE TABLE ( NOT NULL CONSTRAINT DEFAULT (newid()), (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , (40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , (100) COLLATE SQL_Latin1_General_CP1_CI_AS
by: David | last post by:
Hi, We a have a small office network of 3 users. Each user has their own copy of an MS Access Front-End which is linked via their own local ODBC connection to our server's MySQL database (Linux Machine) 2 of our 3 users machines can import/link the data back into their front-ends instantly. The third machines will connect, but it is so ultra slow that you just cannot import all the tables and use the
by: PengYu.UT | last post by:
Hi All, I know the result of the operator % is the remainder. But I don't find the detailed descriptions, for example from K&R's book http://freebooks.by.ru/view/CProgrammingLanguage/chapter2.html#s2.5 I tried -1 % 10. It gave me -1. How can I make the remainder has the same sign as the divider? How to get -1 % 10 = 9? Thanks! Best wishes,
by: Gareth Stretch | last post by:
Hi Guys. i am using C#.net connecting to an Access database using OleDbConnection i am using the following select Statement to join 3 tables string strdvds = "SELECT dvd.name, category.description, dvd.zone, dvd.price, dvd.booked_out, dvd.booked_out_date,(contacts.name +' '+ contacts.surname) as contact FROM (dvd LEFT JOIN category ON dvd.category_id = category.id) LEFT JOIN contacts ON dvd.contact_id = contacts.id ORDER BY dvd.name...
by: paul reed | last post by:
Hello, I am having some weird behavior between two machines...one which is running the 1.1 framework and one which is running 1.0. After opening a child form from a parent...I update the database then call the __doPostBack function of the window.opener. This has been working like a charm for the last several months. Our ISP where we run the .NET app recently upgraded to 1.1 of the framework. When I run my app at the ISP...the...
by: Curtis | last post by:
Hello everyone: I have come to love the ease of updating PHP, since getting used to using it these past few years. Recently, however, when I upgraded from PHP 5.1 to PHP 5.2.0 and again when moving to 5.2.1, I noticed strange behavior when trying to load php_mysqli.dll. I am using Apache 2.2.3 on Windows XP Pro (32-bit). I use the php5apache2_2.dll to load PHP as an Apache module. The PHPIniDir directive in httpd.conf points to the...
by: cryogeneric | last post by:
Hello! My company recently upgraded to SQL Server 2005 and I'm still getting used to the new interface. One thing I've noticed: When I'm connected to a specific database and I want to run a script, I click New Query, Open File then select the script. SQL Server 2005 brings up the "Connect to Database Engine" dialog again and the resets the database to master. This is a bit annoying, especially since Query Analyzer would allow me to...
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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...
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...
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...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.