J
joachim.feldt
Hi,
I am having problem styling my asp:buttons.
I am using a background image, or several actually depending on what
the button should do.
On the left hand side of the image there is a small icon, for example a
"Save-icon" if it is a save button. Just to the right of the icon the
text "Save" comes.
To prevent that the Save-text displays over the icon I have set the
left padding to 25 pixels and also set the text align to Left.
What I have found out is that the longer text a button has, the larger
padding it gets.
This occurs if I do not style my button at all, so it seems to be a
standard behaviour.
I can just look at the three buttons below when I write this, "Cancel",
"Preview" and "Post message". The margins on "Post message" much larger
than the other two.
I do NOT want set manually set "WITH" on my buttons since my
application is multi language and all texts on labels, buttons etc is
set dynamically. So I do not really know how wide the button should be.
So:
If I have a button with padding-left: 25px, and a long text, "Click
here to do something", this button would look really funny. It takes a
lot of unneccesary space on my pages.
Do you see my problem and can someone please help me??
/Joachim
I am having problem styling my asp:buttons.
I am using a background image, or several actually depending on what
the button should do.
On the left hand side of the image there is a small icon, for example a
"Save-icon" if it is a save button. Just to the right of the icon the
text "Save" comes.
To prevent that the Save-text displays over the icon I have set the
left padding to 25 pixels and also set the text align to Left.
What I have found out is that the longer text a button has, the larger
padding it gets.
This occurs if I do not style my button at all, so it seems to be a
standard behaviour.
I can just look at the three buttons below when I write this, "Cancel",
"Preview" and "Post message". The margins on "Post message" much larger
than the other two.
I do NOT want set manually set "WITH" on my buttons since my
application is multi language and all texts on labels, buttons etc is
set dynamically. So I do not really know how wide the button should be.
So:
If I have a button with padding-left: 25px, and a long text, "Click
here to do something", this button would look really funny. It takes a
lot of unneccesary space on my pages.
Do you see my problem and can someone please help me??
/Joachim