Main content
Computer programming
Course: Computer programming > Unit 2
Lesson 6: CSS layout- CSS grouping elements
- Challenge: Group the groupers
- CSS width, height, and overflow
- Challenge: The overflowing ocean
- CSS box model
- Challenge: The boxer model
- CSS position
- Challenge: Position planet
- CSS in the wild: Google Maps
- CSS floating elements
- Challenge: Floating clouds
- Using CSS layout properties
- Planning your webpage
- Project: Event invite
© 2023 Khan AcademyTerms of usePrivacy PolicyCookie Notice
Planning your webpage
How can you turn a blank page into the webpage of your dreams? You could just start writing HTML and CSS—changing things along the way, removing things you don't like, adding things you suddenly think of, and rearranging parts of the page.
That's not always the best strategy, however, as it can lead to a lot of wasted time writing HTML and CSS that you later discard. Instead, you should plan your webpage before you actually build it. You can figure out content, layout, and even the look and feel.
Brainstorming
The first step of planning anything is often brainstorming—figuring out anything and everything you might want to do. You brainstorm by drawing mind maps on paper, jotting notes in a document, or by putting post-it notes on a board.
You can brainstorm by yourself or—if you want to multiply the range of ideas—enlist a collaborator to brainstorm with you. While you're brainstorming with a collaborator, use the "Yes, and…" approach. Don't focus on what won't work about your collaborator's ideas; focus on what might work and which related things might work.
After you generate lots of ideas, you'll need to decide which ones you actually want to pursue. Prioritize the ones you're most excited about—try starring them or moving them into a list—and discard the rest or save them for later.
Paper prototyping
A good next step is to create a paper prototype—your webpage, but on paper. It's a sketch of the components of your webpage, with scribbles for content and boxes for elements.
Below is a paper prototype for SF quiche, a web app that will satisfy all your quiche-finding needs:
Since it doesn't take much time to make a paper prototype, you can iterate quickly and not feel too stuck to your original design. You can also make a few different prototypes at once, and you can make prototypes for multiple pages of your site.
After you've made a prototype, you might want to do some user testing. Show the prototype to a friend, then ask them what they'd click first or where their eyes travel to. See if they have any other feedback.
Wireframes
Once you're feeling pretty good about your paper prototypes, you might want to turn them into wireframes. A wireframe is like a prototype, but it's typically digitally drawn and more precise. A wireframe is made up of boxes that represent each part of a page, plus small bits of text and icons as needed. For example, below is a wireframe of our SF quiche app:
This wireframe was created in a popular online prototyping tool called Balsamiq. You can also make wireframes using the shape tools in office tool—like Powerpoint/Keynote—or by using design apps like Photoshop, Gimp, or InDesign. You can also search for more prototyping tools online. Keep in mind that many wireframing apps cost money when you're deciding which to use.
Once you've made your wireframes, you might want to do another round of user testing. Some wireframing tools let you share your wireframes for others to comment on. There are also tools like InvisionApp that let you create interactive wireframes, where clickable areas lead to new screens.
Want to join the conversation?
- I understand how a paper prototype might help in the early stages but I don't understand the purpose of the wireframe. In what scenarios is building a wireframe beneficial?(76 votes)
- When you get into professional web design, someone else will be telling you what they want, and will probably demand a better sketch than what you can do by hand.
People will often want see that you understand exactly what they want, or at least see what you are planning to do, before they will pay you to actually start building the site.(166 votes)
- Are there any good free tools for wireframing?(120 votes)
- GIMP is a free design software.(215 votes)
- I don't know where to ask, but how do I center an image?(8 votes)
- you can do a <Center> <img src="smiley.gif" alt="Smiley face" height="42" width="42">
</center>
of course you can also use .image-class { left: 0; }
You can also try
.centered {
position: fixed; /* or absolute */
top: 50%;
left: 50%;
}
There are lot's of ways to do this tbh. I could think of like ten more ways.. See which one works for you.(13 votes)
- Sorry for this "out of topic" question, but is there any guide for making a CSS template? I'll appreciate any answers for this question.(11 votes)
- go check out https://www.w3schools.com/Css/, that's where I learned all sorts of tricks!(33 votes)
- What was the code used to make the Hopper to keep dancing in the Dancing Party example.(8 votes)
- Good question. It is actually a gif, an animated image. It was just added with a basic <img> tag. https://www.kasandbox.org/programming-images/avatars/Hopper-jumping.gif(21 votes)
- can someone explain more about wireframing, because i can't exactly understand how can we actually use them to create a real website kind of prototype.(8 votes)
- No. The point of wireframing is just to sketch out what you want your final program or website to look like. It's just like a blue print for an architect. The blue print is just a plan for how things are going to look.
There is a lot of high quality software out there just for wireframing because most project managers don't get their programmers to start working until there is at least a basic design of what the project is going to result in.(18 votes)
- what is actually wireframing?(6 votes)
- "A website wireframe, also known as a page schematic or screen blueprint, is a visual guide that represents the skeletal framework of a website. Wireframes are created for the purpose of arranging elements to best accomplish a particular purpose." or basically following The Hacker Supreme's instructions(8 votes)
- How can i put a background image on my webpage?(6 votes)
- I was just about to ask that question. How can I put a background image on my webpage?(6 votes)
- why would I want to ask a question when I got Google?(2 votes)
- Because Google gives you very broad results, meaning you can get confusing or incorrect answers.
asking questions here will allow you to get helpful and specific answers.(11 votes)
- khan academy suggests a wikipedia link for photos, but non of them works when it comes to put then in one of the challenges! I want to do something cool but I'm struggling with this. please help :((4 votes)
- Save your program. Then use its "Help Requests" tab to ask for assistance. That way responders can see your code.(6 votes)