Avatar of Peter Chan
Peter Chan
Flag for Hong Kong asked on

Problem to Linkbutton

Hi,
Using these
       
.lb_log{
            background-image: url("../pict/Key_16x16.png");
            background-repeat: no-repeat;
            padding-left: 15px;
            text-decoration: none;
            top: 30px;
            left: 1145px;
            width: 60px;
            height: 30px;
            font-size:large;
            font-weight:bold;
        }    
		...
                            <asp:LinkButton ID="lb_user_acc" 
                                Text = "登录"
                               CssClass="lb_log" 
                               Font-Names="Arial Unicode MS" 
                               Font-Bold="true"
                               Font-Size="10pt" 
                               ForeColor="#5637D4"
                               OnClick="lb_log_Click" 
                               runat="server"/>
							   ...

Open in new window

the word is displayed like
1
while I want the word be displayed horizontally. what to adjust?
.NET ProgrammingJavaScriptWeb Development

Avatar of undefined
Last Comment
Peter Chan

8/22/2022 - Mon
Hans Langer

in your style you are defining width of 60 pixels ( width: 60px;),  maybe the character is too big to fit 2 on the 60 pixels and that is why it move it to the new line. Can you try with more width?
Peter Chan

ASKER
Thanks.
I adjust the width (in css) from 60px to 80px. But the problem persists.
ASKER CERTIFIED SOLUTION
Member_2_6293206

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Peter Chan

ASKER
Thanks all.
I did adjust the codes. But now the picture file does overlap with the Text like
https://dl.dropboxusercontent.com/u/40211031/tt340.png

using these codes.
        .lb_log{
            background-image: url("../pict/Key_16x16.png");
            background-repeat: no-repeat;
            padding-left: 7px;
            text-decoration: none;
            top: 30px;
            left: 1145px;
            width: 80px;
            height: 30px;
            font-size:large;
            font-weight:bold;
        }    
		...

Open in new window

what to adjust?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy