This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

Rendering bug with absolutely positioned button tags

  • 1 antwoord
  • 1 het hierdie probleem
  • 6 views
  • Laaste antwoord deur cor-el

more options

I'm using Firefox 10.0.1 and I've found a bug regarding button elements that are absolutely positioned. The problem is setting both the right and left CSS attributes does not affect the width of the button as it should.

Here is some example code to show what I mean (the forum is mangling the html, hopefully you can get the gist of it):

<html>
	<body>
		<div style="width: 500px; position: relative;">
			<button style="position: absolute; left: 0; right: 0;">Test</button>
		</div>
	</body>
</html>

In all other browsers the button will be 500px wide. In Firefox, it will fit to the text.

I'm using Firefox 10.0.1 and I've found a bug regarding button elements that are absolutely positioned. The problem is setting both the right and left CSS attributes does not affect the width of the button as it should. Here is some example code to show what I mean (the forum is mangling the html, hopefully you can get the gist of it):<br /> <br /> <pre><nowiki><html> <body> <div style="width: 500px; position: relative;"> <button style="position: absolute; left: 0; right: 0;">Test</button> </div> </body> </html></nowiki></pre> In all other browsers the button will be 500px wide. In Firefox, it will fit to the text.

Gewysig op deur cor-el

All Replies (1)

more options

Why don't you give that button a width:100% if you want it to take the full width of that DIV container?