Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8270547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:35:54+00:00 2026-06-08T06:35:54+00:00

hello i have the following problem: i do check my form for some php

  • 0

hello i have the following problem:

i do check my form for some php error messages.

in case of no error i simply have my css setting:

.wrapper #frame form fieldset ul input {
    color: #f23;
    font-size: 10px;
    height: 18px;
    padding-left: 5px;
    margin-top: 3px;
    outline:none;
}

and my focus settings:

.wrapper #frame form fieldset ul input:focus{
    color:#fff;
    font-weight: bold;
    border: 2px solid #fff;
}

okay, now i changed this line:

<input type="text" id="normal" name="1" value=""/>

with adding the class of error:

<input class="err" type="text" id="normal" name="1" value=""/>

the problem is that my settings just take place for my class details on the input fields but not on my focus settings:

.err {
    color: #444444;
    font-size: 10px;
    width: 180px;
    height: 18px;
    padding-left: 5px;
    outline:none;   
    background-image: url(../images/error.png);
}
.err input:focus{
    color:#f23;
    font-weight: bold;
    border: 2px solid #f23;
}

so if there is someone who could tell me why this does not work i really would appreciate. thanks a lot.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T06:35:56+00:00Added an answer on June 8, 2026 at 6:35 am

    You have a class of error in your HTML, and in your CSS you’ve set the class to err; if you use the same name consistently (whichever you choose) it should work.

    Your current HTML:

    <input class="error" type="text" id="normal" name="1" value=""/>
    

    …and CSS:

    .err {
        color: #444444;
        font-size: 10px;
        width: 180px;
        height: 18px;
        padding-left: 5px;
        outline:none;   
        background-image: url(../images/error.png);
    }
    .err input:focus{
        color:#f23;
        font-weight: bold;
        border: 2px solid #f23;
    }
    

    Also, in your CSS you’re selecting an input that’s a descendant of an element with the err class-name, not an input element with that class-name. So, altogether you should use something like:

    <input class="err" type="text" id="normal" name="1" value=""/>
    
    input.err {
        color: #444444;
        font-size: 10px;
        width: 180px;
        height: 18px;
        padding-left: 5px;
        outline:none;   
        background-image: url(../images/error.png);
    }
    input.err:focus{
        color:#f23;
        font-weight: bold;
        border: 2px solid #f23;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hello i have the following problem: i have a form in that i would
Hello i have the following problem, I record a video using red5 like this:
I have the following problem. I need to pass the hello function to name
Hello i have the following problem. I have a search page lets call it
I have the following in my controller: return render :js => alert('Hello Rails'); Problem
Hello i'm practising C and i have a little problem with the following code.
Hello I have the following problem. I the site http://www.telefonkoll.se when I enter a
Hello I have a problem with the following code in a GTMTestCase: - (void)testSomething
I'm writing some Boost.Preprocessor metaprogram, and I have the following problem. Consider the following
Hello, I have the following problem: public class TestCombo extends JFrame{ public TestCombo() {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.