-
Notifications
You must be signed in to change notification settings - Fork 15
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
Define clearBoth class #66
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the underlying issue being corrected by this change?
So if you do a clearboth and then add some text right underneath it (for example), the text will still be floated just like the item before it. Prob easiest way to see is just put some content on an ezpage, float some things, do a clearboth and then add some content underneath that. You'll see the floats are not cleared. |
Here's a way to dup the issue: If you modify bootstrap's version of tpl_product_info_display.php to add some text right after the clearBoth following Ask a Question, you'll see the text is still floated. |
There needs to be a way to get that to render properly using clearfix. One of the tenets of the BootStrap template instituted by Ray Barbour is that the stylesheet.css is kept to a minimum and the Bootstrap classes are maintained. |
Right now there are 43 references to clearBoth in bootstrap/templates, but this class is not defined so it won't work the way people expect. You could change all clearBoth classes to clearfix, but then you'd still be in trouble if template_default had a template which was not overridden that referred to clearBoth. I think my fix is the least intrusive but it's your call. |
I can see the need for defining the |
Nah, I'll back that out. So now the PR has just the CSS change. |
This class is used in a number of template files, both in bootstrap and template_default, so it needs to be defined.