Solved

css Input text - move cursor position

Posted on 2012-04-05
7
2,295 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
ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

809 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