-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Columns don't seem to work properly when used in the top-bar #8105
Comments
I think that the better form ever been use navs, but, i don't know why Zurb change this. |
@SalahAdDin sorry but could you elaborate on what you mean by this? |
The This CSS will work around the issue: .top-bar .input-group-field {
width: 100%;
} Can you try switching from using collapsed rows to make your input group, and instead use the new input group, and let me know if that looks right? If it doesn't, take a screenshot so we can see at what's wrong. |
@gakimball thanks for getting back to me! That worked as far as autosizing goes but I still cant get it to align horizontally with the rest of the top-bar elements. <header class="top-bar">
<div class="row">
<!-- LEFT- - - - - - - - - - - - - - - -->
<div class="top-bar-title"><%= image_tag 'logo.png', alt: 'JamNet', id: 'logo' %></div>
<div class="top-bar-left">
<div class="row">
<div class="large-6 columns">
<div class="input-group">
<input class="input-group-field" type="number">
<div class="input-group-button">
<input type="submit" class="button" value="Submit">
</div>
</div>
</div>
</div>
</div>
<!-- RIGHT- - - - - - - - - - - - - - - -->
<div class="top-bar-right"> Here it is with top-bar . input-group-field { width: 60% } And here I tried removing the button. width is still at 60% here, not sure why it changed size again. And also here, where i put width back to 100% and tried butting the form in a column. The form doesn' <div class="top-bar-left">
<div class="row">
<div class="large-6 columns">
<div class="input-group">
<input class="input-group-field" type="number">
<div class="input-group-button">
<input type="submit" class="button" value="Submit">
</div>
</div>
</div>
</div>
</div> |
I think you need to restrain the width of the entire You probably don't need a column to do it. You might be able to set just Let me know if that helps! |
@gakimball I wasn't able to get this to work when setting width to a percentage, and while it lined up when using a specified value this ended the responsiveness of the input group. I was able to get the elements to line up by setting the .top-bar.left width to 35% but when resizing the window the rate at which the input group shrinks is less than the rate that the top-bar-right elements are moved to the left, causing them to be shifted down at certain sizes. Heres a video: https://vid.me/pbkf Any idea on what I could do to fix this? |
Im trying to implement an autosizing search bar w/ attached button with the following code:
It works fine on its own, but the second it gets added to the top-bar the size becomes fixed.
I figured this was just because top-bar > input { width: is set to 200px by foundation, however when this is disabled, although the size changes, it becomes smaller, which is strange because the css width value is now 100%.
The text was updated successfully, but these errors were encountered: