Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Converting tables to DIV & SPAN

Reply
Thread Tools

Converting tables to DIV & SPAN

 
 
plenty900@yahoo.com
Guest
Posts: n/a
 
      01-25-2008
Hi folks,

Can someone show me how to convert this to div/span format?

<table width=100%>
<tr>
<td>
<table>
<tr><td width=100>1</td></tr>
<tr><td>2</td></tr>
</table>
</td>
<td width=200> 3 </td>
</tr>
</table>

Is there a good tutorial on how to convert a table-based
layout to DIVs and SPANs?

Thanks.
 
Reply With Quote
 
 
 
 
dorayme
Guest
Posts: n/a
 
      01-25-2008
In article
<7926f454-a756-48b4-b9e0-
m>,
wrote:

> Hi folks,
>
> Can someone show me how to convert this to div/span format?
>
> <table width=100%>
> <tr>
> <td>
> <table>
> <tr><td width=100>1</td></tr>
> <tr><td>2</td></tr>
> </table>
> </td>
> <td width=200> 3 </td>
> </tr>
> </table>
>
> Is there a good tutorial on how to convert a table-based
> layout to DIVs and SPANs?
>


No, there are no tutorials on this specifically. Nor could there
be because it is not one manageable and specific problem. There
might not be too many manuals on how to rebuild cities all in one
go and quickly either. <g>

I suggest you supply a rather more realistic case of a table
based layout that you have worked on and how you wish something
to appear to many people.

If you really want to know how to make a 1 appear on the left, a
2 underneath and a 3 way to the right, it is not too hard without
tables.

<div style="float:left">1<br>2</div>
<div style="float:right">3</div>

But how useful will this be to you?

--
dorayme
 
Reply With Quote
 
 
 
 
Bergamot
Guest
Posts: n/a
 
      01-25-2008
wrote:
>
> Can someone show me how to convert this to div/span format?


You're asking the wrong question.

> Is there a good tutorial on how to convert a table-based
> layout to DIVs and SPANs?


There's a lot more to it than div and span. Get some understanding of
semantics and you'll have a much better site. You might start here:
http://microformats.org/wiki/posh

--
Berg
 
Reply With Quote
 
Jeff
Guest
Posts: n/a
 
      01-26-2008
wrote:
> Hi folks,
>
> Can someone show me how to convert this to div/span format?
>
> <table width=100%>
> <tr>
> <td>
> <table>
> <tr><td width=100>1</td></tr>
> <tr><td>2</td></tr>
> </table>
> </td>
> <td width=200> 3 </td>
> </tr>
> </table>
>


Styles shown inline, you'll want to put them in your stylesheet instead.


<div style="float: left;width: 100px">
<div>1</div>
<div>2</div>
</div>
<div style="float: left;width: 200px;">3</div>

There's other ways of doing that.


> Is there a good tutorial on how to convert a table-based
> layout to DIVs and SPANs?


Doesn't appear to be. There's lots of bits and pieces here and
there. The biggest problem is doing the equivalent of equal height
columns. You'll see some resources on this though as techniques are
being worked out. Search the archives and you'll find several different
ways of doing that.

Note that all a div is, is an empty block level element, and all a
span is, is an empty inline element. It's how you style them that makes
the difference.

Jeff


>
> Thanks.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm looking for html cleaner. Example : convert <h1><span><font>my title</font></span></h1> => <h1>my title</h1>… Stéphane Klein Python 2 03-30-2010 12:35 AM
Re: I'm looking for html cleaner. Example : convert <h1><span><font>my title</font></span></h1> => <h1>my title</h1>… Stefan Behnel Python 0 03-29-2010 08:14 PM
Can span include span? Fulio Open HTML 5 06-26-2009 10:24 PM
DataGrid (body only) contained in <span>...</span> tags Dan Bishop ASP .Net Datagrid Control 2 06-07-2004 04:00 PM
Redrawing of Internet Explorer Tables vs Div/Span tags sherpaa HTML 2 06-01-2004 09:38 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57