javascript - Aligning Text in CSS/JS menu -


i'm trying align text in menu at: http://crango.uofydating.com/dir/new2.html

  • in 1st tab, want there line break after "item".
  • in 2nd , 3rd tab, want there line break after "this is".

i posted part of menu need with, may bit odd. connected javascript code makes more challenging edit. js can't removed.

here solution

i have created fiddle you

use .html() instead of .text() 

code:

.html('<strong>' + $(this).find('a').html() + '</strong>') 

it works great ;)

check it

fiddle http://jsfiddle.net/krunalp1993/yl6tn/1/

hope helps :)


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -