473,396 Members | 2,140 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,396 software developers and data experts.

Replacing tables with CSS layout

Hello all,

Ok, so what I am attempting to accomplish is to replace my table-based
website with a CSS layout site, but I have run into a few hitches. My
main problem is that currently my website has sliced images that form
the frame around some text, I take those slices and put them into a
table and everything comes out fine.
My table has three rows, the first row has 5 cells, each containing a
piece of the frame, with the 2nd cell holding a single line of text.
The second row has 3 cells, the first and last holding frame images
and the second colspanning to fill the gap with the main content. The
third row has 3 cells as well, each holding frame images, the second
spanning to fill the gap with an image.
Basically, my table code looks like this:

--code--
<table border=0 cellspacing=0 cellpadding=0 width=225>
<tbody>
<tr>
<td class="r1c1"></td>
<td class="r1c2"><div class="nav_header">$title</div></td>
<td class="r1c3"></td>
<td class="r1c4"></td>
<td class="r1c5"></td>
</tr>
<tr>
<td class="r2c1" ></td>
<td class="r2c2" colspan=3>
<div class="nav_content">
&middot; <a href="home.inc">Home</a<br />
&middot; <a href="news.inc">News</a>
</div>
</td>
<td class="r2c5"></td>
</tr>
<tr>
<td class="r3c1"></td>
<td class="r3c2" colspan=3></td>
<td class="r3c5"></td>
</tr>
</tbody>
</table>
--end code--

Now this table is inserted dynamically (usually multiple times) based
on database info, each table holding different text with differing
titles. What I would like to do is attempt to convert this to a more
updated CSS layout, but am having a hard time trying to do so without
having 20 or 30 div tags. Am I missing something or with this
situation would the table actually be the more efficient way to go?

Thank you for your time and (hopefully) input.

--
Greg
gv*******@gmail.com

Apr 3 '07 #1
1 2332
In article
<11**********************@b75g2000hsg.googlegroups .com>,
"gViscardi" <gv*******@gmail.comwrote:
Hello all,

Ok, so what I am attempting to accomplish is to replace my table-based
website with a CSS layout site, but I have run into a few hitches. My
main problem is that currently my website has sliced images that form
the frame around some text, I t
Just stop right there! Don't even think about it. Leave it as it
is. When you have time, redesign the site completely without
tables and with a totally different look that does not involve
trying to achieve what you achieved with tables. Ignore what I
tell you and will suffer terribly ...

--
dorayme
Apr 3 '07 #2

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

Similar topics

1
by: Graham J | last post by:
Hello, Despite GoLive 6 still not wanting to acknowledge its existence, I have been using a 468x60 IFRAME for the single task of displaying advertising banners that are randomly generated by a...
44
by: Mariusz Jedrzejewski | last post by:
Hi, I'll be very grateful if somebody can explain me why my Opera 7.23 (runing under linux) doesn't show me inner tables. Using below code I can see only "inner table 1". There is no problem with...
8
by: Millissa | last post by:
If someone can help me with examples of or info on how to create an advanced tables for the layout on my site, I would be very grateful! Thanks, M
7
by: Rob Meade | last post by:
Hi all, Been a long time since I've been here... /me waves to all.. Ok - my conundrum.. I have a form where a user can enter text and BB codes...for example:
7
by: Wilhelm Kutting | last post by:
Hi again i want to replace the following layouttabel with css/xhtml: ---------------------------------- <table width="640" cellspacing="0"> <tr> <td valign="top">My Title</td> <td...
53
by: Alan Silver | last post by:
Hello, I understand the issue that tables should be used for tabular data and not for layout, but I would like some clarification as to exactly what constitutes tabular data. For example, if...
7
by: Daniel Kabs | last post by:
Hi there, for a long time I've been using tables to layout elements on a web page. Example: Say we have a 2x2 table and I'd like to put text (left aligned) and buttons (right aligned) in the...
1
by: cma6 | last post by:
I have a page which uses tables for layout http://www.vintagetextile.com/1920s_to_1930s.htm The checkerboard pattern is achieved with this markup: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML...
53
by: brave1979 | last post by:
Please check out my javascript library that allows you to create any layout for your web page, nested as deep as you like, adjusting to width and height of a browser window. You just describe it in...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
Oralloy
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.