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

  • SEARCH
  • Home
  • 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 6788419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:29:01+00:00 2026-05-26T17:29:01+00:00

A lot of my page’s features (text) include css hover and active. BUT They

  • 0

A lot of my page’s features (text) include css hover and active.

BUT

They will only work if I first hover over a certain word that seems to trigger the others.

Why is this?

In my case #input1 has an active part that when clicked on the border changes colour.
But this will not work until i hover my cursor over the footer text.

Thanks!

James

Here is the html:

<html>
<head>
<link href="cloud.css" rel="stylesheet" type="text/css" />

</head>
<body>


<div class="center1"style="margin-top: 300px;">
<form>
<input type="text" class="input1" autofocus="autofocus">
<input type="text" class="input2">
</div>


<div class="footer" style="position:absolute;bottom:0;">
<div class="footer1">

&nbsp;&nbsp;&nbsp;<div id="footer1text">
<a href="aboutus.html " style="text-decoration:none;">About Us</a></div>
&nbsp;&nbsp;&nbsp;<div id="footer1text">Accessibility</div>
&nbsp;&nbsp;&nbsp;<div id="footer1text">Recruiters</div>
&nbsp;&nbsp;&nbsp;<div id="footer1text">Contact Us</div>
</div>
<div class="footer2">
&nbsp;&nbsp;&nbsp;<div id="footer2textcopyright">&copy; 2011 -</div>
<div id="footer2text">Privacy</div>&nbsp;&nbsp;&nbsp;

</div>
</div>


</body>
</html>

css:

 body {
margin: 0;
padding: 0;
}

input:focus {
outline: none;
}

.center div {
 display:inline-block;   
}

.center {
text-align:center;
width:100%px;
margin:0 auto;
}

.center1 div {
 display:inline-block;   
}

.center1 {
text-align:left;
width:1200px;
text-align:center;
width:100%px;
margin:0 auto;
}

.footer {
background: #FFFFFF;
border-top: 1px solid;
color: #e6e6e6;
height: 30px;
width: 100%;
position:absolute;
float: left;
margin: 0px 0px 0px 0px;
padding:0;
display: table;
}

.footer1 {
background: #FFFFFF;
height: 30px;
width: 350px;
float: left;
margin: 0px 0px 0px 0px;
padding:0;
display:table;
}

#footer1text2 {
font: 13px helvetica;
color: #0040FF;
display: table-cell;
}



.clickhere {
font: 13px helvetica;
color: #0040FF;
text-decoration: underline;
}

#footer1text2:hover {
font: 13px helvetica;
color: #0040FF;
text-decoration: underline;
}

#footer1text {
font: 13px helvetica;
color: #0040FF;
padding: 8px 3px 3px 3px;
display: table-cell;
}

#footer1text:hover {
font: 13px helvetica;
color: #0040FF;
padding: 8px 3px 3px 3px;
text-decoration: underline;
}

.footer2 {
background: #FFFFFF;
height: 30px;
width: 130px;    
float: right;
margin: 0px 0px 0px 0px;
padding:0;
display:table;
}

#footer2text {
font: 13px helvetica;
color: #0040FF;
padding: 8px 3px 3px 3px;
display: table-cell;
text-align: right;
}

#footer2text:hover {
font: 13px helvetica;
color: #0040FF;
padding: 8px 3px 3px 3px;
text-decoration: underline;
}

#footer2textcopyright {
font: 13px helvetica;
color: #151515;
padding: 8px 3px 3px 3px;
display: table-cell;
text-align: right;
}

.input1 {
height: 40px;
width: 280px;
background: #FFFFFF;
border: 1px solid #bdbdbd;
border-top: 1px solid #A4A4A4;
font: 21px HelveticaNeue-Light;
color: #151515;
text-align: left;
}

.input1:active {
height: 40px;
width: 280px;
background: #FFFFFF;
border: 1px solid #e6e6e6;
border-top: 1px solid #A4A4A4;
font: 21px HelveticaNeue-Light;
color: #151515;
text-align: left;
}

.input2 {
height: 40px;
width: 280px;
background: #FFFFFF;
border: 1px solid #bdbdbd;
border-top: 1px solid #A4A4A4;
font: 21px HelveticaNeue-Light;
color: #151515;
text-align: left;
}
  • 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-05-26T17:29:02+00:00Added an answer on May 26, 2026 at 5:29 pm

    you are expecting input1:active to work like .input1:focus

    Change:

    .input1:active {
      height: 40px;
      width: 280px;
      background: #FFFFFF;
      border: 1px solid #e6e6e6;
      border-top: 1px solid #A4A4A4;
      font: 21px HelveticaNeue-Light;
      color: #151515;
      text-align: left;
    }
    

    to:

    .input1:focus {
      outline: none;
      height: 40px;
      width: 280px;
      background: #FFFFFF;
      border: 1px solid #e6e6e6;
      border-top: 1px solid #A4A4A4;
      font: 21px HelveticaNeue-Light;
      color: #151515;
      text-align: left;
    }
    

    PS

    Fix your code, you need to close that form tag, and should probably do the same with your inputs. Also there should be a space between the style declarations in your code

    <div class="center1" style="margin-top: 300px;">  <!-- added space between class and style declarations -->
      <form>
        <input type="text" class="input1" autofocus="autofocus" /> <!-- close with slash -->
        <input type="text" class="input2" /> <!-- close with slash -->
      </form>  <!-- close the form -->
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First tab on my page has a lot of content, including text and pictures.
I have a HTML page that scrolls up and down (not a lot, but
I'm doing the following: First, inject HTML into the page (a lot) which then
I have one page that will contain a lot data. Outline of the page
I have a page with a lot of text and a couple pictures (like
I have an HTML page with lot of tables. Among that I have a
If a page is called that requires a lot of processing and the user
Please let me know why there is lot of white space below the page
On my web site I want to serve user a page with a lot
A lot of the time I will have a Business object that has a

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.