Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1188 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Trouble with Inputs in IE

Thread title: Trouble with Inputs in IE
Closed Thread    
    Thread tools Search this thread Display Modes  
02-16-2007, 07:13 AM
#1
aLx is offline aLx
Status: Senior Member
Join date: Jan 2006
Location: USA
Expertise:
Software:
 
Posts: 922
iTrader: 13 / 100%
 

aLx is on a distinguished road

Send a message via AIM to aLx

  Old  Trouble with Inputs in IE

Hey everyone! Im having a little trouble styling input fields in IE take a look please. It looks fine in FF but in IE the submit button is dropped down below the field. If you need me to post a live preview let me know.

Code:
			
<form action="#" method="get" >
<input type="text" name="rssfeed" value="Value" class="rss" />
<input type="submit" value="" class="submit2" />
</form>
Code:
input.rss {
	background:url(images/input.jpg) no-repeat;
	height:45px;
	width:290px;
	border:none;
	padding:10px;
	font-size:18px;
	margin:10px 0 0 0;;
	color:#2876c1;
	}
	
input.submit2 {
	background:url(images/submit.jpg) no-repeat top;
	height:45px;
	width:60px;
	border:none;
	margin:-10px 0 0 -4px;
	}
Edit Heres A Live www.postreader.com

02-16-2007, 03:52 PM
#2
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

Did you try using float: left?

Also use: "cursor: pointer; cursor: hand;" on the submit2 class so it will show up as clickable (this is cross-browser compatible).

02-16-2007, 08:56 PM
#3
aLx is offline aLx
Status: Senior Member
Join date: Jan 2006
Location: USA
Expertise:
Software:
 
Posts: 922
iTrader: 13 / 100%
 

aLx is on a distinguished road

Send a message via AIM to aLx

  Old

A float on the button correct? Ill try it.

02-17-2007, 01:01 AM
#4
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

Yes, and post back.

Ah, noticed you fixed it.

02-19-2007, 05:50 PM
#5
aLx is offline aLx
Status: Senior Member
Join date: Jan 2006
Location: USA
Expertise:
Software:
 
Posts: 922
iTrader: 13 / 100%
 

aLx is on a distinguished road

Send a message via AIM to aLx

  Old

Its still not fixed in IE and the float didnt help. Any other sugestions?

02-19-2007, 06:08 PM
#6
RaZoR^ is offline RaZoR^
RaZoR^'s Avatar
Status: Member
Join date: Feb 2006
Location:
Expertise:
Software:
 
Posts: 191
iTrader: 1 / 100%
 

RaZoR^ is on a distinguished road

  Old

float:left on the text input, float:right on the submit input, then if that plays up a bit, put the 2 inputs in a divider and set a width on it.

02-19-2007, 06:59 PM
#7
aLx is offline aLx
Status: Senior Member
Join date: Jan 2006
Location: USA
Expertise:
Software:
 
Posts: 922
iTrader: 13 / 100%
 

aLx is on a distinguished road

Send a message via AIM to aLx

  Old

Ill give it a try thanks!

02-19-2007, 11:59 PM
#8
RaZoR^ is offline RaZoR^
RaZoR^'s Avatar
Status: Member
Join date: Feb 2006
Location:
Expertise:
Software:
 
Posts: 191
iTrader: 1 / 100%
 

RaZoR^ is on a distinguished road

  Old

Yeah, pretty bored at the moment and trying to find things to do; my idea worked, as I will show

CSS (snippet):
Code:
input.rss{
	background:url('images/input.jpg') no-repeat;
	height:45px;
	width:290px;
	border:none;
	padding:10px;
	font-size:18px;
	margin:0;
	color:#2876c1;
	float:left;
}

input.submit2{
	background:url('images/submit.jpg') no-repeat top;
	height:45px;
	width:60px;
	border:none;
	float:right;
}
HTML (snippet):
Code:
<div style="width:370px;padding:0;">
	<form action="#" method="get">
		<input type="text" id="rssfeed" name="rssfeed" value="Value" class="rss" />
		<input type="submit" value="" class="submit2" />
	</form>
</div>
<div style="clear:both;"></div>
Firstly, there were no need for margins on either of the input elements. If you want a bit of space left above them, just use the divider in my example above to have a top-padding set, that way the gap is the same for both input elements. This fixed a little bug that was occurring after I got the floats working.

The text input is floated left, and the submit input is floated right. These are 'floated' to the left and the right of the divider they're in .

This works for me, although I haven't tried it with the rest of your HTML and CSS coding, but looking at it there shouldn't be any troubles.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed