ClearField
New Member
EDIT: Added jsFiddle: http://jsfiddle.net/gdHuh/On my page there is a title with a bottom border. There is padding between the title and the border. Floating to the right on the title area, touching the bottom border, is a search box. Here is what it looks like:
However, when the title and search box text are too long, then part of the title text is hidden by the search box:
This is what I want it to look like in cases like this:
Here is my HTML:\[code\]<div class="row"> <div class="column column8"> <h1>Internship Reviews & Rankings</h1> </div> <div class="findTop column column8"> <div class="greyShaded findTab"> <img class="verticalBottom" src="http://stackoverflow.com/questions/14043241/images/blueMagnify.png"/> <a>Find an Internship Program</a> <img class="verticalTextTop" src="http://stackoverflow.com/questions/14043241/images/greyArrowheadRight.png"/> </div> </div></div>\[/code\]And CSS:\[code\]/* More Specific CSS */ .findTab{ float: right; margin: 0px 5px; padding: 5px 10px; font-weight: bold; line-height: 24px; border-left: 1px solid #ddd; border-top: 1px solid #ddd; border-right: 1px solid #ddd; background-color: #f5f5f5; font-family: "Helvetica Neue", arial, helvetica, sans-serif; font-size: 13px;}.findTop{ border-bottom: 1px solid #ddd; margin-top: -23px;}/* More general CSS */.row { clear: both; width: 100%; position: relative;}.column { margin: 0 15px; float: left; border: 0; padding: 0; position: relative;}.column8 { width: 610px;}h1{ font-size: 28px; line-height: 32px; margin: 0px; padding: 0px; font-family: "Helvetica Neue", arial, helvetica, sans-serif; font-weight: bold;}\[/code\]How can I change the HTML and CSS so that the elements will be laid out correctly?