Jump to content

Recommended Posts

<div style="width:220px;height:75px;">

<div style="width:80px;height:25px;float:left;">KeyAsk</div><div style="width:40px;float:left;"><input type="text" name="Ask" style="width:30px" maxlength="2" value="<?=$rs['KeyAsk']?>"></div><div style="width:100px;color:red;float:left;">Invalid</div>
   
<div style="width:80px;height:25px;float:left;">KeyChange</div><div style="width:40px;float:left;"><input type="text" name="Change" style="width:30px" maxlength="2" value="<?=$rs['KeyChange']?>"></div><div style="width:100px;color:red;float:left;">Invalid</div>

<div style="width:80px;height:25px;float:left;">current</div><div style="width:40px;float:left;"><input type="text" name="current" style="width:30px" maxlength="2" value="<?=$rs['current']?>"></div><div style="width:100px;color:red;float:left;">Invalid</div>

Hi I have done the maths and it does appear to add up.

 

I had an outer div and inside 3 rows of 2 dives float left. This worked fine until  I added a 3rd column to the rows

 

Now the first div of the second row is directly under the last element (Invalid) not returning to the left side of the outer container. Outer container width is 200px and each row of 3 is 80px, 40px, 100px. No border solids to mess it up. Help please

 

TIA

 

Desmond.

 

Link to comment
https://forums.phpfreaks.com/topic/287148-float-left/
Share on other sites

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.