A basic with a mobile-responsive layout using media queries (no Bootstrap).
https://doybrian.github.io/Responsive-Portfolio/
-
Created
index.html
,portfolio.html
andcontact.html
for separate pages. -
Recreated basic portfolio site with the following items:
-
A navbar
-
A responsive layout
-
eg. On
xs
andsm
screens, content should take up the entire screen. Onmd
and larger screens, you should have some margins on the left and right side of the screen. Check out various sites on your mobile device versus your computer to see this in action! -
Responsive images
- Used three
@media screen
tags, each with one of thesemax-width
s:980px
,768px
and640px
.
-
980px
is used because you never want any of the content to be cut off. Since the desktop layout is about 960px wide, you want the media queries to kick in before your content gets cut off. -
768px
is about the width of a tablet and640px
is about the width of a phone in landscape.
- Incorporated CSS animations in the portfolio.