Coder Social home page Coder Social logo

more-css-practice's People

Contributors

zachfedor avatar

Watchers

 avatar

more-css-practice's Issues

CSS Classes

.bottom {
width: 33%;
float: left;
border: solid .5px;
display: inline-block;
padding-top: 3px;
padding-left: 3px;
}
.bottom2 {
width: 33%;
float: left;
border: solid .5px;
display: inline-block;
padding-top: 3px;
padding-left: 3px;
}
.bottom3 {
width: 33%;
float: left;
border: solid .5px;
display: inline-block;
padding-top: 3px;
padding-left: 3px;
}

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!

Using font weight/link over bold

<p><b> Dominik Bouman (CEO, co-founder) </b></p>
<p><b> DOMINIK BOUMAN </b>wafer I love sugar plum chupa chups soufflé tart. Fruitcake croissant bonbon powder jelly beans chupa chups. Tiramisu fruitcake carrot cake tootsie roll cake chocolate I love jujubes. Cookie powder pie brownie bonbon. Liquorice sesame snaps cookie chupa chups dessert chocolate. Cake lemon drops pie jelly beans ice cream I love topping. Oat cake sweet roll apple pie jujubes I love chocolate bar sweet roll gummi bears jelly beans. Tart danish biscuit. I love wafer ice cream chocolate cake chocolate. Muffin sweet roll brownie bear claw. </p>
<p>Gummi bears wafer I love sugar plum chupa chups soufflé tart. Fruitcake croissant bonbon powder jelly beans chupa chups. Tiramisu fruitcake carrot cake tootsie roll cake chocolate I love jujubes. Cookie powder pie brownie bonbon. Liquorice sesame snaps cookie chupa chups dessert chocolate. Cake lemon drops pie jelly beans ice cream I love topping. Oat cake sweet roll apple pie jujubes I love chocolate bar sweet roll gummi bears jelly beans. Tart danish biscuit. I love wafer ice cream chocolate cake chocolate. Muffin sweet roll brownie bear claw.</p>
<p> <b> Jade Baldwin </b> </p>
<p> <b> Jade Baldwin </b> Gummi bears wafer I love sugar plum chupa chups soufflé tart. Fruitcake croissant bonbon powder jelly beans chupa chups. Tiramisu fruitcake carrot cake tootsie roll cake chocolate I love jujubes. Cookie powder pie brownie bonbon. Liquorice sesame snaps cookie chupa chups dessert chocolate. Cake lemon drops pie jelly beans ice cream I love topping. Oat cake sweet roll apple pie jujubes I love chocolate bar sweet roll gummi bears jelly beans. Tart danish biscuit. I love wafer ice cream chocolate cake chocolate. Muffin sweet roll brownie bear claw. </p>

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.

Headings as sections

<h3> About Us </h3>

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.

Class Names

<p class="sweet">I love marshmallow chocolate biscuit marshmallow macaroon lollipop. Biscuit powder sweet cupcake candy brownie wafer candy. Chocolate bar chupa chups dragée tart gingerbread lollipop bonbon tart caramels. </p>
<ul class="wow">

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.