Results 1 to 4 of 4
  1. #1
    ABW Ambassador
    Join Date
    June 30th, 2007
    Location
    Syracuse, NY
    Posts
    677
    Is this a good way to make "tables" or columns with divs?
    I wouldn't call myself an expert to CSS, so wanted to know if this seems like a good way to set up "tables" or columns in an element.

    I want three colums in my content section, so made these three.
    Code:
    #div1 {
    float:right;
    width: 190px;}
    
    #div2 {
    float:right;
    width: 235px;}
    
    #div3 {
    float:right;
    width: 242px;}
    Then I added them in.
    Code:
    <div id="main">
    	<div id="content">
    
    <div id="div1">
    </div>
    
    <div id="div2">
    </div>
    
    <div id="div3">
    </div>
                </div>
            </div>
    And it is working in both IE and Firefox. So should be fine to do this way? Or is there a better way that would cause less problems? (If this way does)

    Thanks.

  2. #2
    ABW Ambassador PatrickAllmond's Avatar
    Join Date
    September 20th, 2005
    Location
    OKC
    Posts
    1,219
    There are about 23,238 ways to do it. If you did it and it works then you are now the pro! Every time I have to do it I look it up and I am sure I do it different every time.

    Congrats on seeing the light and going from tables to CSS.
    ---
    This response was masterly crafted via the fingers of Patrick Allmond who believe you should StopDoingNothing starting today.
    ---
    Focus Consulting is where I roll | Follow @patrickallmond on Twitter
    Search Engine Marketing | Search Engine Optimization | Social Media | Online Video

  3. #3
    ABW Ambassador
    Join Date
    June 30th, 2007
    Location
    Syracuse, NY
    Posts
    677
    I actually couldn't get tables to work, so went with divs, LOL.

    And thanks.

  4. #4
    Visual Artist & ABW Ambassador lostdeviant's Avatar
    Join Date
    September 7th, 2007
    Location
    Cuautitlán, Edo. de México
    Posts
    1,725
    Tables are good for data. DIVs are good for layout.

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Can you recommend "make money online" ebooks to sell?
    By Samael8 in forum Newbie Affiliate FAQs & Helpful Articles
    Replies: 6
    Last Post: November 20th, 2009, 04:40 PM
  2. Replies: 2
    Last Post: July 29th, 2005, 01:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •