Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Re: Replacing tables with divs

Reply
Thread Tools

Re: Replacing tables with divs

 
 
Gus Richter
Guest
Posts: n/a
 
      03-08-2012
On 3/7/2012 6:18 PM, Alfred Molon wrote:
> There is probably a simple answer to this, but for some reason I haven't
> figured it out yet.
>
> 1. How do I replace a table with three columns with an equivalent div-
> based code?
>
> From:
> <table>
> <tr><td></td><td></td><td></td></tr>
> </table>
>
> to:
> <div>
> <div id="div1"></div><div id="div2"></div><div id="div3"></div>
> </div>


<style>
#div1, #div2, #div3 {float:left;}
</style>

<div id="div1"></div><div id="div2"></div><div id="div3"></div>

> 2. Same question for a table with three rows:
>
> From:
> <table>
> <tr><td></td></tr>
> <tr><td></td></tr>
> <tr><td></td></tr>
> </table>
>
> to an equivalent code with divs.


<style>
----
</style>

<div id="div1"></div><div id="div2"></div><div id="div3"></div>

--
Gus

 
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
Re: Replacing tables with divs richard HTML 15 03-14-2012 07:26 PM
Re: Replacing tables with divs dorayme HTML 15 03-11-2012 02:28 AM
Re: Replacing tables with divs idle HTML 14 03-09-2012 04:17 AM
Re: Replacing tables with divs Jukka K. Korpela HTML 3 03-08-2012 01:40 PM
Managing divs within divs.... rich HTML 0 02-02-2006 07:38 PM



Advertisments