Saturday, 16 May 2015

Week 4 - Mock up coding of website (Part 2)

Note: Web Template 3 from stream was used as starting point and altered.

Below was a quick coding of the website and mock up illustration done in photoshop while Franziska is working on the final layout.

We temporarily used a mock up design from photoshop to place as a background. By using the CSS file, We were able to play around with the margins and alignment of the contents. 

The main problem that we had was the contents does not sync with the background. We wanted the paper dispenser and all the contents to act as one. We had to do a troubleshoot---- working on a small screen and Mac PC with bigger screen. By opening the file on a big screen, all contents scattered all over the page.





Mock up design and coding




Resolution:

By taking some time in playing around with the CSS coding and watching the CSS guide video on stream. We were able to sort how to make the dispenser image contain and be in sync with the HTML contents.


  • The bathroom tiles was set as the stationery background for the body (HTML  page)

  • The Web Template 3 from the stream was divided into 3 sections to achieve the long page layout. We added a 4th section for our website.
  • All four sections were grouped into one and had a class name "sec"
  • By using the "sec" class, we coded the dispenser image to be its background --- acts like the second layer & separate from the bathroom tiles.

  • We also had to make sure that "sec" class has a margin of 0,  for this to move at the centre of the page, no matter how the screen is viewed by the user.

After resolving the problem with the background images, we were able to adjust the margins and paddings of each section. This were coded to match the background. We also put this to test in small and wide screen to make sure the appearance of the webpage will be intact.




No comments:

Post a Comment