Jump to content

form css help


pleek

Recommended Posts

/* By default (td, body..) use verdana in black. */
body, td, th , tr
{
color: #000000;
font-size: small;
font-family: verdana, sans-serif;
}

/* The main body of the entire forum. */
body
{
background-color: #E5E5E8;
margin: 0px;
padding: 0px 30px 4px 30px;
}

/* Input boxes - just a bit smaller than normal so they align well. */
input, textarea, button
{
color: #000000;
font-family: verdana, sans-serif;
}
input, button
{
font-size: 90%;
}

textarea
{
font-size: 100%;
color: #000000;
font-family: verdana, sans-serif;
}

/* All input elements that are checkboxes or radio buttons. */
input.check
{
}

/* Selects are a bit smaller, because it makes them look even better . */
select
{
font-size: 90%;
font-weight: normal;
color: #000000;
font-family: verdana, sans-serif;
}


 

That is the body and form css that i have. If i take out the background color of the body, it fixes the forms to look like normal but then the rest of the theme is messed up.

 

what it looks like now

1211525358.bmp

 

What i want it to look like (how it looks normally

1211527508.bmp

Link to comment
https://forums.phpfreaks.com/topic/106560-form-css-help/#findComment-547653
Share on other sites

You can fix that by adding this to your CSS (lower than your other input and text area declarations)

 

input, textarea
{
   background-color: #FFF;
}

 

Although to be honest, I prefer it the way you have it now! I tried out your site with the inputs the way you want to do it (using the above code), and I think the look you have no matches your site theme better. But, it still looks fine even if you set the inputs to white, so either way is all good.

Link to comment
https://forums.phpfreaks.com/topic/106560-form-css-help/#findComment-548081
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.