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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:20:34+00:00 2026-05-26T02:20:34+00:00

Through CSS i am able to get the v.nativebutton looking the way i want

  • 0

enter image description hereThrough CSS i am able to get the v.nativebutton looking the way i want to, but i can’t get the caption to be right in the middle of my icon/image. Attached is the screen shot of what the button looks like when i add text -align: center to my CSS style sheet. Any idea on how i can set the caption of the button to be right in the middle of my icon image? I want to show the ‘Students’ label inside the circle?

CSS IM USING:

.v-nativebutton-center-text .v-nativebutton-caption {
display: block;
white-space: normal;
text-align: center;
}
.v-nativebutton::-moz-focus-inner {
border: none;
padding: 0;
 }
 .v-nativebutton-center-text span {
  font-size: x-small;
  text-shadow: #fafafa 1px 1px 0;
}
.v-nativebutton-center-text img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5px;

 }
  • 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-26T02:20:35+00:00Added an answer on May 26, 2026 at 2:20 am

    If you have invoked

    button.addStyleName(“center-text”);

    on your native button, the following CSS will center the text:

    The following CSS will center the caption accross line breaks:

    .v-nativebutton-center-text .v-nativebutton-caption {
        display: block;
        white-space: normal;
        text-align: center;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any possible way to apply more than CSS to a control through
Apologies if this is incredibly easy but I want to be able to do
TLDR: I'm looking for a way to serve web resources (css, jpg, etc) from
i've checked through the posts on several sites including stackoverflow but was not able
So my problem is, I want to be able to click through the .row
I have a div tag styled through CSS. I set the padding to 10px
I'm teaching myself CSS through books and websites. I've made a simple site with
I've been browsing through all of the CSS related cross-browser questions trying to troubleshoot
I've been reading through a few tutorials about css, and I saw two different
I'm pretty rubbish with CSS, I muddle through and rather than bash my head

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.