Search API highlight using the search API module I highlighted the search text. Key words take the whole width of the block, how to insert them in the text? my current setup is:

Highlighting prefix : &lt;p class="views-highlight"&gt;
Highlighting suffix : &lt;/p&gt;  

CSS:  .views-highlight {color: black; background-color: yellow;}

my search results
You should not be wrapping your keywords in p tags. P is a block-level element, and that is why it stretches 100% width of your container.

Use mark, span or any other inline-level element instead.