css set width as percentage of screen code example Example: css set div width to screen .container{ width:100%; }