This is a migrated thread and some comments may be shown as answers.

Image in Step Bar

5 Answers 84 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
MBEN
Top achievements
Rank 2
Veteran
MBEN asked on 13 Aug 2020, 12:25 AM

     Hi, Looking at this demo with the Material skin, I was wondering if it was possible to show the text below the image?

https://demos.telerik.com/aspnet-ajax/wizard/overview/defaultcs.aspx?skin=Material

 

5 Answers, 1 is accepted

Sort by
0
MBEN
Top achievements
Rank 2
Veteran
answered on 13 Aug 2020, 12:31 AM

Somehow got posted before I could complete.

I was hoping to get something similar to the attached image. I tried editing the css but it didn't work.

Bonus would be if I could show the Step Counter along with the text below the image. Also attached is a sample of what I could achieve so far. I couldn't get the images to load from the indivvidual images instead of sprite so I am using the ImageURL property of the Wizard.

/****************************************************************************************
 * RadWizard Elements
 ****************************************************************************************/
html .RadWizard{
    font-family: $font-family-sans-serif;
}
 
html .RadWizard .rwzBreadCrumb {
    box-shadow: none;
    border-radius: 0;
}
 
html .RadWizard.rwzHorizontal .rwzBreadCrumb .rwzLink:before, html .RadWizard.rwzHorizontal .rwzBreadCrumb .rwzLink:after {
    width: 900%;
    top: 50%;
    border-width: 5px 0 0;
    border-color: #EAEEF1;
}
 
.html .RadWizard {
    padding: 20px;
    /*border: 1px solid #f1f1f1;
    border-bottom: 0;
    box-shadow: 0 0 0 1px #fff;*/
    box-shadow: none;
    border-radius: 0;
}
 
.html .RadWizard .rwzBreadCrumb .rwzText:before {
    display: none;
}
 
.html .RadWizard .rwzBreadCrumb .rwzLink {
    padding-left: 0;
}
 
 
.rwzImage {
/*    background-image: url(/Images/WizardIcons/enrollment-icons.png);*/
}
 
html .RadWizard .rwzBreadCrumb span.rwzImage {
    /*width: 24px;
    height: 24px;*/
    top: 2px;
    left: 8px;
}
 
html .RadWizard img {
    border-width: 0;
    max-height: 30px;
    max-width: 30px;
    top: 2px;
    left: 8px;
}
 
.html .deferralElections.rwzImage {
    /*    background-position: 0 0;*/
/*    background-image: url(/Images/WizardIcons/DeferralElections_Default.png);*/
}
 
.html .rwzSelected .deferralElections.rwzImage {
    /*    background-position: -25px 0;*/
/*    background-image: url(/Images/WizardIcons/DeferralElections_Active.png);*/
}
 
.html .rwzDisabled .deferralElections.rwzImage {
/*    background-position: -50px 0;*/
}
 
 
.html .payoutOptions.rwzImage {
    /*background-position: 0 -25px;*/
    background-image: url(/Images/WizardIcons/DistributionElections_Default.png);
}
 
.html .rwzSelected .payoutOptions.rwzImage {
    background-position: -25px -25px;
}
 
.html .rwzDisabled .payoutOptions.rwzImage {
    background-position: -50px -25px;
}
 
 
.html .contactDetails.rwzImage {
    background-position: 0 -50px;
}
 
.html .rwzSelected .contactDetails.rwzImage {
    background-position: -25px -50px;
}
 
.html .rwzDisabled .contactDetails.rwzImage {
    background-position: -50px -50px;
}
 
 
.html .confirmation.rwzImage {
    background-position: 0 -75px;
}
 
.html .rwzSelected .confirmation.rwzImage {
    background-position: -25px -75px;
}
 
.html .rwzDisabled .confirmation.rwzImage {
    background-position: -50px -75px;
}
 
 
.html .RadWizard .rwzContent {
    overflow: hidden;
    background-color: #f5f5f6;
    line-height: 2em;
    margin: 0 -20px;
    padding: 0 20px;
}
 
.html .RadWizard .rwzStep {
    height: 100%;
    position: relative;
}
 
.html .RadWizard.rwzComplete {
    padding-top: 95px;
}
 
.html .rwzStep p {
    margin: 0;
    padding: 10px 0;
}
 
.html .RadWizard .complete {
    height: auto;
    padding: 75px 0;
    text-align: center;
}
 
html .RadWizard .rwzSelected .rwzLink .rwzText:before {
/*    display: none;*/
}
0
MBEN
Top achievements
Rank 2
Veteran
answered on 17 Aug 2020, 03:21 PM

Hi Team Telerik,

Any update on this?

0
Doncho
Telerik team
answered on 17 Aug 2020, 04:55 PM

Hi,

In general, Telerik Controls render HTML structures and apply some built-in stylesheets to achieve a certain appearance. If you would like to further customize that appearance, you will need to override the built-in styles. 

To do that, apply a 'strong' enough selectors to override the built-in ones. Check out the following articles for more information:

Sample CSS you can try and customize further for achieving the desired appearance of the HTML elements inside the Step bar:

html body .RadWizard .rwzBreadCrumb a.rwzLink{
    text-align:-webkit-center;
}
html body .RadWizard .rwzBreadCrumb .rwzLink>.rwzImage{
    display:block;
}
html body .RadWizard .rwzBreadCrumb .rwzLink>.rwzText{
    max-width:100%;
}

To sum up, every style can be overridden, if you know what you want to style. For tips and tricks in finding that, you can take a look at the suggestions in the first two points of the Improve Your Debugging Skills with Chrome DevTools blog post explaining how to inspect the generated HTML and check the applied styles for various elements. 

To learn more about CSS styling and using the Browser's developer tools, you may find the following videos useful: 

I hope this will help.

Kind regards,
Doncho
Progress Telerik

0
MBEN
Top achievements
Rank 2
Veteran
answered on 10 Sep 2020, 06:12 PM

This looked great on other browsers but Legacy Edge.

The images and step looks misaligned on legacy edge browser probably because of : text-align:-webkit-center;

Is there an alternative to that for edge? 

0
Doncho
Telerik team
answered on 15 Sep 2020, 03:57 PM

Hi,

Here is another styling approach you can try:

html body .RadWizard .rwzBreadCrumb a.rwzLink > span:last-of-type {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
html body .RadWizard .rwzBreadCrumb .rwzLink > .rwzText {
    max-width: 100%;
}
It has no browser-depended attributes and should work fine on Edge also.

Please give it a try and let me know how it goes!

Kind regards,
Doncho
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

Tags
Wizard
Asked by
MBEN
Top achievements
Rank 2
Veteran
Answers by
MBEN
Top achievements
Rank 2
Veteran
Doncho
Telerik team
Share this question
or