Say I have a topic like "Alternative Medicine" , when the browser is smaller the two words break apart. Is there anyway for CSS to tell the words to stay together no matter what?
ok not exactly the desired effect i need basically my setup is like a directory Section topic, topic, two word, topic, topic, topic this is how i would want it ideally. placine the code in body tag gives Section topic, topic, two word, topic, topic, topic Placing it in the a:link does something similar
Alternative Medicine Code (markup): Simply replace a normal space character with a non-breaking space character. cheers, gary
Thank Gary, I had thought about that but the directory style is generated dynamically so there is not a way, at least that I know of, to tell it to put those charcters in. Is the nowrap something I can use in a <td> , if so , I sure can't get it to work.
$topic = str_replace(' ',' ',$topic); Code (markup): Something like this would work in PHP - changing all spaces in a topic name to '$nbsp', but it really depends how much coding experience you have.
yeah that looks rough for me...i would really like to handle it with stylesheets if I can.....this script is done with tables so is there a style for <td>
How about using the no-wrap style in a <div> or <span>? Put those two words in a <div> and use the css code.