SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    ********* Streaker Lister14's Avatar
    Join Date
    Jun 2002
    Location
    C:\Documents and Settings\Desktop\Recycle Bin
    Posts
    677
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    background in css?

    Hi,

    any idea how i can express the following in CSS? Any help appreciated.

    Code:
    <html>
     <head>
       <title>background</title>
     </head>
     <body topmargin="0" leftmargin="0">
      <table border="0" cellpadding="0" cellspacing="0">
        <td bgcolor="#66CC99" width="150" height="28"></td>
        <td bgcolor="#66CC99" width="15"></td>
        <td bgcolor="#66CC99" width="840"></td>
       <tr>
        <td bgcolor="#66CC99" width="150" height="15"></td>
        <td bgcolor="#6699CC" width="15"></td>
        <td bgcolor="#6699CC" width="840"></td>
       <tr>
        <td bgcolor="#66CC99" width="150" height="800"></td>
        <td bgcolor="#6699CC" width="15"></td>
        <td bgcolor="#ffffff" width="840">
        </td>
      </table>
     </body>
    </html>
    roy.lu
    C:\DOS... C:\DOS\RUN... RUN\DOS\RUN...!

  2. #2
    SitePoint Member
    Join Date
    Apr 2001
    Location
    glasgow
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i don't know how precise you want it but the below works in IE6 and Opera 6 at least:

    <html>
    <head>
    <title></title>

    <style>
    body {background:#66CC99;
    margin-top:30px;
    margin-bottom:0px;
    margin-right:0px;
    padding-right:0px;
    padding-bottom:0px;
    }

    #right{
    height:100%;
    width:80%;
    float:right;
    border-top: 20px solid #69c;
    border-left: 20px solid #69c;
    border-color: #69C;
    background:#fff;
    margin-bottom:0px;
    }
    </style>
    </head>

    <body>

    <div id="right">
    </div>

    </body>
    </html>

  3. #3
    ********* Streaker Lister14's Avatar
    Join Date
    Jun 2002
    Location
    C:\Documents and Settings\Desktop\Recycle Bin
    Posts
    677
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i'll try it out straight away... and see what i'll get...
    roy.lu
    C:\DOS... C:\DOS\RUN... RUN\DOS\RUN...!

  4. #4
    ********* Streaker Lister14's Avatar
    Join Date
    Jun 2002
    Location
    C:\Documents and Settings\Desktop\Recycle Bin
    Posts
    677
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wow... that worked just fine, thanx a lot!
    ...looks like i need to read a bit more around this <div> thingy
    roy.lu
    C:\DOS... C:\DOS\RUN... RUN\DOS\RUN...!


Bookmarks

Posting Permissions

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