Web Design Forum  

Go Back   Web Design Forum > Web and Graphic Design > Web Design

Like Tree1Likes

Reply
 
LinkBack Thread Tools Display Modes
Old 08-24-2011, 02:13 AM   #1
New Member
 
Join Date: Aug 2011
Posts: 10
Default Table stays put in IE, but not in Firefox

Hey y'all,

I am new to the web design side of things and just wanted to take a crack at it. So I have designed a very SIMPLE 5 page website and on one of my pages there is a form to fill out information about who ever if visiting. I have the table created, linked to the php to send me an email when the customer fills the info out, hits submit. This acutally worked on my first try. I am a CAM software Engineer and applications engineer so i know a bit about coding...

BUT for the LIFE OF ME, I cannot get the damn table to stay put in Firefox. In IE it will stay exactly where I designed it to be using margin-left, margin-top, ect.. no matter what size I make the viewport, yet in Firefox when I change the width of the viewport the table moves all over in the horizontal direction...

Any ideas? Here is the code... yes I know it sucks, it is my first time so take it easy please. Thanks for the help I bet it is something easy I am overlooking. I am using Dreamweaver btw.

HTML Code:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
body {
	background-image: url(images/invite.jpg);
	background-repeat: no-repeat;
	background-color: #DC1414;
	background-position: center top;
	text-align: center;
}
.text {
	font-size: 16px;
	color: #FFF;
	font-family: Arnprior;
}
.radio {
	font-size: 16px;
	font-family: Arnprior;
	color: #FFF;
}
.radio2 {
	font-size: 16px;
}
#apDiv1 {
	position:absolute;
	width:401px;
	height:278px;
	z-index:1;
	top: 68px;
	left: 440px;
}
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- End Save for Web Slices -->

<blockquote>
  <form name="form1" method="post" action="">
  </form>
  <div class="">
    <table width="398" border="0" cellpadding="6" style="margin-top:50;margin-left:800" >
      <tr>
        <td width="116" height="37" style="text-align: right; font-family: Arnprior; font-size: 16px; color: #FFF;"><label for="firstname2"><span class="text">First Name</span>:</label></td>
        <td width="252" style="text-align: left"><span style="text-align: right">
          <input name="firstname" type="text" id="firstname2" size="40" maxlength="35">
        </span></td>
      </tr>
      <tr>
        <td style="text-align: right; font-family: Arnprior; font-size: 16px; color: #FFF;"><label for="lastname">Last Name:</label></td>
        <td style="text-align: left"><span style="text-align: right">
          <input name="lastname" type="text" id="lastname" size="40" maxlength="40">
        </span></td>
      </tr>
      <tr>
        <td style="text-align: right; font-family: Arnprior; font-size: 16px; color: #FFF;"><label for="email">Email:</label></td>
        <td style="text-align: left"><span style="text-align: right">
          <input name="email" type="text" id="email" size="40" maxlength="80">
        </span></td>
      </tr>
      <tr style="text-align: left; font-family: Arnprior; color: #FFF;">
        <td><p><br>
        </p></td>
        <td><label>
          <input type="radio" name="RadioGroup1" value="Owner of Truck" id="RadioGroup1_0">
          <span class="radio2">Owner</span></label>
          <br>
          <label>
            <input type="radio" name="RadioGroup1" value="Customer" id="RadioGroup1_1">
            <span class="radio">Customer</span></label></td>
      </tr>
      <tr>
        <td style="text-align: right">&nbsp;</td>
        <td style="text-align: left">&nbsp;</td>
      </tr>
      <tr>
        <td style="text-align: right">&nbsp;</td>
        <td style="text-align: left">&nbsp;</td>
      </tr>
      <tr>
        <td style="text-align: right">&nbsp;</td>
        <td style="text-align: left">&nbsp;</td>
      </tr>
    </table>
  </div>
</blockquote>
</body>
</html>

Last edited by PixelPusher; 08-26-2011 at 03:38 PM.
oxman67 is offline   Reply With Quote
Old 08-24-2011, 02:55 AM   #2
Gold Member
 
leroy30's Avatar
 
Join Date: Mar 2010
Location: Auckland, New Zealand
Posts: 456
Default

If you had an example on the net it would be much easier to have a look at it for you!

Have a look at google chromes developer tools... I believe you can change styles and css values on the live website to see their immediate effect in a web browser...
leroy30 is offline   Reply With Quote
Old 08-24-2011, 03:52 AM   #3
Platinum Member
 
CaldwellYSR's Avatar
 
Join Date: Jun 2011
Location: Riverton, WY
Posts: 658
Send a message via AIM to CaldwellYSR Send a message via Skype™ to CaldwellYSR
Default

Simple answer..... don't use tables.

Check this out learn it, love it
Fireproofgfx likes this.
CaldwellYSR is offline   Reply With Quote
Old 08-24-2011, 02:50 PM   #4
New Member
 
Join Date: Aug 2011
Posts: 10
Default

Sorry, I dont have an address or server yet, I have been testing it on my local php mySQL sever I setup.

I will try the CSS idea, when I create the Div tags will I just insert the same info I had in my table in the Div tag?
oxman67 is offline   Reply With Quote
Old 08-24-2011, 03:34 PM   #5
New Member
 
Join Date: Aug 2011
Location: Belgium
Posts: 5
Default

Quote:
Originally Posted by CaldwellYSR View Post
Simple answer..... don't use tables.

Check this out learn it, love it
Indeed.. Div's will do the job in this case.
Jeroen07 is offline   Reply With Quote
Old 08-24-2011, 05:26 PM   #6
New Member
 
Join Date: Aug 2011
Posts: 10
Default

I inserted a div tag and put a margin to top and left so it lined up how I wanted it... put random jibberish in it... previewed in firefox and it still moves depending on the size of the viewport...
oxman67 is offline   Reply With Quote
Old 08-24-2011, 06:19 PM   #7
New Member
 
Join Date: Aug 2011
Posts: 10
Default

Can anyone give me some code to use in the div tag to hold the div in the correct position? please. Thanks

Here is an image of the page... I am trying to set a div/table/etc... inside the blue box and ask for first name, last name, and all of the jazz... and then once they fill it out hit a send button and it will email their information to me.
I have the php setup to send the information to me I just have to link it to the text fields and radio buttons once I get them inserted, and keep them in the correct place.


Last edited by oxman67; 08-24-2011 at 06:41 PM.
oxman67 is offline   Reply With Quote
Old 08-24-2011, 08:05 PM   #8
New Member
 
Join Date: Aug 2011
Posts: 10
Default

Getting ready to purchase my domain and host... would you guys suggest automated site backup?
oxman67 is offline   Reply With Quote
Old 08-24-2011, 08:14 PM   #9
Silver Member
 
Join Date: Jul 2011
Posts: 162
Default

I never really needed automated site back up unless you will store like a gigabyte of data, then it will take you forever to re-upload it. Or if you have a lot of content added by other users, then it might be wise to have automated back up. Otherwise I dont think its necessary. Just make sure you have a back up of your site on your hard drive and it should be fine.
__________________
http://www.skepticize.me
Absolution is offline   Reply With Quote
Old 08-24-2011, 11:29 PM   #10
New Member
 
Join Date: Aug 2011
Posts: 10
Default

Thanks Absolution! Eventually it will have users and stuff so I got it. It was $13 per year...




any ideas on the code?
oxman67 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:28 AM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.