The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Float left vs Inline-Block Problems, How to make them stay in place?
CharlesEF
post Apr 16 2020, 04:48 PM
Post #1


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



Hi All,

Once again I find myself in a pickle. I have 6 div's that I want to display as 2 lines of 3 div's each. Each div has a span below the input, to show error messages. This is where the problem is. The div's move around depending on which div's show an error message. I tried both methods and inline-block seems a little better but they move also (I don't think they actually move, they just don't expand the same).

Attached is a sample page that shows what I'm talking about. You will need javascript, just click on a button and the word 'Required.' will show in the error span.
Attached File  example.html ( 6.43k ) Number of downloads: 132



Thank you for any and all help,

Charles
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post Apr 16 2020, 06:31 PM
Post #2


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



I found the fix. Seems all I had to do was define a fixed height to each div. Now the floated div's don't seem to move around anymore.

If this is wrong, please let me know.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 20th April 2024 - 02:46 AM