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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:21:45+00:00 2026-05-16T05:21:45+00:00

Here is my HTML: <a href=# class=link>small caps</a> & <a href=# class=link>ALL CAPS</a> Here

  • 0

Here is my HTML:

<a href="#" class="link">small caps</a> & 
<a href="#" class="link">ALL CAPS</a>

Here is my CSS:

.link {text-transform: capitalize;}

The output is:

Small Caps & ALL CAPS

and I want the output to be:

Small Caps & All Caps

Any ideas?

  • 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-16T05:21:46+00:00Added an answer on May 16, 2026 at 5:21 am

    There is no way to do this with CSS, you could use PHP or Javascript for this.

    PHP example:

    $text = "ALL CAPS";
    $text = ucwords(strtolower($text)); // All Caps
    

    jQuery example (it’s a plugin now!):

    // Uppercase every first letter of a word
    jQuery.fn.ucwords = function() {
      return this.each(function(){
        var val = $(this).text(), newVal = '';
        val = val.split(' ');
    
        for(var c=0; c < val.length; c++) {
          newVal += val[c].substring(0,1).toUpperCase() + val[c].substring(1,val[c].length) + (c+1==val.length ? '' : ' ');
        }
        $(this).text(newVal);
      });
    }
    
    $('a.link').ucwords();​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 531k
  • Answers 531k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I don't know what level of experience you have with… May 16, 2026 at 11:59 pm
  • Editorial Team
    Editorial Team added an answer This is how I'd go about it if this were… May 16, 2026 at 11:59 pm
  • Editorial Team
    Editorial Team added an answer Here's an answer from the IronPython team which covers the… May 16, 2026 at 11:59 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Here is the deal: My link: <li><% =Html.ActionLink(Scheme, null, null, null, new { @id
I have a table that looks like the following. <tr> <td>Link Name</td> <td><a href=#
I have the following HTML structure: <div><a href=link1>blah</a></div> <div><a href=link2>blah</a></div> <div><a href=link3.swf>blah</a></div> <div><a href=link4>blah</a></div>
I'm pretty new to Perl/HTML. Here is what I'm trying to do with WWW::Mechanize
I wonder if anyone can help. An HTML div in a page of mine
I have a custom jQuery script that works fine in all bowsers but one
I'm trying to work with mytablegrid . There is a working example here On
i wonder if below, generating content the jQuery 1.4 way $(<div />, { class:
What on earth? In posts/_post_brief.html.haml: - title link_to #{post_brief.title} by #{post_brief.user.full_name}, post_brief - content_for
I think I'm using the Users API incorrectly: class BaseHandler(webapp.RequestHandler): user = users.get_current_user() def

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.