File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes multiple lines in button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "multiple lines in button" Watch "multiple lines in button" New topic
Author

multiple lines in button

saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
hi all,

i need to display the button(Non Image) lable in 2 lines using css

i have some solutions(non-standard)
I googled for the solution but ain't getting the exact.


please help me out

here is my non-standard solutions




second solution is
placing this tag



A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61419
    
  67

Originally posted by saikrishna cinux:
second solution is
placing this tag



Does this not work?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
Originally posted by Bear Bibeault:


Does this not work?


yes it worked fine

but i it's not a standar solution to use it because it is dependent on browser

any way i got one solution using css and div tag
but this is also providing some problem

div tag is like a layer in browser.
wheni am using this code i am able to see th ebutton with multiple lines(2 lines) but its overlapping on the other text


please help me out

here is my code



please provide me perfect solution if anybody worked previously on this issue.


thanks a lot in advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multiple lines in button