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 652235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:15:00+00:00 2026-05-13T22:15:00+00:00

On the page there are links displayed with CSS as buttons: HTML: <a class=button

  • 0

On the page there are links displayed with CSS as buttons:

HTML:
    <a class="button" href="#">Button</a>
CSS:
    a.button {
        display: block;
        position: relative;
        width: 50px;
        height: 50px;
        background-color: $00f;
    }
    a.button:hover {
        background-color: $f00;
    }

I have some main concerns:
The href value is encrypted, thus will appear messy and ugly when the address shows in the browser when the user hovers over the link:

http://mysite.com/shjfgkh53hhsfd9ah390503hh35323j5hj35909ufudufdjj3   

Also the href value will become significantly longer because I can’t transfer POST parameters (everything’s done by GET).

I could however, use this:

HTML:
    <input type="button" class="button" href="#" />

And then set the bg in CSS. I’m just not sure whether using pseudo classes like :hover is correct and standards compliant here. I personally thought :hover, :active, :visited etc were meant for links (i.e. a tags).

Clarifying this would really help me out a lot. Thanks!

  • 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-13T22:15:01+00:00Added an answer on May 13, 2026 at 10:15 pm

    They may not work correctly IE6, but all current browsers support this, and the spec doesn’t forbid it: See here for the spec.

    What matters is what’s supported by browsers. Honestly, if they’re using IE6 and something doesn’t work…in this case it’s not a breaking lack of functionality, your site works just fine even without. I’d say you’re perfectly in the clear here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like my buttons to look like this in HTML: <a href=page.html class=button>Link</a> And
On this page there is a list of footer links that have a little
This is my string: <link href=/post?page=4&amp;tags=example rel=last title=Last Page> From there I am trying
Which is better? 1. = link_to Page, /page, :class => button, :data => {:theme
I have a simple .html page which uses Javascript to display some popups. Now
In an HTML header, I've got this: <head> <title>Title</title> <link href=styles.css rel=stylesheet type=text/css/> <link
There are 3 div s and 3 links. Only one div should be displayed
I have an asp.net page. There is sidebar in which there are several buttons.
I have an index page with three links as follws. When I click the
I have there lines in my RegisterToutes : routes.MapRoute(Pages3, {url1}/{url2}/{url3}, MVC.Page.RedirectTo(), new { url1

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.