Prevent Image Stretching |
Prevent Image Stretching |
Christian J |
Oct 20 2017, 09:54 AM
Post
#21
|
. Group: WDG Moderators Posts: 9,658 Joined: 10-August 06 Member No.: 7 |
Here's a probably better one:
CODE div { width: 250px; background: pink; } label { width: 100%; background: #ccc; } input {width: calc(100% - 30px);} <div> <label> <input type="text" name="" value=""> <img src="small.gif" alt=""> </label> </div> |
Lo-Fi Version | Time is now: 26th April 2024 - 02:19 PM |