Results 1 to 2 of 2
  1. #1
    nanimtech is offline Member
    Join Date
    Apr 2008
    Posts
    5
    Rep Power
    0

    Default [SOLVED] alignment problem

    posted Today 2:00 PM Profile for Naresh Talluri Email Naresh Talluri Send New Private Message Edit/Delete Post Reply With Quote Hi folks
    here iam facing one problem in alignment,
    in my jsp i have a data like "name : Naresh" ,like this i have 5-6 rows
    are there, but if i enter more data like "name : Naresh Naresh Naresh
    Naresh Naresh Naresh" , then the data is placed like miss aligned.
    here is my code..
    JSP



    XML Code:
     <tr>
                   <td class="historyformlabel" valign="top"><%=StringUtil.formatStringForValidXml(StringUtil.removeHTMLElement(objHistorySubDTO.getHistoryFieldTitle()))+" : "%></td>
                   <bean  efine id="objOptionDTO" name="objHistorySubDTO" property="optionsDTOData" type="com.acti.jms.objects.DTO.OptionsDTO"/>
                   <logic:equal name="objOptionDTO" property="optionTypeId" value="<%=lResourceBundle.getString("messageform.formfield.telephonenumber")%>">
                   <td class="historyformvalue" valign="top"><%=StringUtil.newFormatPhoneNumber(objHistorySubDTO.getHistoryFieldValue())%></td>
                   </logic:equal>
                   <logic:notEqual name="objOptionDTO" property="optionTypeId" value="<%=lResourceBundle.getString("messageform.formfield.telephonenumber")%>">
                   <td class="historyformvalue" valign="top"><bean:write name="objHistorySubDTO" property="historyFieldValue"/></td>
                   </logic:notEqual>
                   
               </tr>



    CSS



    XML Code:
     .historyformlabel{
        	color:#666666;
        	font: 11px Tahoma, Verdana, sans-serif;
        	font-weight:bold;
        	text-align: right;
        	width:200px;
        }
        .historyformvalue{
        	color:#000000;
        	font: 11px Tahoma, Verdana, sans-serif;
        	width:285px;
        }


    can you please let me know how can i overcome this one...

    -Naresh :)



    [banghead] Posts: 34 | Registered: Oct 2007 | IP: Logged

  2. #2
    nanimtech is offline Member
    Join Date
    Apr 2008
    Posts
    5
    Rep Power
    0

    Default alignment problem

    Hey i had fixed this one
    in the css i had given like "float : right"
    now it is aligning properly


    :)

Similar Threads

  1. [SOLVED] Problem with setVisible(); on LINUX
    By lepetitprince in forum AWT / Swing
    Replies: 9
    Last Post: 11-22-2008, 05:14 PM
  2. [SOLVED] Problem with extending classes...
    By Bizmark in forum New To Java
    Replies: 4
    Last Post: 04-08-2008, 12:21 AM
  3. [SOLVED] file i/o problem
    By aytidaalkuhs in forum New To Java
    Replies: 3
    Last Post: 04-06-2008, 07:42 PM
  4. [SOLVED] Actionevent problem
    By Cymro in forum New To Java
    Replies: 3
    Last Post: 04-04-2008, 08:11 AM
  5. [SOLVED] Problem with code - inheritence
    By yalla in forum New To Java
    Replies: 1
    Last Post: 03-30-2008, 07:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •