Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: inline-block elements causing line break

Christopher Denby pro asked 7 years ago


I'm not absolutely sure this is an MDB issue, but perhaps I could get some assistance with this:

Inside a modal, I have a search field (text input). I want to have the fa-search icon right beside the input box. But I keep getting line break after the <i>

 <i class="fa fa-search"></i>
 <input type="text" onkeyUp="HandleAddItemFromSearchBox(this);"/>

I've tried to force style="inline" to each of the items, but I can't seem to get them on a single line. In chrome, if I set the style of the input to display: inline!important, the resultant display is still inline-block. I clearly don't know what I need to do to get rid of that.

For the time being, I've wrapped it all in a table row with two tds, but that's really sloppy and I'd like a proper fix for this.

Any ideas? Thanks.

 


Marta Wierzbicka staff answered 7 years ago


Hi, have you tried to use code from our documentation of bootstrap search? I think it may help you. Best, Marta

Christopher Denby pro commented 7 years ago

At the moment, I can't search your mdbootstrap.com site (502 bad gateway). Can you give me a link to that Bootstrap search?

Marta Wierzbicka staff commented 7 years ago

Here: https://mdbootstrap.com/components/bootstrap-search/


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags