I am trying to do two things:
- Make a text input take all the space in a div. My current approach is
left: 0; right: 0;
but apparently it's not working. - Put a SVG in a relative position to the conainer
div
in a way that I can move it just under the text inpit (I'm working on a slider component in SVG).
You can see it in this JsFiddle
Any clues for the positioning? clear: both
is of no use to send the SVG to the next line? Can I achieve a relative positioning from the container div
element somehow?
UPDATE:
I've found a workaround for my positioning question (2). To use position: relative
on the container div
and position: absolute
on both child elements (an input
and a svg
). See the updated JsFiddle.
Nevertheless, question (1) remains. How to make the text input fill the whole container div
?