开发者

Submit button styled as text - remove text indent in IE

开发者 https://www.devze.com 2023-02-28 16:33 出处:网络
Ive removed the background and border from a submit button so its styled as normal text. FF is fine but IE is indenting the text and I can\'t figure out how to remove this text indent.

Ive removed the background and border from a submit button so its styled as normal text. FF is fine but IE is indenting the text and I can't figure out how to remove this text indent. Thanks

Update - Ive set the padding, margin and text-indent to 0 but no开发者_如何转开发 luck. Ill upload the site so I can post a link soon.

Update 2 - Ah, I just needed to add text-align:left;


have you tried text-indent: 0; padding: 0; in your CSS?

posting some code may help, too.


There's padding on the button in IE. Try setting the padding to 0.

.text-button
{
  padding: 0; /* remove padding */
  border: none;
  background: transparent;
  text-decoration: underline;
}

// The button
<input type="submit" value="Submit" class="text-button" />


I just needed to add text-align:left;

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号