Jump to content

Recommended Posts

Spent ages on this, appreciate some help, it works great in IE but all jumbled up in FF, I am trynig to create a sign-up form using divs and inline styles, although i can "port" the styles to a SS later,

 

 <div style="width:400px;height:20px;">
    <input style="float:right;height:15px;" id="username_sign" type="text" name="username_sign" />
    <div style="width:180px;height:20px;"> Username: </div>
  </div>
  <div style="width:400px;height:20px;">
    <input style="float:right;height:15px;" id="username_sign1" type="text" name="username_sign1" />
    <div style="width:180px;height:20px;"> Password: </div>
  </div>
  <div style="width:400px;height:20px;">
    <input style="float:right;height:15px;" id="username_sign2" type="text" name="username_sign2" />
    <div style="width:180px;height:20px;"> Confirm Password: </div>
  </div>
  <div style="width:400px;height:20px;">
    <input style="float:right;height:15px;" id="username_sign3" type="text" name="username_sign3" />
    <div style="width:180px;height:20px;"> E-mail </div>
  </div>
  

 

 

Link to comment
https://forums.phpfreaks.com/topic/159313-what-is-wrong-with-this-code/
Share on other sites

Not sure what you're talking about, am on FF (3.0 specifically, and I checked 3 other browsers), and it's all fine.

 

Btw, instead of hard coding all of those divs, since they are all the same width/heights, you could just create a style, like:

#divbox{width:400px;height:20px}

<div id="divbox"><input>...</div>

 

the input box hight is too small, text does not fit inside. Your going to need to adjust the font-size inside the input, and style the label text.....but if its part of larger page it might already be done....

 

What are you exactly trying to get this to display ? Maybe post an image of the expected output and we canhelp you make it look like it 'should'.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.