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 2 of 2

Thread: DIV help

  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Location
    UK
    Posts
    302
    Thanks
    16
    Thanked 0 Times in 0 Posts

    DIV help

    I'm trying to get my confirmation page into the <div></div> Sorry for sounding thick but I cant think how else to explain it. Here is my code so far.


    Code:
    <div style="display: inline; overflow: auto; width: 706; height: 360; border: 0px solid black;">
              <table border="0" cellpadding="0" cellspacing="0" width="100%" msimagelist>
                <tr msimagelist>
                  <td valign="baseline" width="42" msimagelist><img src="images/12.gif" width="16" height="9"></td>
                  <td valign="top" width="100%">
              <font color="#000080" size="2" face="Tahoma">Headquarters:<br>
              <br>
                    </b>121 Addres line<br>
                    CITY<br>
                    G33 678
              <b>
              <br>
              <br>
                    </b>
                </font>
                  </td msimagelist>
                </tr>
              <b>
              <li>
              <font color="#000080" size="2" face="Tahoma">Send Us an Email:<br>
                  <br>
                </font>
                </b>
              <font color="#000080" size="2" face="Tahoma">
                  Enquiries: <a href="mailto:info@</a>
              <b>
              <br>
              </b>Mobile Dj Hire: <a href="mailto:hire@<br>
              </a>Webmaster: <a href="mailto:webmaster">webmaster@</a>
              <b>
              <br>
                  <br>
              </b>
                </font>
              </td msimagelist>
              </tr>
              <b>
              <li>
              <font color="#000080" size="2" face="Tahoma">Phone/Fax Us::<br>
                  <br>
              </b>
                  Phone : 0141-000-0000 (Our offices are open from 10am-7pm Monday to
                  Saturday&nbsp;)<br>
                  Mobile : 07789-123-1236<br>
                  Fax : 0141-000-0000
              <b>
              <br>
                  <br>
              </b>
                </font>
            </td msimagelist>
          </tr>
              <b>
              <tr msimagelist>
                <td valign="baseline" width="42" msimagelist><img src="images/12.gif" width="16" height="9"></td>
                <td valign="top" width="100%">
              <font color="#000080" size="2" face="Tahoma">Contact Form:
                </font>
              </b>
                  <form name="frmContact" onsubmit="return CheckForm()" method="POST" action="confirm.htm">
                    <table cellSpacing="0" cellPadding="0" width="553" border="0">
                      <tbody>
                        <tr bgColor="#ffffff">
                          <td class="bodyText" width="246" align="right">
              <font color="#000080" size="2" face="Tahoma">Full Name :</font>
                          </td>
                          <b>
              <font color="#000080" size="2" face="Tahoma">
                          <td width="303"><input class="bodyText" size="40" name="name"></td>
                        </tr>
                          </font>
              </b>
                        <tr bgColor="#ffffff">
                          <td class="bodyText" width="246" align="right">
              <font color="#000080" size="2" face="Tahoma">Email Address :</font>
                          </td>
                          <b>
              <font color="#000080" size="2" face="Tahoma">
                          <td width="303"><input class="bodyText" size="40" name="email"></td>
                        </tr>
                          </font>
              </b>
                        <tr bgColor="#ffffff">
                          <td class="bodyText" width="246" align="right">
              <font color="#000080" size="2" face="Tahoma">Subject :</font>
                          </td>
                          <b>
              <font color="#000080" size="2" face="Tahoma">
                          <td width="303"><input class="bodyText" size="40" name="subject"></td>
                        </tr>
                          </font>
              </b>
                        <tr bgColor="#ffffff">
                          <td class="bodyText" width="246" align="right">
              <font color="#000080" size="2" face="Tahoma">Reason :</font>
                          </td>
                          <b>
              <font color="#000080" size="2" face="Tahoma">
                          <td width="303"><select class="bodyText" onchange="if(this.options[this.selectedIndex].text=='Technical Support'){alert('Technical support emails must be posted using the Interspire client area.');}" name="reason" size="1">
                              <option>&lt;&lt;- Please Select -&gt;&gt;</option>
                              <option value="Information on Dj Hire">Information on
                              Dj Hire</option>
                              <option value="General Enquiry">General Enquiry</option>
                            </select></td>
                        </tr>
                          </font>
              </b>
                        <tr>
                          <td class="bodyText" width="246" align="right" valign="top">
              <font color="#000080" size="2" face="Tahoma">
                            Questions / Comments :</font>
                          </td>
                          <b>
              <font color="#000080" size="2" face="Tahoma">
                          <td width="303">
              <font color="#000080" size="2" face="Tahoma"><b><textarea class="bodyText" name="comment" rows="5" cols="59"></textarea>
              </b></font>
              </td>
                          </tr>
                        <tr bgColor="#ffffff">
                          <td class="bodyText" width="177">
                            <p>
                            </p>
                          </td>
                          <td class="bodyText" width="376">
                            <p align="center"><b><font color="#000080" size="2" face="Tahoma"><input class="blueButton" type="submit" value="Send Message" name="submit" style="font-size: 10px">
                            </font>
              </b>
                          </td>
                        </tr>
                      </tbody>
                    </table>
                  </form>
    Kind regards,
    Mike Hughes

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What's the question?

    Apart from some ghastly coding practices, I can't seem to figure what exactly your question is.

    It seems as if you wish to wrap a div around that whole horrible nested table/form/font mess; you could start by closing the div with an appropriate </div> tag. Due to sloppy formatting it's practically impossible to figure out, but it looks like you haven't properly closed the table you're starting with either, since the </form> end tag is the last thing I see in there.

    Lastly, what baffles me is why you've given the div an "display: inline" when all it contains are nested block elements.

    Begin with cleaning up your code, and try to formulate your question somewhat more clearly; describe what you want to achieve, not how you can make the implementation you have in your mind work - because there may be better ways to solve the problem.
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

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