dombouman / more-css-practice Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ts-cset/more-css-practice
Recreating CSS Layouts
This project forked from ts-cset/more-css-practice
Recreating CSS Layouts
more-css-practice/airbnb/index.html
Line 40 in 3c00897
more-css-practice/airbnb/styles.css
Lines 70 to 93 in 3c00897
Dom, the point of CSS Classes is so you can create groups of like elements and style them all with one ruleset. Instead of copying and pasting your class over and over, just make one!
.bottom {
width: 33%;
float: left;
border: solid .5px;
display: inline-block;
padding-top: 3px;
padding-left: 3px;
}
Then give all three of those elements the same class
<section class="bottom">
<a href="https://placeholder.com"><img src="https://via.placeholder.com/100x100"></a>
<p class="center"> Homes </p>
</section>
<section class="bottom">
<a href="https://placeholder.com"><img src="https://via.placeholder.com/100x100"></a>
<p class="center"> Experiences </p>
</section>
<section class="bottom">
<a href="https://placeholder.com"><img src="https://via.placeholder.com/100x100"></a>
<p class="center"> Restaurants </p>
</section>
Now all three look the same, and if you need to make a change, you only have to do it once for all of them!
more-css-practice/instagram/index.html
Lines 28 to 32 in 66e6716
You could get rid of the b tag and use font weight in CSS to make it bold like you wanted to or I think it was suppose to be a link so you could use a href instead.
more-css-practice/instagram/index.html
Line 26 in 3c00897
You could have used a better order for your <h?>
elements. If the browser made an outline of your page, it would look like this according to your headings:
1. About
a. Legal
i. About Us
Which isn't really a good representation of what the page is for. A better outline might be something like:
1. About Us
a. The Team
i. Kevin Systrom (CEO, co-founder)
ii. Mike Krieger (CTO, co-founder)
Notice how each child is a sub-section of it's parent. That's how headings are supposed to work. Anything on the a-b-c
level is under the main level and should be given an <h2>
tag. Anything on the i-ii-iii
level is a sub-section of something on the a-b-c
level and should be given an <h3>
tag. Notice how the nav sidebar isn't even showing? That's because it's not really part of the page content, it's just a helpful way to navigate to other pages. So there shouldn't be headings in the nav.
more-css-practice/github/index.html
Lines 17 to 18 in 3c00897
You should probably use more descriptive class names. When you're working with other people, they should be able to look at your CSS and have a pretty good idea of what elements the rules are applying to. If they see:
.sweet { ... }
.wow { ... }
They're going to have to search through all your HTML to spot those words, and they'll resent you for it, haha. Try using names that describe what the element does, like nav-list
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.