CSS forms - IE displaying other.

This is a discussion on "CSS forms - IE displaying other." within the Web Page Design section. This forum, and the thread "CSS forms - IE displaying other. are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jun 7th, 2007, 20:09
Reputable Member
Join Date: Sep 2006
Location: England
Age: 20
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
CSS forms - IE displaying other.

Please look at the image below, IE is displaying the button wrong, it should be the same as Firefox, what did i do wrong? Thanks.



HTML

Code: Select all
<div id="searchbox">
            <form id="search" action="" method="post">
                <input name="searchitem" id="textarea" type="input"/>
                <input id="go" type="submit" value=""/> 
            </form>
</div>
CSS
Code: Select all
#searchbox{
width: 173px;
height: 25px;
padding: 2px;
background-image: url(images/searchbox.gif); 
}

form#search {
width: 173px; 
height: 16px;
font-family: "verdana";    
font-size: 7px;    
}

form#search input {
width: 138px;
height: 15px;
border: 1px solid #5e5e5e; 
padding: 0 px;
color: #cfcecb;
background-image: url(images/searchbg.gif); 
background-repeat: repeat-x; 
}

form#search #go {
height: 20px;
width: 30px;
margin-left: 1px;
border: 1px solid #5e5e5e;
background-image: url(images/go.gif); 
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jun 7th, 2007, 21:32
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS forms - IE displaying other.

Try adding this to your css
Code: Select all
* {
    margin: 0;
    padding: 0;
}
It might be that IE is adding padding. So the above code starts you out at zero padding and margins..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jun 7th, 2007, 23:38
Reputable Member
Join Date: Sep 2006
Location: England
Age: 20
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS forms - IE displaying other.

I've fixed it now, I did it by adding float:right to the submit button.

Also to get rid of the nasty border and fix it's size, I used the following on the submit button again.

PHP: Select all

border0px none transparent;
border0px hidden transparent
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jun 8th, 2007, 11:28
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: CSS forms - IE displaying other.

Thanks for sharing! Glad you fixed it!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
css, forms

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
JS and Forms roki13 JavaScript Forum 1 Jun 6th, 2007 15:28
Forms nzamusangamungu Web Page Design 9 Nov 17th, 2006 10:31
Forms nzamusangamungu Web Page Design 5 Nov 13th, 2006 13:10
forms mickc90 PHP Forum 3 Aug 1st, 2006 22:06
forms atomicant_2005 JavaScript Forum 15 Dec 9th, 2005 16:09


All times are GMT. The time now is 07:19.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42