On my website, I am attempting to segregate the background into different areas. I am trying to make the pattern area on either side extend horizontally and vertically until of course, it reaches the end of the viewable webpage.
To me this seems like a particularly tricky concept, I thought of using sections on either side but I am just used to positioning elements relatively and I would like it to be precise. I also thought about just going into Photoshop creating an excessively wide and tall pattern and just covering the complete area that way.
These both seem like sub-optimal solutions.
Do you have any recommendations as to how I should set this up?
2
Answers
An easy work around is to set a background to your
body
, then overlay it with a black full-height centered table element. In order to have your .main-section full height, you will need to set yourbody
andhtml
aheight: 100%
.See code snippet.
You can follow this: