+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: text display problem

  1. #1
    Barn Loyal todd2006 is an unknown quantity at this point todd2006's Avatar
    Join Date
    Mar 2008
    Posts
    889
    Rep Power
    4

    text display problem

    Hi,


    I have this code and i need some text next to the drop down. I am attaching the image how it looks like

    the text " Hold Ctrl key 4 multiple " is next to the drop down and it sticks to the drop down i need some space between the text and drop down and its not working here is the css code

    The text scorlls next to the drop down and i want the space to be uniform on the 3 lines where the text scrolls down
    also can i have Hold Ctrl key 4 on one line and then multiple on the second line


    thank you
    todd
    Code:
    .credfont
    {
    
    font-weight:bold;
    font-size:12px;
    padding:0px 0px 0px 4px;
    color: #f00;
    }
    
    <tr class="oddrow"> 
    <td class="lbl" width="152">Subjects:&nbsp;</td>
    <td width="170"><span style="float:left;"><select  name="Subjects" id="Subjects" multiple="multiple" size="2">
    
    <option>Maths</option>
    <option>Science</option>
    <option>PT</option>
    <option>Arts</option>
    
    </select>  </span> <span class="credfont">( Hold Ctrl key 4 multiple )</span>
    
    </td>
    
    <td class="lbl" width="92" > Class:&nbsp;</td>
    <td colspan="2"> <input type="text" class="writein"  name="class" id="class" size="30" value=""> 
    </td>
    </tr>
    
    Attached Images

  2. #2
    Super Sarcasm Mistress mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere's Avatar
    Join Date
    Mar 2008
    Location
    Wide Awake In Dreamland
    Posts
    830
    Rep Power
    8

    is your CSS just sitting at the top of the page? not sure what the issue is ... but i just tested exactly what you have and it's working fine.
    Last edited by mehere; May 7th, 2008 at 01:05 PM.
    Quote of the Month:
    INSIGHT: When the going gets tough, the tough get going. The smart left a long time ago.

    Questions to Ponder:
    Are people more violently opposed to fur rather than leather because it's much easier to harass rich women than motorcycle gangs?

    iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
    copyright © 2008 sbenj69

    Sarchasm: The gulf between the author of sarcastic wit and the person who doesn't get it.

  3. #3
    Barn Loyal todd2006 is an unknown quantity at this point todd2006's Avatar
    Join Date
    Mar 2008
    Posts
    889
    Rep Power
    4

    did you mean if the css was in a include file or at the top of the page

    if thats the case its at the top of the page

  4. #4
    Super Sarcasm Mistress mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere's Avatar
    Join Date
    Mar 2008
    Location
    Wide Awake In Dreamland
    Posts
    830
    Rep Power
    8

    i'm assuming it's between <style></style> tags. i'm not having a problem
    Quote of the Month:
    INSIGHT: When the going gets tough, the tough get going. The smart left a long time ago.

    Questions to Ponder:
    Are people more violently opposed to fur rather than leather because it's much easier to harass rich women than motorcycle gangs?

    iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
    copyright © 2008 sbenj69

    Sarchasm: The gulf between the author of sarcastic wit and the person who doesn't get it.

  5. #5
    Barn Loyal todd2006 is an unknown quantity at this point todd2006's Avatar
    Join Date
    Mar 2008
    Posts
    889
    Rep Power
    4

    yes its in style tags

    see i attached a image mehere there is a break where key 4 can move up next to Hold Ctrl

    in IE it pushes it down to next line

    any other idea

    todd

  6. #6
    Super Sarcasm Mistress mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere's Avatar
    Join Date
    Mar 2008
    Location
    Wide Awake In Dreamland
    Posts
    830
    Rep Power
    8

    okay ... just did some more testing ... you'll need to increase the width of the column or make your font size smaller.
    Quote of the Month:
    INSIGHT: When the going gets tough, the tough get going. The smart left a long time ago.

    Questions to Ponder:
    Are people more violently opposed to fur rather than leather because it's much easier to harass rich women than motorcycle gangs?

    iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
    copyright © 2008 sbenj69

    Sarchasm: The gulf between the author of sarcastic wit and the person who doesn't get it.

  7. #7
    Barn Loyal todd2006 is an unknown quantity at this point todd2006's Avatar
    Join Date
    Mar 2008
    Posts
    889
    Rep Power
    4

    i tried to control the width of the column but it doesnt change as my layout will be messed so i tried my font size to be smaller so i have it like this

    font-size:12px;

    can you tell me how i can have equal spaces around the drop down so my content is not right next to it

  8. #8
    Super Sarcasm Mistress mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere's Avatar
    Join Date
    Mar 2008
    Location
    Wide Awake In Dreamland
    Posts
    830
    Rep Power
    8

    try changing the span tags to div tags ... i'm not a css expert ... but give it a shot.
    Code:
    <div class="credfont">( Hold Ctrl key 4 multiple )</div>
    
    Quote of the Month:
    INSIGHT: When the going gets tough, the tough get going. The smart left a long time ago.

    Questions to Ponder:
    Are people more violently opposed to fur rather than leather because it's much easier to harass rich women than motorcycle gangs?

    iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
    copyright © 2008 sbenj69

    Sarchasm: The gulf between the author of sarcastic wit and the person who doesn't get it.

  9. #9
    Super Sarcasm Mistress mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere is a glorious beacon of light mehere's Avatar
    Join Date
    Mar 2008
    Location
    Wide Awake In Dreamland
    Posts
    830
    Rep Power
    8

    here's what i currently have ... using your column width of 170 ...
    Code:
    <style>
    .credfont
    {
    	font-weight:bold;
    	font-size:12px;
    	padding:0px 0px 0px 4px;
    	color: #f00;
    }
    </style>
    <table width="170px" border="1">
    <tr>
    <td width="170">
    	<span style="float:left;">
    		<select name="Subjects" id="Subjects" multiple="multiple" size="2">
    			<option>Maths</option>
    			<option>Science</option>
    			<option>PT</option>
    			<option>Arts</option>
    		</select></span><div class="credfont">( Hold Ctrl key 4 multiple )</div>
    </td>
    </tr>
    </table>
    
    and the attached is what it looks like.
    Attached Images
    Quote of the Month:
    INSIGHT: When the going gets tough, the tough get going. The smart left a long time ago.

    Questions to Ponder:
    Are people more violently opposed to fur rather than leather because it's much easier to harass rich women than motorcycle gangs?

    iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm")
    copyright © 2008 sbenj69

    Sarchasm: The gulf between the author of sarcastic wit and the person who doesn't get it.

  10. #10
    Barn Loyal todd2006 is an unknown quantity at this point todd2006's Avatar
    Join Date
    Mar 2008
    Posts
    889
    Rep Power
    4

    mehere,

    i tried it but didnt work out

    i have a padding in my code so the words dont stick next to drop down

    what other way can i use because i need some space between the words and drop down

    i have tried margin also but same result

    thanks for all ur help

    todd

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Similar Threads

  1. display problem
    By todd2006 in forum JavaScript Programming
    Replies: 19
    Last Post: May 12th, 2008, 03:08 PM
  2. display problem with drop downs
    By todd2006 in forum JavaScript Programming
    Replies: 3
    Last Post: May 5th, 2008, 06:31 PM
  3. IE and Mozilla display problem
    By todd2006 in forum HTML & CSS Help
    Replies: 11
    Last Post: April 18th, 2008, 02:17 PM

Bookmarks

Posting Permissions

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

SEO by vBSEO