Question:
CSS Table Coding!?
Anna
2008-05-13 14:54:52 UTC
I need to know how to make a nice table with NO cells so I can just type a paragraph, but I have no idea how to make a table without cells. Help would be appreciated!
Six answers:
circusmort
2008-05-13 15:05:24 UTC
You can't make a table without cells.



You really need to clarify what the information you're wanting to display is - there are certain tags for certain types of information and those tags can be styled to suit.



Say: you could style all
  • to be a certain height and width and float left so that they will form boxes like in a table then you could class individual ones for colour and emphasis.



    However there's nothing actually wrong with using tables FOR tables!
  • Opal
    2008-05-13 15:45:52 UTC
    You can't make a table without cells. What you need to do is create a div and put your text in it -



    /* below is for the css */



    .copyHolder {

    width:200px;

    border:1px solid blue;

    padding:10px;

    }









    I need to know how to make a nice table with NO cells so I can just type a paragraph, but I have no idea how to make a table without cells. Help would be appreciated!







    --



    Of course you can change the CSS properties to anything you want.
    Triple Threat
    2008-05-13 15:02:51 UTC
    Tables for layout are not compliant anymore. What you would do, is create a div...your code could look like this:



    Type your paragraph in here







    then your css could look like this for example:



    #content {

    width: 600px;

    text-algin: left;

    background-color:#FFFFFF;

    font: arial 12px #CC0000;

    border: 1px solid #CC0000;

    padding: 6px;



    }



    Hope that helps! :) And if your using Firefox, it helps to get the developer tool bar, and Firebug. I learned a lot this way.



    Never use tables...tables should only be used for tabular data, like for product spec sheets and stuff....



    If you need help learning HTML and CSS more, there are a TON of resources out there, and if your in the web design biz, or plan on doing a lot w/ the web, it really helps to understand the coding aspect...or you will just find it harder and harder.



    http://www.w3schools is a great start.



    * you can put your css in a tag in the header of your doc, but better yet, if its a larger site, I suggest linking to an external CSS style sheet.
    ?
    2016-10-21 08:50:19 UTC
    while you're applying CSS to create your website, then you definately may be lots extra suitable steerage clean of Tables all mutually. coming up navigation applying a CSS checklist would be lots extra efficient in the long-term, and supply you lots extra effective administration over styling and positioning.
    2008-05-13 14:59:15 UTC
    Table without cells?

    Then it's not a table, maybe you'll rather use a div or colspan and rowspan.
    simpleMind
    2008-05-13 15:01:46 UTC
    do you mean like a box?





      

       

      



      
    This is a box.








    This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
    Loading...