Solved

css Input text - move cursor position

Posted on 2012-04-05
7
2,347 Views
Last Modified: 2012-04-10
Hi,

I have a input text form, i am trying to move the cursor position 12px to the right - i can use padding-left but the text starts overflowing. Does anyone have any solutions to this?

	    <div id="mainTop3">
			<form name='search' method='post' action='#'>
				    
				    <div class='search_box'><input type='text' name='search_box'/></div>
				    <div class='search_button'><input type='submit' /></div>
				    
			</form>
			
	    </div>

Open in new window



css

#mainTop3 .search_box input{height:52px; width:234px; background:url(../images1/search_bar.png) 0 0 no-repeat;margin-top:8px; padding-left:12px; margin-left:200px; float:left; border:0; }

Open in new window

thanks in advance
0
Comment
Question by:MK15
  • 4
  • 2
7 Comments
 
LVL 7

Expert Comment

by:Atique Ansari
ID: 37811648
Please attach the background image as well.
0
 

Author Comment

by:MK15
ID: 37811660
overflow
0
 
LVL 30

Assisted Solution

by:LZ1
LZ1 earned 500 total points
ID: 37811777
Just add padding-right:5px to the CSS.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:MK15
ID: 37811788
I've tried that made no difference - will give it another go
.....just tried it - didn't work
0
 
LVL 30

Expert Comment

by:LZ1
ID: 37811798
Can you attach your actual background image instead of a screenshot?
0
 

Accepted Solution

by:
MK15 earned 0 total points
ID: 37811836
I fixed it by subtracting the left padding value from the width of the box.

thanks for your help
0
 

Author Closing Comment

by:MK15
ID: 37826755
possible solution to the problem - fixed the issue
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CSS issue in Nested Master Pages 9 26
.htaccess css/images no longer loading 4 39
Angular won't showing my array result in HTML 3 27
Wordpress Hacked 1 35
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question