dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: Need help with this code

  1. #1
    Join Date
    Feb 2004
    Posts
    14

    Need help with this code

    <html>
    <head>
    <title>Welcome to LuvAlot pet care services!</title>
    </head>
    <table border="0" align="center" width="80%">
    <tr bgcolor="0099ff">


    <center><h1>Welcome to LuvAlot Pet Care Services</h1></center><br>
    <center><h2>When you can't be there, let us take care of your beloved pet</h2></center>

    <hr>

    <body>

    <a name="bookmark1"></a>

    Feel the <b>CONFIDENCE</b> and <b>SECURITY</b> know that your pet will have all its needs<br> met in their own home where they are comfortable.

    <b><h3>What We Offer:</b></h3>

    <ul>
    <li>We will provide daily trips to your home where we will</li>
    <li>give your pet fresh food and water</li>
    <li>take them for walks</li>
    <li>give medication (if needed)</li>
    <li>love, play and socialize with your pet</li>
    <li>take them to the vet (additional fee)</li>
    </ul>

    <h3>Why choose home pet care?</h3>

    Not all pets travel well, and not all circumstances will accomodate taking your pet(s)<br>with you.
    And many pets do not do well in kennel or boarding situations. We understand<br>this because we have been in this situation ourselves, and know how difficult it can be on<br>a domestic pet.
    <br>
    <br>
    <img src="dog.jpg" align="right">
    With our "at home" pet care services you can have the peace of mind knowing that your<br>pet will be loved and provided for in your absence.
    <br>
    <br>
    <center><h3>We are available any day of the week and <i>any</i> holiday.</h3></center>
    Please call us for more information, and tell us about your pet and what their needs are.<br>We gaurantee your pet will feel loved and provided for while you are away.
    <br>
    <br>
    <h3>Arranging for our services is as easy as...
    <ol>
    <li>Call our reservation hotline at 1-800-222-PETS (7387)</li>
    <li>Be prepared to give us some detailed information about your pet (temperment,<br> schedule, food likes and dislikes etc.)</li>
    <li>Choose your method of payment. We accept Visa, Mastercard, Discover and<br>American Express, as well as cash and personal checks.</li>
    </ol>

    <TABLE BORDER="1"ALIGN="center"WIDTH=75%">
    <TR>
    <TH></TH>
    <TD><B>Dogs</B></TD>
    <TD><B>Cats</B></TD>
    <TD><B>Birds</B></TD>
    <TD><B>Small Caged Animals</B></TD>
    </TR>
    <TR>
    <TH>Day</TH>
    <TD>$15</TD>
    <TD>$10</TD>
    <TD>$7</TD>
    <TD>$7</TD>
    </TR>
    <TR>
    <TH>Week</TH>
    <TD>$90</TD>
    <TD>$60</TD>
    <TD>$28</TD>
    <TD>$28</TD>
    </TR>
    <TR>
    <TH>Month</TH>
    <TD>$300</TD>
    <TD>$200</TD>
    <TD>$90</TD>
    <TD>$90</TD>
    </TR>
    </TABLE>


    <br>
    <br>
    Don't have a pet and want one? Visit <a href="http://www.lollypop.org">Visit Lollypop farm</a>and find a friend that needs a home. <br>
    <br>
    <img src="parakeet.gif" align="center">
    <center><a href="#bookmark1">Go back to top of the page</a></center>
    </table>
    </body>

    </html>

    Basically I need the entire page to have a white border around it, and I need to do it using a table. For some reason the table won't enclose everything past where the I use the 2nd nested table. Any ideas?

  2. #2
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    5,298
    You need to remove the layout markup thats above your <body> element. Only, <title>, <head>, <html>, and other header elements should be above the <body> tag.

    Regards,
    Andrew Buntine.

  3. #3
    Join Date
    Feb 2004
    Posts
    14
    <html>
    <head>
    <title>Welcome to LuvAlot pet care services!</title>
    <STYLE>h1,h2,h3 {color: red; font-family: serif}</STYLE>

    </head>


    <body>
    <table border="0" align="center" width="80%">
    <tr bgcolor="0099ff">


    <center><h1>Welcome to LuvAlot Pet Care Services</h1></center><br>
    <center><h2>When you can't be there, let us take care of your beloved pet</h2></center>

    <hr>

    <a name="bookmark1"></a>

    <h1>Feel the <b>CONFIDENCE</b> and <b>SECURITY</b> know that your pet will have all its needs<br> met in their own home where they are comfortable.</h1>

    <b><h3>What We Offer:</b></h3>

    <ul>
    <li>We will provide daily trips to your home where we will</li>
    <li>give your pet fresh food and water</li>
    <li>take them for walks</li>
    <li>give medication (if needed)</li>
    <li>love, play and socialize with your pet</li>
    <li>take them to the vet (additional fee)</li>
    </ul>

    <IMG SRC="myimagemap.gif" ALT="My Image Map" USEMAP="#myimagemap">


    <MAP NAME="myimagemap">
    <area shape="rect" coords="93,112,25,21"
    href="http://www.petsupplies.com" alt="Pet supplies">
    <area shape="circle" coords="216,57,51"
    href="http://www.petfood.com" alt="Pet food">
    <area shape="poly" coords="317,109,330,26,375,112"
    href="http://www.findapet.com" alt="Find a pet">
    </map>


    <h3>Why choose home pet care?</h3>

    Not all pets travel well, and not all circumstances will accomodate taking your pet(s)<br>with you.
    And many pets do not do well in kennel or boarding situations. We understand<br>this because we have been in this situation ourselves, and know how difficult it can be on<br>a domestic pet.
    <br>
    <br>
    <img src="dogkitty.jpg" align="right">
    With our "at home" pet care services you can have the peace of mind knowing that your<br>pet will be loved and provided for in your absence.
    <br>
    <br>
    <center><h3>We are available any day of the week and <i>any</i> holiday.</h3></center>
    Please call us for more information, and tell us about your pet and what their needs are.<br>We gaurantee your pet will feel loved and provided for while you are away.
    <br>
    <br>
    <h3>Arranging for our services is as easy as...
    <ol>
    <li>Call our reservation hotline at 1-800-222-PETS (7387)</li>
    <li>Be prepared to give us some detailed information about your pet (temperment,<br> schedule, food likes and dislikes etc.)</li>
    <li>Choose your method of payment. We accept Visa, Mastercard, Discover and<br>American Express, as well as cash and personal checks.</li>
    </ol>

    <TABLE BORDER="1"ALIGN="center"WIDTH=75%">
    <TR>
    <TH></TH>
    <TD><B>Dogs</B></TD>
    <TD><B>Cats</B></TD>
    <TD><B>Birds</B></TD>
    <TD><B>Small Caged Animals</B></TD>
    </TR>
    <TR>
    <TH>Day</TH>
    <TD>$15</TD>
    <TD>$10</TD>
    <TD>$7</TD>
    <TD>$7</TD>
    </TR>
    <TR>
    <TH>Week</TH>
    <TD>$90</TD>
    <TD>$60</TD>
    <TD>$28</TD>
    <TD>$28</TD>
    </TR>
    <TR>
    <TH>Month</TH>
    <TD>$300</TD>
    <TD>$200</TD>
    <TD>$90</TD>
    <TD>$90</TD>
    </TR>
    </TABLE>


    <br>
    <br>
    Don't have a pet and want one? Visit <a href="http://www.lollypop.org">Visit Lollypop farm</a>and find a friend that needs a home. <br>
    <br>
    <img src="parakeet.gif" align="center">
    <center><a href="#bookmark1">Go back to top of the page</a></center>

    <map name="myimagemap">
    <area shape="rect" coords="20,17,88,120"
    <href="http://www.petfood.com" alt="Petfood">
    <area shape="circle" coords="151,11,265,125"
    <href="http://www.dogs.com" alt="Dogs">
    <area shape="poly" coords="313,15,386,125,318,115"
    <href="http://www.cats.com" alt="Cats">
    </map>
    </table>
    </body>

    </html>

    Still doesn't work. It leaves everything from the second table on down out. Hrm.

  4. #4
    Join Date
    May 2004
    Location
    North Coast, Australia
    Posts
    271
    change the main table to this:

    <table border="5px" bordercolor="white" align="center" width="80%" bgcolor="0099ff">
    <tr>

    take out the bg colour from the tr tag

    does this work?

  5. #5
    Join Date
    May 2004
    Location
    Jacksonville, FL
    Posts
    4
    Well off hand I see that your nested table is missing " at WIDTH="75%">

    Add BORDER="5" (or 10 or 20 or whatever size of border you wish)
    and BORDERCOLOR="FFFFFF"
    after WIDTH of your first primary table. Make sure all is enclosed properly <table.............">

    Here's the Code for your first table which should be after the first <body> tag:

    <TABLEBORDER="5"ALIGN="center"WIDTH="80%"BORDERCOLOR="FFFFFF">

    If you want a smaller border between the primary table and your second nested table then change your second table to:

    <TABLEBORDER="2"ALIGN="center"WIDTH="75%"BORDERCOLOR="FFFFFF">

    You can change the Border Colors by changing the BorderColor codes.
    You can change the size of the Borders by changing the TableBorder.
    Last edited by Goose1; 05-24-2004 at 12:39 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles