Link to home
Start Free TrialLog in
Avatar of KirtipurItagol
KirtipurItagol

asked on

Simple Syntax Problem!

Hi I have:
out.println( "<td class='td_list_detail_small'>Initial"+ " Additional-Info"+additionalSequence+"</td>");

I want to print Initial on the top and Additional-Info on the bottom. How do i do it, since right now, it is printing on the same line....
Looking forward, thanks...
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Initial<br>
Just add a new line like that +"\n" :

out.println( "<td class='td_list_detail_small'>Initial\n<br>"+ " Additional-Info"+additionalSequence+"</td>");
out.println( "<td class='td_list_detail_small'>Initial<br>"+ " Additional-Info"+additionalSequence+"</td>");
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Giant2
Giant2

is it out of this topic, maybe, or am I becaming more crazy that I relly am?
;-)
>> I want to print Initial on the top and Additional-Info on the bottom.
Do you really mean the bottom of the table's cell?
Then even <BR> won't work
btw, this is an HTML question, no java question
<BR> just ensures the "Additional-Info" to be on the *next* line of the cell, not at the bottom of the cell.

Afaik, I don't think you can have text that is vertically top-aligned and text that is vertically bottom-aligned
**in the same** table cell. But I could be wrong of course ;°)
KirtipurItagol, can you explain why you did accept that specific comment?
(CEHJ, as you know, nothing personal ;°)
Avatar of KirtipurItagol

ASKER

guys, whether it was a java or a html problem, the subject says " a simple syntax problem", it's like a wounded soldier asking for help...thanks a lot for the help guys..giant2 , it's a one line answer, you could've used done that dude without writing a one line comment!! ha ha...peace..
:-)
My point is
1) that for people reading this Q later on, it would have been much better
    to mark the real answer (CEHJ's 1st comment not his 3rd)
2) that "on the bottom" is something else than "on the next line"
zzynx, you're right, I apologize....I mistakenly accepted his comment rather than his answer...i don't know what to do now though!
>> zzynx, you're right, I apologize....I mistakenly accepted his comment rather than his answer
And what about my 2nd point?

>> i don't know what to do now though!
You can ask a page editor/admin (to ask) to reopen this question (but I don't know if that is worth the effort though)

1) Post a zero-point question in https://www.experts-exchange.com/Community_Support/

        Subject: Moderator Please Reopen
        Body: Please reopen this question:
        https://www.experts-exchange.com/questions/21734474/Simple-Syntax-Problem.html

2) Once this question is reopened, you can accept again (marking the right comment)