Weekly Assignment 1 Due Date August 26, 2016
Weekly assignment #1 Due date 08/26/2016, by end of class Graded
For this project, you will be creating a responsive website that will be viewed on three different-sized devices.
The following list shows the breakdown of the three devices you will code for:
- Standard website width of 960px (do not plan for devices greater than 1280 px)
- Tablet-size device width greater than 480px and less than 960 px
- Phone-sized device width less than 480 px
You will not be allowed to use any of the following—using any of the following will result in a grade of zero for the entire project:
- Framework for building a responsive website
- Adobe Muse or any software that generates HTML code from images
- Any software or website that creates responsive websites
- JavaScript or jQuery that controls the responsive website
For this assignment, you will be converting the opening page of the website dogfreaks into a responsive website that will be viewed on 2 new device sizes.
You will not change the look of the original site; the purpose is to convert the old site to work on other devices while maintaining the look and feel. You may use HTML, HTML5, CSS, limited JavaScript, or jQuery for content manipulation.
You are required to create two additional CSS files—one for tablet view and one for phone view—and use media queries to switch between them based on browser window size.
Additional requirements include:
- Convert all images to be responsive
- Adjust all text to an appropriate font size for the device
- Create a layout suited to each device
- Remove background images and replace them with CSS colors that closely match
- Remove specified images from the page
- Use @import and Google fonts to select a new font for the tagline
- Create CSS3 buttons around the “Full Story” links with hover effects
Paper For Above instruction
The transition to responsive web design (RWD) has revolutionized how websites adapt to various devices. Ensuring that a website maintains its aesthetic and functional integrity across desktops, tablets, and smartphones is fundamental in today’s digital landscape. This project exemplifies that principle by requiring the conversion of an existing webpage into a fully responsive site without altering its original design; instead, it emphasizes adaptability through thoughtful CSS management.
To start, understanding the core principles of responsive design is critical. CSS media queries enable developers to tailor styles based on screen dimensions, providing flexibility for layout shifts, image scaling, and typography adjustments. The assignment restricts the use of frameworks like Bootstrap, as it aims to reinforce manual control over CSS and media queries, fostering deeper understanding of core responsive techniques.
The initial step involves analyzing the current website layout and identifying elements to be adjusted. All static images used for backgrounds should be replaced with CSS background-color properties, emphasizing the importance of lightweight styling that enhances load times and responsiveness. For images that are integral, such as logos or main visuals, CSS responsiveness must be implemented, typically through setting maximum widths to 100% and height auto adjustments.
Implementing multiple CSS files—one each for the tablet and phone views—allows for clear separation of device-specific styles. Using the @import rule in CSS facilitates modularity and easier maintenance, ensuring the base layout remains consistent while adaptations are managed coherently across different breakpoints. These CSS files should include media queries that switch styling rules when the viewport falls within predefined width ranges (
Typography is vital for readability. Selecting a Google Font via @import and applying it exclusively to the tagline enhances visual hierarchy and branding. Font sizes, line heights, and spacing must adapt fluidly across devices, avoiding clutter on small screens or excessive whitespace on larger ones.
The layout design on each device involves stacking or repositioning elements to optimize usability. For mobile screens, this often means collapsing navigation menus into hamburger icons, minimizing sidebars, and stacking content vertically. For tablets, a hybrid approach balances visibility and interaction, maintaining the original feel but with touch-friendly adjustments.
Furthermore, interaction enhancements such as CSS3 buttons with hover states improve user engagement. Rounded, styled buttons around links like “Full Story” should respond visually to hover events, providing tactile feedback. These effects can be achieved through CSS transitions and border-radius properties, offering a polished user experience without dependance on JavaScript or jQuery.
Lastly, testing across devices and viewports ensures the site maintains functionality, aesthetics, and accessibility. The practice of removing background images and replacing them with CSS color schemes reduces resource load, improves responsiveness, and adheres to best practices in web design.
In conclusion, this project not only reinforces fundamental responsive design techniques but emphasizes manual CSS control and adaptability. By carefully structuring styles for distinct device sizes and focusing on aesthetic retention, the resulting website will be both functional and visually consistent across platforms, fulfilling the core goals of modern web development.
References
- Marcotte, E. (2010). Responsive Web Design. A List Apart. https://alistapart.com/article/responsive-web-design/
- Flanagan, D. (2011). JavaScript: The Definitive Guide. O'Reilly Media.
- Google Fonts. (n.d.). Using Google Fonts with Your Website. https://fonts.google.com/
- W3Schools. (2023). CSS Media Queries. https://www.w3schools.com/css/css_rwd_mediaqueries.asp
- Resig, J., & Bibeault, B. (2013). Secrets of the JavaScript Ninja. Manning Publications.
- Frei, R. (2015). CSS3: The Missing Manual. O'Reilly Media.
- MDN Web Docs. (2023). Responsive design concepts. https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Responsive_Design
- Harrison, N. (2014). Designing with Progressive Enhancement. Smashing Magazine. https://www.smashingmagazine.com/2021/03/responsive-design-progressive-enhancement/
- Clarkson, J. (2018). Practical Responsive Web Design. A Book Apart.
- Kristofer, K. (2019). Mastering CSS for Responsive Design. Packt Publishing.