Take this simple HTML: And, some basic styling: It looks like this: Now, we want to center this text vertically. The first modern approach you can take is with flexbox. Just add these two lines to .parent: And, you get this: Simple. It’s very similar with CSS Grid: And, you can add as much text as you want and it’ll get vertically-centered properly. Like this: So, there you go. That said, if you want to go on learning even more HTML and CSS, check out my Website Template course on Skillshare. You’ll learn CSS Grid, CSS transitions, asynchronous requests in
Let’s start with the HTML: So, now we want to style the placeholders themselves. If you want to keep it simple, most modern browsers support this: You can use the ::placeholder pseudo-class like any other. For older browser support it looks like this: So, let’s look at a real-world example: A simple form. Nothing fancy, but notice the placeholder text for the required email field is a different color. This is one simple example of how you might use something like this. Here’s the full HTML: And, here’s the full CSS: So, there you go. Now, speaking of real-world examples,
Let’s take this simple HTML structure: The first method involves some straight-forward CSS: Doesn’t get much simpler than that: And, if it this is all you need to do, you can probably stop here. But, sometimes what you’re actually trying to do is a little more complicated and you need some more flexibility. Enter CSS Grid: Here, we’re creating a grid with 1 column that fills the entire space of the parent DIV. Then, a child DIV with a 60% width. And, using justify-items to center the child DIV. This might seem like overkill for something this simple, but it
Forget personal taste. I’m telling you as sure as I’m sitting here… whatever your personal thoughts about the differences between this before and after… one will get you, “Um well… something just feels off.” And, the other: “Wow! Clean, fresh. Amazing!” It’s just how people are. Anyway, here’s the before: And, here’s the after: This is a template I’m working on for a new course I’m doing. And, the difference is a single CSS declaration, but it’s light-years in terms of how it looks and how clients will react to it. The code? body, p, h1, h2, h3, h4, h5,
In this responsive web design tutorial, you’ll learn how to build a responsive menu. You’ll learn: how to target different breakpoints with media queries how to write the CSS to “flip” the menu from vertical to horizontal view at those breakpoints how to use jQuery to create a responsive navigation icon that toggles the mobile menu Watch the tutorial below: Links mentioned in the video: Discount link to Rob’s Complete Web Developer Course My review of the the Complete Web Developer Course My web developer resources page with more code snippets Here’s the code I used in the video: If
The simple secrets to high-paying freelance clients
What makes clients willing to pay $5,000, $10,000 even $20,000 and up for your services? Download and install my mobile app and I’ll show you. It’s free. Just click the button below:
WHAT OTHERS ARE SAYING
John did an outstanding job on my project. I highly recommend him and look forward to working with him on future projects.
Not only is John a very talented programmer and developer, he is also an excellent communicator. He has a talent for taking complex subjects and communicating them in terms that anyone can understand. This is a rare combination. This ability has enabled me to take my skills and knowledge to the next level. Thank you John for for all that you do.
John has a relaxed and engaging manner. His advice is solid and the explanations are well thought out.
I recommend John every chance I get. If every person I worked with were as committed to excellence, punctuality, value, and unquestionable integrity… the world would be a better place. Highest recommendation.
John Morris is exceptional in his ability to give focused insight into Freelancing and starting one’s business. His direct methods inspire confidence in his honesty.
I’m a fan. I have completed several of John’s courses. I find him very knowledgeable and he has a great delivery.
John is top-notch and a great guy to work with.
John has a habit of over-delivering on the expectations he sets up. That’s why he’s the best.
John is an excellent teacher.
John is a man of integrity, who gives generously of himself to projects and people he cares about.
John has a particular knack for the development and training of others.
John has provided expert knowledge and advice on multiple occasions that have helped me better serve my clients. John is a Rockstar!
John is amazing at building membership sites. He converted one of my sites over from it’s existing (hardly working) platform over to the clean and simple to use WishList membership platform. I highly recommend using John and WishList for any of your membership site needs.
John is a fantastic and patient tutor, who is not just able to share knowledge and communicate it very effectively – but able to support one in applying it. However, I believe that John has a very rare ability to go further than just imparting knowledge and showing one how to apply it. He is able to innately provoke one’s curiosity when explaining and demonstrating concepts, to the extent that one can explore and unravel their own learning journey. Thanks very much John!