473,769 Members | 6,305 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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"><d iv class="nav_head er">$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_cont ent">
&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 2352
In article
<11************ **********@b75g 2000hsg.googleg roups.com>,
"gViscardi" <gv*******@gmai l.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
3095
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 remote cgi script. However as I am in the process of switching to doing things 'properly' (stopping abusing tables for layout etc) I believe that I should ideally be replacing IFRAME with an OBJECT and using the DATA parameter (GoLive doesn't know...
44
3896
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 other browsers (I checked it under Konqueror). Thank you in advance for your help. Regards. /Mariusz <HTML>
8
2795
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
1730
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
4926
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 valign="top">my text </td> </tr> <tr> <td><img src="spacer.gif" width="140" height="1" /></td>
53
4241
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 I have a form, in which the user is required to fill in various bits of information, then laying out with a table makes it easy. A basic example...
7
2625
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 top right table cell. These elements should stay on one line and the table should keep a minimum width in order to prevent wrapping. -------------------------------------------------
1
2561
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 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>1920s to 1930s high-style Vintage Clothing at Vintage Textile</title>
53
4138
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 javascript object and that's all. No need to know CSS hacks, no need to clutter your html with tables. http://www.bravelayout.scarabeo.biz/Quickstart
0
9423
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,...
0
10211
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, 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...
0
10045
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...
1
9993
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7406
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
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3958
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
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
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.