Recent Topics

format text in search results

Started by on Oct 20, 2013 – Contents updated: Oct 22, 2013

Oct 20, 2013 05:02    

Search results grabs first few lines of posts it finds but formats text incorrectly : see http://cl.ly/S2Ag

Not sure how to fix since I do not see anything in css file that suggests a connection to this issue ?

Thank you in advance !!

b

Oct 21, 2013 13:38

Need an actual link to see what the problem is

Oct 21, 2013 14:05

Sorry - forgot to include - www.billtoole.net

Use the search function - say "Japan" - and the results will display the odd formatting.

Thank you !!

Oct 21, 2013 14:24

Simply add this in your style.css file
.content_excerpt {clear: both}
Or add a <div style="clear: both;"></div> to seperate them like you did with between posts (after content).

Technically i am not sure why the content excerpt tries to squeeze itself in there, since it doesnt have any floats.

PS: You may want to wrap your posts in a .post container div for both semantics and less complications. Also i'd recommend you use a the clearfix hack instead of using clear:both
CF: http://nicolasgallagher.com/micro-clearfix-hack/

Oct 22, 2013 02:18

Tried

.content_excerpt {clear: both}

to no avail.

I have the same problem in composing a post - unless I introduce at least 2 returns post shows same problem. I did 2 test posts to my blog at billtoole.net to illustrate.

Much appreciate the helping hand :-)

Oct 22, 2013 04:16

You havent added the code into your css file it seems, it doesnt seem to be there.. You'd want to add the .content_full in there too while you're at it

Code

.content_excerpt, .content_full {clear: both}

Oct 22, 2013 04:28

This absolutely fixed it - genius !!

I cannot thank you enough !!


Form is loading...

blog soft – This forum is powered by b2evolution CMS, a complete engine for your website.