almightyegg Posted February 10, 2007 Share Posted February 10, 2007 Problem 1 I have an input <input class="first" type="text" name="name" /><br /> and then the css to make it an image .first { border:solid 0px #fff; margin:3px; height:20px; width:200px; background: transparent url("images/textfield_bg.gif") no-repeat; } The cursor appears just out of the image, would there be any way to make the cursor appear 2 spaces to the right? Problem 2 (With the same code and input area.) If the imputed text is longer than the image the image scrolls along leaving it blank white. Is there a way to make the bg image stay in the same positionwhile the text moves along like a marquee almost. If you don't know what I mean then go here! and type in a load of gibberish intot he input box and you'll see the image scrolls.. Any help will be greatly received Quote Link to comment https://forums.phpfreaks.com/topic/37916-solved-input-question-x-2/ Share on other sites More sharing options...
wildteen88 Posted February 10, 2007 Share Posted February 10, 2007 for first problem add some padding - for best results use this: padding: 2px 8px 0 8px; For your second problem you will probably want to add the fixed right top elements to the background: attribute Quote Link to comment https://forums.phpfreaks.com/topic/37916-solved-input-question-x-2/#findComment-181488 Share on other sites More sharing options...
almightyegg Posted February 10, 2007 Author Share Posted February 10, 2007 the first problem solved thanks. but the second one, once i add fixed the image disappears completely :-\ Quote Link to comment https://forums.phpfreaks.com/topic/37916-solved-input-question-x-2/#findComment-181508 Share on other sites More sharing options...
wildteen88 Posted February 10, 2007 Share Posted February 10, 2007 instead of fixed use right top instead. When you use fixed it fixes the background image to the whole page and not the individual element it was set in. Quote Link to comment https://forums.phpfreaks.com/topic/37916-solved-input-question-x-2/#findComment-181511 Share on other sites More sharing options...
almightyegg Posted February 10, 2007 Author Share Posted February 10, 2007 GREAT! it works! thank you for your help Quote Link to comment https://forums.phpfreaks.com/topic/37916-solved-input-question-x-2/#findComment-181515 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.