We have several span's (asp:Label) controls inside a DIV. Is it possible to put a border line on the right edge of the span? All spans are different widths within the DIV. Thanks.
Since I don't want it on every span in the page I created a class named borderright and added it in code but it does not show up. Below is my css and my code.
Member
351 Points
1535 Posts
Border on span
Feb 10, 2017 09:27 PM|dlchase|LINK
We have several span's (asp:Label) controls inside a DIV. Is it possible to put a border line on the right edge of the span? All spans are different widths within the DIV. Thanks.
All-Star
114593 Points
18503 Posts
MVP
Re: Border on span
Feb 10, 2017 09:44 PM|Rion Williams|LINK
Sure, you simply need to set a CSS style for it along with a little bit of padding so that it doesn't clash directly with your contents :
Your selector may need to be a bit more specific based on your exact needs or if you have any other styles being applied to such elements.
Member
351 Points
1535 Posts
Re: Border on span
Feb 10, 2017 10:01 PM|dlchase|LINK
Since I don't want it on every span in the page I created a class named borderright and added it in code but it does not show up. Below is my css and my code.
Member
351 Points
1535 Posts
Re: Border on span
Feb 10, 2017 10:38 PM|dlchase|LINK
I set the style in code as shown below and it works great. Thanks.