Jump to content

What is wrong with this code


rv20

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'.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.