GWT tutorial – StockWatcher.
I am overriding StockWatcher.css:
body {
padding: 10px;
}
But no padding is applied, at least on the left, and the whole frame is flush to the left side.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Some panels in GWT use absolute positioning. Applying padding to widgets that are direct children of these panels won’t work. In such situations you use, for example,
You can apply padding and margins to any widget whose parent does not use absolute positioning for its children (e.g. widgets inside FlowPanel or HTMLPanel).