javascript - Site container in split-screen -
i don't know tell problem. show image.
this website container must 1000px. left section's background color , right section's background color should go end of screen. left section , right section's background color different each other. don't want use javascript this. there way how in css.
if colors, multiple image or gradient can used. gradient require background-size.
html { background: linear-gradient(to left, gray, gray) center repeat-y, linear-gradient(to left, pink, pink) right repeat-y, linear-gradient(to left, yellow, yellow); background-size: 400px 1px, 50%, auto; } p {width:400px;margin:auto;} /* 400px , single tag demo snippet*/
<p>play in full page & resize window.</p>
codepen play : 100px width bg http://codepen.io/anon/pen/bdeoze
note , multiple gradients or image lays under previous. first shows on top.
Comments
Post a Comment