Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Posts
    478
    Thanks
    3
    Thanked 0 Times in 0 Posts

    please help convert tables to CSS

    wishing to convert the following so it is all CSS

    please can someone kindly advise how this is done.

    thank you for your help.


    Code:
    <table border="1" cellpadding="8" bordercolor="#FFFFFF" bgcolor="#507BCD" style="border-collapse:collapse;">
                    <tr>
                      <td><div>abc</div></td>
                    </tr>
                  </table>

  • #2
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,801
    Thanks
    8
    Thanked 131 Times in 129 Posts
    Code:
    #container {
    border: 1px solid #fff;
    background: #507bcd;
    }
    
    #content {
    margin: 8px;
    }
    
    
    <div id="container">
    	<div id="content">
    		<p>abc</p>
    	</div>
    </div>
    it's a start.
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis

  • #3
    Senior Coder jerry62704's Avatar
    Join Date
    Oct 2007
    Location
    Springfield, IL
    Posts
    1,100
    Thanks
    13
    Thanked 87 Times in 87 Posts
    CSS:
    div {
    border: 1px solid #fff;
    background-color: #507bcd;
    padding: 8px;
    }

    html:
    <div>abc</div>

    You might want to put that in a paragraph (<p>abc</p>). Is this what you were looking for?
    .
    .
    ...and gladly would he learn and gladly teach

    Visit www.LiberalsWin.com for humor and the unique Bush/Obama Approval Polls

  • #4
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    http://accessat.c-net.us/articles/convert.html

    Try this for starters. More help in the Sources program in my signature.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.


  •  

    Posting Permissions

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