For the last 3 hours I’ve been tearing the hair out of my head trying to figure out what I’m doing wrong. I’m fairly new to web design and have decided create a simple application for internal use at my place of work.
The problem I have is I’m trying to place a search input field within the tagline of my application (see attachment) but the input field refuses to go into the bar nice and neatly. The label ‘Search’ places fine but the input just won’t go in, I’ve tried everything. I’d like it to be placed right of the label but also need everthing to float nicely as I have a liquid layout and would like the application to scale nicely with different resolutions.
To get a container (in this case #tagline) to contain its content (i.e. to stop floated content hanging outside of the container) there are various methods, but the easiest is to add this to the container CSS:
Thanks very much for trying to help me figure this one out.
I’ve included the code you advised and it seems to have helped abit (see attachment). I’m still unable to resolve/understand why the search input field refuses to sit inline and to the right of the seach label.
I made the changes you recommended but it still wouldn’t work. So I then decided to isolate the problematic code from the rest of the app and hey presto it worked. This then steered me towards it being something else in my CSS. I then began commenting/testing and found the culprit: