From f706104393e18b4cda1710d72ff177ed56eedc8b Mon Sep 17 00:00:00 2001 From: Ade0211 <62720742+Ade0211@users.noreply.github.com> Date: Tue, 19 May 2020 11:36:14 +0100 Subject: [PATCH 1/8] i made changes to my section i separated the h2 and p from the divs --- week2/2-website/css/style.css | 93 +++++++++++++++++++++++++++++++---- week2/2-website/index.html | 44 ++++++++++++++++- 2 files changed, 127 insertions(+), 10 deletions(-) diff --git a/week2/2-website/css/style.css b/week2/2-website/css/style.css index 5cb025ce..c52a81f9 100644 --- a/week2/2-website/css/style.css +++ b/week2/2-website/css/style.css @@ -2,18 +2,93 @@ /* We are using the 'Roboto' font from Google. This has already been added to your HTML header */ body { + background-color: white; font-family: 'Roboto', sans-serif; -webkit-font-smoothing: antialiased; } +nav.nav-links{ + position:fixed; +} +.container { + display: flex; + flex-direction: row; + justify-content: center; -/** - * Add your custom styles below - * - * Remember: - * - Be organised, use comments and separate your styles into meaningful chunks - * for example: General styles, Navigation styles, Hero styles, Footer etc. - * - * - When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex' - */ + } + nav li { + display: inline; + padding-right: 30px; + } + .img1 { + width: auto; + height: 40px; + padding-right: 10rem; + padding-left: 7rem; + transform: translate(y); + } + .image-container { + width: 100%; + position: absolute; + top: 0; + left: 0; + + } + .top-image { + background-image: url('../img/first-background.jpg'); + background-repeat: no-repeat; + background-size: cover; + background-position: center; + height: 700px; + } + + .container { + padding-left: 5rem; + } +.intext { + display: column; + position: absolute; + top: 350px; + align-items: center; + color: white; + text-align: center; + padding-left: 35rem; +} + #button { + height: 60px; + width: 50px; + min-width: 150px; + border: 3px solid black; + background-color:orangered; + align-self: auto; + } + + .link, .links { + list-style-type: none; + padding-top: 20px; + + } + a { + text-decoration: none; + } + +.content{ + width: 100px; +} +h2 { + text-align: center; + padding-top: 30px; +} +.content_image { + display: flex; + justify-content: space-around; +} +.content { +} + + .content { + display: inline-block; + direction: row; + align-items: center; + } diff --git a/week2/2-website/index.html b/week2/2-website/index.html index 876b59d6..12abbd0a 100644 --- a/week2/2-website/index.html +++ b/week2/2-website/index.html @@ -8,10 +8,52 @@ - +
+