I have the following gwt html template in order to set the title of a panel in my project.
@Template("<div>{0}<span style=\"font-size: 11px;\">{1}</span></div>")
SafeHtml method1(String title,String subtitle);
If title=”Hello” and subtitle= “World” for example then the output text of this above format is ->
HelloWorld
I want the output of the above format to be as a space between “Hello”
and “World” ->
Hello WorldHow to insert a space between the above div as we use ‘ ’ in HTML ?
As this is a template to print the title dynamically I cannot use css
for this title. I tried using&however it does not work.
If
doesn’t work, you could addpadding-left: 5pxto your style on the span. I’m not sure what you mean when you say you can’t use css for the title.