[ 2 posts ]

Winnie

  • Username: thisisahbu
  • Joined: Wed Oct 28, 2009 2:07 pm
  • Posts: 7
  • Offline
  • Profile

Setting the min-width of button on IE

Post Posted: Fri Jun 29, 2012 2:26 pm
+0-
Hi, I am trying to set the min-width of the button. Using the min-width CSS, it works on Chrome, but not IE.

For some reason, in IE, the span is not calculating the min-width correctly:

This is the HTML generated by the YUI button:
<span class="yui-button yui-checkbox-button" id="checkbutton5">
<span class="first-child">
<button name="checkboxfield2" type="button">One</button>
</span>
</span>

This is the styles I have added:
.yui-button .first-child {
min-width: 100px;
text-align: center;
}

.yui-button button{
min-width: 100px;
text-align: center;
}

The button is generated correctly with the min-width. However, the "first-child" span is not. It appends some width to the right.

Winnie

  • Username: thisisahbu
  • Joined: Wed Oct 28, 2009 2:07 pm
  • Posts: 7
  • Offline
  • Profile
Tags:

Re: Setting the min-width of button on IE

Post Posted: Thu Jul 05, 2012 7:13 am
+0-
Please any help will be appreciated. Thanks
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum