PDA

View Full Version : Multiple spaces show as Single only


irishblue
09-03-2007, 03:03 PM
Hi there, I currently have this guitar section in my forum where I post a library of chords posts. However, in vbulletin posts, they do not seem to show multiple spacings, e.g. you press the space bar 3 times, but it only shows a SINGLE spacing between the words. The spacing is important for the correct chords to appear above the corresponding lyrics.

for example:
D Em G
And I'd give up forever to touch you
Bm A G
'Cause I know that you feel me somehow
D Em G
You're the closest to heaven that I'll ever be
Bm A G
And I don't want to go home right now
Em should be above "forever" and G above "touch" on the first line.


Is there an easier way to overcome this besides using other characters to replace the spaces? I tried searching for spacing issues but didn't come up with anything relevant.

Lynne
09-03-2007, 04:37 PM
html treats multiple spaces as one space unless you use the <code> tags around it. So

D Em G
And I'd give up forever to touch you
Bm A G
'Cause I know that you feel me somehow
D Em G
You're the closest to heaven that I'll ever be
Bm A G
And I don't want to go home right now

osayidan
09-03-2007, 04:41 PM
Using the info from the above post, you can edit the <code> tab to say "Chords:" or whatever you wish it to say, and edit to css to make the box a little more pleasant to look at.

irishblue
09-04-2007, 12:29 AM
thanks very much guys!
I tried it and it seems to work. Like osayidan says, I think I need to edit the css cos the wider font used in the code box seems to misalign it quite a bit, though the multiple spaces are appearing now. hurray! :D

*edit:
can I ask where I can edit the CSS to change the fonts for the <code> bbcode? I tried searching through AdminCP -> Styles and Templates but didn't seem to find anything that defines it for the bbcodes. Is there somewhere else I should be looking?