Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Using width with border?

22 views
Skip to first unread message

Tom

unread,
Aug 2, 2011, 4:59:36 AM8/2/11
to CSS Lint
Hey there,

I have 2 questions on using width with border.

1. How should I style input-fields with borders without setting a
width on them?
Just setting some padding does not work for form elements.

2. How should I create a page with a wrapper around it, which needs a
border?
e.g. .wrapper { margin: 0 auto; border:1px solid #ddd;width:646px }
Do I have to create additional containers for the border, even if I
don't need them?

Regards,
Tom
Reply all
Reply to author
Forward
0 new messages