Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-12-2011, 01:46 AM   PM User | #1
N8W
New to the CF scene

 
Join Date: Jul 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
N8W is an unknown quantity at this point
Tables not displaying correctly in Chrome and Safari

It works great in Firefox, IE, and even on my iPhone (Safari), but it's having problems in Chrome and on my friend's Mac (Safari).

I have a form with 2 tables inside. The first table is aligned left at 47% of the width. The second table is aligned right at 47% of the width.

It should look like this:





But instead looks like this in Chrome and Safari...it appears that it's centering both tables instead of aligning them left and right to give 2 separate columns.



Any ideas? Please help...thanks!

Here is some of my stripped down code:

-----------------------------------
Code:
<div id="FormLayer" style="position:absolute; width:680px; height:455px; z-index:3; left: 65px; top: 330px; border:0">
    <form action="form.php" method="post" name="orderform" id="orderform">
      <input type="hidden" name="recipients" value="email.com">
	  <input type="hidden" name="required" value="actor:Actor's Name, email:Your Email=confirm:The emails you entered did not match, show:Name of the Show, episode:Your Episode|date:Air Date, character: Character's Name, description: Description of Scenes">
	  <input type="hidden" name="good_url" value="success.htm">


      <table width="47%" align="left" border="0" cellspacing="0" cellpadding="5">
        <tr>
          <td><div align="left" class="style3">
		  <label for="actor"><span class="style2"> Actor's Name:</span></label> 
		  </div>
		  </td>
        </tr>
        <tr>
          <td><input name="actor" type="text" id="actor" size="40" maxlength="50"></td>
        </tr>
		
	  
	  <table width="47%" align="right" border="0" cellspacing="0" cellpadding="5">
        <tr>
          <td><div align="left" class="style3">
		  <label for="character"><span class="style2"> Character's Name:</span></label> 
		  </div>
		  </td>
        </tr>
        <tr>
          <td><input name="character" type="text" id="character" size="40" maxlength="50"></td>
        </tr>
		
		
	  </table>
	   		
    </form>
N8W is offline   Reply With Quote
Old 07-12-2011, 08:56 AM   PM User | #2
abduraooft
Supreme Master coder!

 
abduraooft's Avatar
 
Join Date: Mar 2007
Location: N/A
Posts: 14,678
Thanks: 158
Thanked 2,182 Times in 2,169 Posts
abduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really niceabduraooft is just really nice
Don't you know why using tables for making layout is very bad? I'd recommend you to have a look at
http://www.alistapart.com/articles/p...ccessibleforms
__________________
Quote:
The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)
abduraooft is offline   Reply With Quote
Reply

Bookmarks

Tags
browser compatibility, form, table

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:42 PM.


Advertisement
Log in to turn off these ads.