Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

Wanted: Service CSS Help Wanted. Simple. Reward.

Status
Not open for further replies.

GUA

Gremlin
Legacy Exclusive Member
Joined
Aug 22, 2006
Messages
1,495
Reaction score
5
I will give a $dnf reward for an explanation/advice here.

http://gua.com/domain-tools/masspay-file-generator/

My inputs are all styled by the same class "iinput" which has a width of 300px.

My submit button is styled by a class "submit-button" which also has a width of 300px.

Yet if you look at the page, the submit button and select button are not the same width.

Why?

Thanks
 

Vorty

DNF Regular
Legacy Exclusive Member
Joined
Nov 4, 2005
Messages
572
Reaction score
0
That happens because by default CSS adds 2px padding to input forms.

To correct, just put 304px in the "submit-button" style (or the other way round, 296px in the input style).

Hope that helps.
 

GUA

Gremlin
Legacy Exclusive Member
Joined
Aug 22, 2006
Messages
1,495
Reaction score
5
The fix is in fact 10px? I was wondering why.. Thanks
 
Status
Not open for further replies.
Top Bottom