Home > CSS Help > How to Make A Text Link Look Like A Beveled Button With Css

How to Make A Text Link Look Like A Beveled Button With Css

March 19th, 2009

How to Make A Text Link Look Like A Beveled Button With Css



How to article – how to make a text link look like a beveled button with css. A menu on a web page is really nothing more than a list of links. The most accessible…

Source


Similar Posts

    CSS Tip: Create Stylish Menus

    A site’s navigation menu is often one of the most complicated elements on the page because images, JavaScript, links, … “text/css”> a:link { text-decoration: …

    Source

    Css Menu Maker Sample

    Css Menu Maker Examples. Make your website navigation clean and accessible with Web Page Menu! … CSS MENU MAKER. Submenu Theme Toolbox …

    Source

    Don’t forget about :active

    Every once in a while I remember some functionality of CSS that we have had access too for ages yet is rarely taken advantage of in creative ways. The last time I really wrote about this is when I had discovered a way to make other menu items change when you hovered on just one of them, as you can see here in the Advanced CSS Menu Trick article.

    Sometimes rediscovering these capabilities are valuable for creating new ways to add creative touches, such as the parallax scrolling effect. Other times they can greatly improve the usability and user experience of our sites. In some cases they do both.

    I was recently reading through “The Elements of User Experience
    ,” which opens with a compelling story describing why things going wrong in your day could be the fault of poor design in regards to usability. Interestingly enough one of the points covered in this section is the use of feedback as a way to notify a user that something has occurred.

    View the demo here

    Most Web Designers Fail to Take Advantage of :active

    In the case in the book they mention a coffee pot beeping so you know that it was switched on. This same principal of offering a user basic feedback applies to the web, yet we rarely see it used in all instances it can.

    We have had the ability to style a links :active pseudo selector since CSS1, yet when was the last time you actually used it? I will admit that I am a grand offender as well, as I couldn’t tell you. However the value of such a subtle detail can have large benefits  to a users experience of the site. Not to mention it does give another avenue to enrich the interactivity of our interfaces.

    An Common Example

    If you have ever done any usability studies you will have probably run into a situation where things that seem incredibly simple end up taking significant amount of time. One of the most basic of these situations is that of clicking on a simple link. I have many times in my “behavior observing” career seen a user who thinks they have click on a link, despite having missed it slightly.

    What follows is a long pause while they wait for the page to change, before getting frustrated and either blaming the internet, the site, or swirling the mouse to ensure the computer hasn’t locked up.

    This could all be solved by simply giving the user feedback when a button is clicked. Interestingly enough flash based websites have done a better job through out history of accomplishing this than most HTML sites, done so by adding a subtle “clicking” noise as a link is clicked.

    Of course I am not advocating the use of sound (as it fails on several accessibility levels among other issues), however it wouldn’t be hard to give the user some feedback to let them know the link was successfully clicked on.

    What We Can Do

    By using the :active selector in CSS we can give the user some feedback that a link has in fact been clicked. This way if there is any sort of delay the user knows that it is successful loading and they don’t have to reclick the link. This will make the site more usable and as more developers and designers begin to adopt this process the web itself will become more usable.

    Additionally it opens up a new area for us designers to work our creativity. We can now think about what subtle design elements we can give links and buttons to indicate to the user that they have been clicked. In my example, a beveled button appears to be pushed inward.

    It Isn’t Perfect

    Despite the fact that it is a dramatic improvement over not having any feedback and it does give us more room to express our creativity, the functionality isn’t perfect. You may notice in the demo that if you click on a button quickly it changes so fast you might not even notice. You may not realize that there is even an effect giving you feedback.

    Regardless, using :active will still enhance the user experience. Even if only 10% of your users notice it is worth the time and effort put into it. Additionally users who are less familiar with computers and the internet will be more likely to hold the mouse button down longer and thus notice the effect.

    Consider Adopting it as a Regular Practice

    I really advocate the adoption of it as normal standards based markup. If it becomes a convention than users will expect some sort of notification that a link was clicked and even it happens to fast on the pages that load right away, they know to look for it.

    View the demo here

    Read More

    If you use rollovers for links

    … Navigational Links. CSS Button Style Links: Simple. CSS Button Links with Borders … If you use rollovers to change text format, consider using CSS rollovers. …

    Source

    CSS rollover buttons

    Learn how to make rollover buttons without JavaScript … Our CSS button allows for both a graphical image and text to be within the link. …

    Source

    pixelspread: CSS Drop Down Menu

    note: this is an exercise, not the perfect drop down menu. 98 css. Chris Rodgers … I wrote an article on pure CSS dropdown menus: link. Examples: link. link …

    Source

    Projectseven.com – Tutorials: CSS Link Styles

    Links are links because they are wrapped inside anchor <a> tags: … CSS Link Styles- Defined. Next: Creating the Default Link Selectors …

    Source

    Pure CSS Image Rollovers

    … an ordinary link into a button with image rollovers using nothing but css. … have is a bunch of links and an image, what really ties this together is CSS 2. …

    Source

    Pure CSS Image Rollovers

    … an ordinary link into a button with image rollovers using nothing but css. … have is a bunch of links and an image, what really ties this together is CSS 2. …

    Source

    The Components of a Link [HTML Element: A]

    A commented link compendium explaining … Hint: frames are evil, use CSS instead. … If the page’s text color is black, ‘anchor text’ becomes a hidden link. …

    Source