Solved

Website display problems. (Form and text).

Posted on 2011-02-24
4
292 Views
Last Modified: 2012-05-11
Hi there,

I am trying to get my text and login form lined up so they all look straight. Left to right across the browser.

Problem #1) In IE the (account login >>) text seems fine in the middle and to the left. But the form seems to (top right) of the browser rather than centered in the middle.

Problem #2) Google chrome and mozilla seem to be ok form wise but text wise the text is aligned to the bottom of the form and same for the (account login > >) text. Rather than in the middle of the input fields.

Thanks for any help.

Website http://www.lilkixx.co.uk/new/
<table width="951" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
    <td><table bgcolor="#FFD200" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="951">

			  <table width="100%" align="center" cellpadding="3" cellspacing="0">
			    <tr>
				<td align="left"><h3>Account Login > ></h3></td>
				  <td align="right">
				  
				    <form>
        <table cellpadding="3" cellspacing="3" border="0">
          <tr> 
            <td><h3>Username:</h3></td>
            <td> <input type="text" name="user" maxlength="10" /> 
            </td>
			            <td><h3>Password:</h3></td>
            <td> <input type="password" name="password"  maxlength="10" /> 
            </td>
            <td> <input type="submit" value="Account Login!" alt="Account Login!" /></td>
          </tr>
        </table>
      </form>
				  
				  </td>
				</tr>
			  </table>
			  
			</td>
          </tr>
        </table></td>
      </tr>


    <tr>
        <td align="left" valign="top"><table width="951" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr>
            <td><img src="images/top-join.gif" width="951" height="2" border="0"></td>
          </tr>
        </table></td>
      </tr>

    <tr>
        <td align="left" valign="top"><table width="951" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr>
            <td background="images/con-left.gif" width="25"> </td>
            <td bgcolor="#ffffff" width="906" align="left" valign="meiddle"> 
              
			  <table width="100%" align="center" cellpadding="6" cellspacing="0">
			    <tr>
				  <td>
				  
				    <h2>Welcome to lilkixx.co.uk</h2>
					Welcome information here...
				  
				  </td>
				</tr>
			  </table>

			</td>
            <td background="images/con-right.gif" width="20" align="left" valign="top"> </td>
          </tr>
        </table></td>
      </tr>

  <tr>
    <td align="left" valign="top"><table width="951" border="0" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td align="left" valign="top"><img src="images/footer-img.gif" alt="" width="951" height="7" /></td>
      </tr>
      <tr>
        <td style="padding-bottom:4px; padding-top:4px;" align="center" valign="top" class="footertext">Copyright &copy 2011 all rights reserved.</td>
      </tr>
    </table></td>
  </tr>
</table>

Open in new window

0
Comment
Question by:james130c
  • 2
4 Comments
 
LVL 1

Author Comment

by:james130c
ID: 34972699
****Update****

I put the text and form inside a div and displayed both the div and form inline. The code below. This seemed to make it how i want it but only in IE! If anyone can help me get the same display for firefox and google chrome etc..?

Thanks.
<table width="98%" align="center" cellpadding="4" cellspacing="0">
	  <tr>
	    <td align="left">
		  <h3>Account Login Area > ></h3>
		</td>
		<td align="right">
		
		  <div style="display:inline;">		  
		  <form style="display: inline;">
            <table cellpadding="3" cellspacing="3" border="0">
              <tr> 
                <td><h3>Username:</h3></td>
                <td> <input class="loginatt" type="text" name="user" maxlength="10" /> 
                </td>
			    <td><h3>Password:</h3></td>
                <td> <input class="loginatt" type="password" name="password"  maxlength="10" /> 
                </td>
                <td> <input class="nomarg" type="submit" value="Account Login!" alt="Account Login!" /></td>
              </tr>
            </table>
          </form>
		  
		  </div>
				  
        </td>
      </tr>
    </table>

Open in new window

0
 
LVL 17

Expert Comment

by:selvol
ID: 34976987
Here's simplified code.   Hope it helps some.




<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content="Selvol">
<title></title>

<FIELDSET >
<LEGEND><b>Step One: Personal Information</b></LEGEND>
<form  action="" method="">
Username: <INPUT class="loginatt" type="text" name="user" maxlength="10" SIZE="20">
Password: <INPUT class="loginatt" type="password" name="password" maxlength="10">
<input class="nomarg" type="submit" value="Account Login!" alt="Account Login!">
</form>
</FIELDSET>

</body>
</html>

Open in new window

0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 34977056
I am curious too. I'll check later
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 175 total points
ID: 34978310
valign="top" would help on the table rows, but your padding is also making it hard
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
specific questions about shipping a coat 4 43
HTML5 Get data in table rows 5 29
Sort Order Icons on HTML Table 3 25
CSS: How do I override in-line styling 11 15
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

823 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question