Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Form style problem in IE
Old 10-04-2010, 02:58 PM Form style problem in IE
Average Talker

Posts: 29
Name: Rhowena MacCuish
Trades: 0
Hello
I have created an HTML form and styled it using CSS. All works fine except for this one style:
input {
background-color: #EFEFEF;
}
It works in FF but not in IE. In IE it keeps the default yellow colour. Why is IE doing this and is there a way to get it to accept my chosen colours?

Thanks.
rhowbust is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-04-2010, 03:11 PM Re: Form style problem in IE
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Let's have a URL where we can SEE it or post all of the html and css.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-04-2010, 04:40 PM Re: Form style problem in IE
Crimson's Avatar
Skilled Talker

Posts: 56
Name: Connor
Location: United States
Trades: 0
I don't think the default background-color for inputs is yellow, even in IE. You might have some other code on your site that's conflicting and confusing IE, but we'd have to see your site to know for sure.
__________________

Please login or register to view this content. Registration is FREE

I solve code problems, browser compatibility (including IE 6), Wordpress trouble, the works.
Crimson is offline
Reply With Quote
View Public Profile Visit Crimson's homepage!
 
Old 10-04-2010, 07:21 PM Re: Form style problem in IE
Average Talker

Posts: 29
Name: Rhowena MacCuish
Trades: 0
Here is a link to the html test page:
http://www.rhowbustgraphics.co.uk/Rh...ontactform.htm

And the CSS:
@charset "utf-8";
/* CSS Document */

body
{
font-family: Verdana, Geneva, sans-serif;
color:#FFFFFF;
background:#000000;
margin: 0;
padding: 0;
text-align:center;
}

div.container
{
width: 785px;
Height: 490px;
margin: 0 auto;
margin-top:20px;
background-image:url(../images/Logo.png);
background-repeat:no-repeat;
border: 1px solid #CCCCCC;
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
text-align: left;
}

div.header
{
height:68px;
Border-bottom:3px;
border-bottom-style:groove;
border-color:#CCCCCC;
}

div.left
{
float:left;
width:210px;
margin:0;
margin-top:70px;
margin-left:5px;
padding:5px;
}

div.content
{
margin:5px;
padding:40px 10px;
}

div.box
{
width: 530px;
height: 340px;
margin: 5px 30px 30px 230px;
padding: 1px;
background-image:url(../images/BoxBG2.png);
background-repeat:no-repeat;
}

div.box p,h1,h2,h3,h4,h5,h6,td,th
{
margin: 10px;
text-align:left;
padding-top:20px;
padding-right:20px;
}

div.form
{
width: 530px;
height: 298px;
margin: 40px 30px 30px 230px;
padding: 1px;
background-image:url(../images/BoxBG.png);
}

div.form p,h1,h2,h3,h4,h5,h6,td,th
{
color:#333333;
text-align:justify;
padding-left: 3px;
padding-right:10px;
}

div.galleryleft
{
float:left;
width:50px;
margin:0;
padding:5px;
}

div.gallerycontent
{
margin-left:300px;
padding:5px;
}

div.footer
{
height:30px;
width:785px;
margin: 0 auto;
padding-bottom:10px;
border: 1px solid #CCCCCC;
text-align: center;
}

a:link {
color:#CCCCCC;
text-decoration: none;
}
a:visited {
color: #CCCCCC;
text-decoration: none;
}
a:hover {
color:#FFCCFF;
text-decoration: none;
}
a:active {
color: #CCCCCC;
text-decoration: none;
}

a:link.box{
color:#000000;
text-decoration:underline;
}
a:visited.box{
color:#000000;
text-decoration:underline;
}
a:hover.box {
color:#FFCCFF;
text-decoration: none;
}
a:active.box{
color:#000000;
text-decoration:underline;
}

/* contact form css*/
.cflite {
width: 500px;

}
.cflite_td {

font-size:12px;
}
input {
background-color: #EFEFEF;
}
textarea {
background-color: #EFEFEF;
}
.cflite p {
padding:4px;
}
.cflite label {
padding:4px;
}
label {
padding-right:10px;

}
.required {
font-weight:normal;
}
.required_star {
font-weight:normal;
}
.not-required {
font-weight:normal
}


Any help much apprecieted.

Last edited by rhowbust; 10-06-2010 at 12:39 PM.. Reason: additional text
rhowbust is offline
Reply With Quote
View Public Profile
 
Old 10-07-2010, 06:00 AM Re: Form style problem in IE
Kelpie's Avatar
Skilled Talker

Posts: 82
Name: Andrew
Location: SW Scotland
Trades: 0
Google toolbar (or anything else that autofills forms) can cause this, as it uses a yellow background to highlight input boxes which it detects as autofillable.

Adding !important to the style declaration should prevent it from being overridden.
Code:
input {
 background-color: #EFEFEF !important;
}
But maybe the issue should be whether you should prevent the highlighting - if users want to they can alter their own setttings. Users often get irritated by websites which seek to block their settings or make their choices for them.
As you are using black text, visibility isn't a problem against a yellow background, so personally I'd just leave it be.
Kelpie is offline
Reply With Quote
View Public Profile
 
Old 10-09-2010, 07:10 PM Re: Form style problem in IE
Average Talker

Posts: 29
Name: Rhowena MacCuish
Trades: 0
That did the trick. Thank you! :-)
rhowbust is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Form style problem in IE
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 2.40137 seconds with 12 queries