Option to render Button as Link for all webparts
I think it would be really nice when Kentico webparts/user controls would be more CSS friendly when buttons get the possibility to render as link.
When using a link (LinkButton), in for instance the ShoppingCart, the developer/designer is free to create his own look and feel button, with for instance CSS like this :
/* #Buttons/Dark green# */
a.ButtonDarkGreen span {
background: transparent url('/images/MAIN/button-darkgreen-left.png') no-repeat 0 0;
display:block;
padding: 0 0 0 8px;
position: relative;
height:21px;
line-height:21px; /* CHANGE THIS VALUE ACCORDING TO BUTTONG HEIGHT */
color:#FFFFFF;
}
a.ButtonDarkGreen {
background: transparent url('/images/MAIN/button-darkgreen-right-arrow.png') no-repeat top right;
height:21px; /* CHANGE THIS VALUE ACCORDING TO IMAGE HEIGHT */
display:block;
text-decoration:none;
float:left;
margin-right:6px;
padding-right:8px; /* CHANGE THIS VALUE ACCORDING TO RIGHT IMAGE WIDTH */
}
As you can see, rendering a <span> in the link would be very nice to support this.
Considering for future
4 comments
-
I like this idea, probably not only with the link/button, but maybe even for other controls. We will see what we can do about it.
-
Christian Lok
commented
Roel for president!
-
Milan
commented
Agreed.
-
Juut
commented
Ik zeg: doen!