Jump to content

Recommended Posts

You're throwing a lot of CSS at this problem. If you have a problem, adding more CSS rarely ever makes things any better.

Rethink how your different blocks of content are arranged.

If you want the border to span the width of the input as well as the button, don't put the border on the container.
If you want the button to sit next to the input, don't use absolute positioning.
If you want a gap between the input and the button, don't add padding to the inside of the input.

Learn about margins vs. padding, about inline-block, and if you want bonus points, about flexbox.

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.