HTML and CSS Reference
In-Depth Information
form p { font-size: .75em; }
label input { width: 88%; font-size: 1.6em; }
#ask-a-question label { width: 270px; }
#ask-a-question label input { width: 87%; }
#ask-a-question input {
float: none;
margin: 0 auto;
}
#questions li { font-size: 1.125em; line-height: 1.125em; }
#questions li:before { top: 20px; left: 24px; margin-top: 0; }
#questions .vote { margin: 20px 0 0;}
#questions p { width: 210px; margin: 0; }
footer { margin-top: 3em; }
footer ul { width: 300px; }
}
Save, reload, and resize your browser window. The layout is now responsive (see Figure 7-22 ).
Figure 7-22. The questions view at multiple viewport sizes
 
Search WWH ::




Custom Search