• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

want to remove this hardcoding Ie &nbsp

 
J radolf
Ranch Hand
Posts: 121
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


so can i move this   and write it somewhere. so that it can be just called instead of writing in several places??

[edited to escape nbsp]
 
J radolf
Ranch Hand
Posts: 121
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are lots of spaces(nbsp) in line 3

i dont want to hardcode it everywhere . i want to keep it as a separate model so that we can use it elsewhere??

anybody with ideas?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33691
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on why you need the spaces. If they are for presentation, you could use css instead of  . If it is part of the text name, you could import it in a JSP (if it is a dynamic page) or write it out using JavaScript if not.
 
J radolf
Ranch Hand
Posts: 121
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your Reply

its for presentation purpose

actually its for a menu.

so we have a menu

say File when you click file

i have in submenu

Read >
Write >

so the space(nbsp) i used inside <a> Read nbsp nbsp gt </end of a Tag>

 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Learn about CSS's margins and padding

Eric
 
J radolf
Ranch Hand
Posts: 121
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Please can anyone paste a small css sample code.
 
J radolf
Ranch Hand
Posts: 121
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


i have added the following css file.

is there any way i can add gt symbol from html to css ??

i want to keep it in a separate css so am asking this question
 
J radolf
Ranch Hand
Posts: 121
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there any way in css alone where i can adjust the space because pre element will have to adjusted in html for spaces.

is there any way i can adjust in css alone like can i make a independent css which wil take care of the spacing?
 
J radolf
Ranch Hand
Posts: 121
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



now how can i represent these whitespaces in a separate css?

please give me some sample code.

 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator




Eric
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic