This repository was archived by the owner on Oct 26, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 43
Html css/week3/berhane #74
Open
bireworld
wants to merge
17
commits into
CodeYourFuture:master
Choose a base branch
from
bireworld:html-css/week3/Berhane
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d96ce4d
Update style.css
bireworld fa2e2ff
Update index.html
bireworld df597a6
index file update
bireworld c52aa70
html update
bireworld b5ffa1c
add comment
bireworld 520b8bd
index update
bireworld 1ca5fbf
index update
bireworld c6e37ca
style update
bireworld 8dabe81
final style update
bireworld 3514b7e
final html update
bireworld ed860e8
add main html and css files
bireworld 1d986d8
update html and css files
bireworld 78302a9
html and css update
bireworld ed080ac
html and css update
bireworld c3671df
initial mobile size
bireworld 010a31a
html and css update
bireworld 10a7295
final html and css update
bireworld File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,61 @@ | ||
/** | ||
* 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. | ||
* | ||
*/ | ||
.body { | ||
background-color: #4a4; | ||
} | ||
.blog-name { | ||
text-align: center; | ||
margin: 30px 8px; | ||
padding: 15px; | ||
border-radius: 5px; | ||
background: #fca; | ||
} | ||
|
||
.article-1 h3 { | ||
text-align: center; | ||
} | ||
h3 { | ||
display: block; | ||
font-size: 1.17em; | ||
margin-block-start: 1em; | ||
margin-block-end: 1em; | ||
margin-inline-start: 0px; | ||
margin-inline-end: 0px; | ||
font-weight: bold; | ||
} | ||
.article { | ||
display: grid; | ||
grid-template-columns: 31vw 31vw 31vw; | ||
grid-gap: 30px; | ||
justify-items: center; | ||
font: 1rem/1.56 "ubuntu", Verdana, Arial, sans-serif; | ||
} | ||
article:first-child { | ||
color: #123; | ||
background-color: #faa; | ||
} | ||
.article_1 { | ||
border-radius: 1em; | ||
text-align: center; | ||
color: #aceef3; | ||
|
||
font-size: 1.5vw; | ||
background-color: rgb(38, 107, 109); | ||
} | ||
|
||
img { | ||
max-width: 50%; | ||
display: block; | ||
height: auto; | ||
margin: 0 auto; | ||
} | ||
|
||
#img-div { | ||
background: green; | ||
padding: 10px; | ||
margin: -10; | ||
height: 10; | ||
} | ||
.rights { | ||
text-align: center; | ||
font: 1.2rem/1.56 "ubuntu", Verdana, Arial, sans-serif; | ||
} | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,83 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
/> | ||
<title>My Blog</title> | ||
<link | ||
href="//fonts.googleapis.com/css?family=Roboto:400,500,300" | ||
rel="stylesheet" | ||
type="text/css" | ||
/> | ||
<link rel="stylesheet" href="css/style.css" /> | ||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> | ||
</head> | ||
<body> | ||
<!-- Add your HTML markup here --> | ||
<!-- Remember: Use semantic HTML tags like <header>, <main>, <nav>, <footer>, <section> etc --> | ||
</body> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> | ||
<link href="//fonts.googleapis.com/css?family=Roboto:400,500,300" rel="stylesheet" type="text/css" /> | ||
<title>My Random Blog</title> | ||
|
||
<link rel="stylesheet" href="css/style.css" /> | ||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> | ||
</head> | ||
|
||
<body class="body"> | ||
|
||
<header class="header"> | ||
<h1 class="blog-name"> Random Blog</h1> | ||
<figure id="img-div"> | ||
<img id="image" src="https://i.pinimg.com/564x/c3/10/1f/c3101fe3211edcc5a47153290e4e8f6d.jpg" alt="Lorem Ipsum" /> | ||
|
||
</figure> | ||
<nav class="navbar"> | ||
</nav> | ||
<div class="article"> | ||
<article class="article_1"> | ||
|
||
<h3>Left</h3> | ||
|
||
<section> | ||
|
||
<p>Donec efficitur massa justo, et dignissim ante pretium id. In lorem magna, commodo vel tristique at, | ||
dignissim ac dui. Fusce ac diam a ex pellentesque porttitor malesuada eget ante. Nam finibus porta mauris. | ||
Pellentesque convallis mi nec massa convallis bibendum. Aenean ornare augue vitae mattis posuere. Lorem | ||
ipsum dolor sit amet, consectetur adipiscing elit. Aliquam metus metus, ornare vitae vehicula ac, lobortis | ||
in ligula.</p> | ||
<a href="https://www.lipsum.com/feed/html" target="_blank">Lorem Ipsum</a> | ||
</session> | ||
</article> | ||
|
||
<article class="article_1"> | ||
<h3>Middle Article</h3> | ||
<section> | ||
|
||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis enim sapien, convallis id aliquet ut, | ||
fermentum at velit. In auctor venenatis feugiat. Nullam pharetra ornare urna a elementum. In convallis | ||
posuere pretium. Nulla mattis molestie tellus, eu gravida diam ultrices vitae. Nunc ultrices, nisl quis | ||
varius fringilla, est ante pellentesque odio, id condimentum est justo nec quam. Orci varius natoque | ||
penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vestibulum et purus ipsum. Maecenas | ||
mauris nisl, fringilla a egestas et, tincidunt vel urna. | ||
</p> | ||
<a href="https://www.lipsum.com/feed/html" target="_blank">Lorem Ipsum</a> | ||
</section> | ||
</article> | ||
|
||
<article class="article_1"> | ||
<h3>Right</h3> | ||
<section> | ||
<p> | ||
Aenean lacinia, justo nec porta tincidunt, elit magna mollis nibh, at vulputate est sem eu lorem. Integer | ||
leo turpis, cursus ut tincidunt at, accumsan quis enim. Donec malesuada porttitor gravida. Ut dictum mi | ||
ornare, egestas tellus nec, euismod dolor. Curabitur ex arcu, consectetur ac porttitor sed, efficitur | ||
placerat justo. Aliquam placerat viverra velit vitae egestas. Duis dapibus ex sem. Aliquam fringilla augue a | ||
nibh aliquet, ut auctor dui rhoncus. Sed tincidunt aliquam ante nec venenatis. Integer aliquet tortor sed ex | ||
pretium, viverra rutrum sem hendrerit. Nunc eu auctor elit, a fringilla risus. Mauris ornare velit sit amet | ||
mi porta, non vestibulum augue faucibus. | ||
</p> | ||
<a href="https://www.lipsum.com/feed/html" target="_blank">Lorem Ipsum</a> | ||
</section> | ||
</article> | ||
</div> | ||
|
||
</header> | ||
<footer> | ||
|
||
<section class="rights"> | ||
All rights reserved by Random Blog. Copyright © 2020 | ||
</section> | ||
</footer> | ||
|
||
</body> | ||
|
||
</html> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer no unit when the value is zero.
margin-inline-start: 0;
Won't break but is an industry standard :)