Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
 
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		
- 
				
				I honestly have no idea how people do that... If it's a button... It figures out the width itself. So you shouldn't bother putting a width except in certain situations! Margin:0 auto would still work
 
 Mental
- 
				
				@donkeyScript yeah, that's a bug with apple phones safari,
 
 If you define a width for a button and the text is bigger then the container it jumps the text to the right as if you put margin left (dodgy)
 
 But you don't need to define width for a button in the op image if you don't set it,it figures out width by itself.
Related Rants

















 What only relying on JavaScript for HTML form input validation looks like
What only relying on JavaScript for HTML form input validation looks like
 How to vertically center in css..
How to vertically center in css..
Yeah no
undefined
css
fail
html