Start learning with our library of video tutorials taught by experts. Get started

Exploring CSS Positioning

Adding the right column and inserting images


From:

Exploring CSS Positioning

with Candyce Mairs

Video: Adding the right column and inserting images

My web page now has three divs attached to the page, and it's fairly obvious to see them once I've put this page in the browser. And what I'm going to do, is continue to build the divs with content inside of them,and once that's completed, I go ahead and add the positioning piece. So what I'm going to do next is, I have a menu here, I have a left column. And what I want to do, is add a right column that will ultimately end up on this right-hand side underneath the header.
Expand all | Collapse all
  1. 1m 13s
    1. Welcome
      1m 13s
  2. 33m 20s
    1. Why CSS positioning?
      5m 50s
    2. HTML editors
      3m 18s
    3. Getting set up
      3m 39s
    4. Previewing pages in browsers
      3m 51s
    5. Customizing the HTML editor
      5m 32s
    6. Exploring browser variances
      5m 16s
    7. Browser extensions
      5m 54s
  3. 30m 33s
    1. HTML vs. CSS: Which does what?
      9m 55s
    2. HTML div tags
      4m 57s
    3. CSS properties
      6m 21s
    4. The CSS box model
      9m 20s
  4. 28m 46s
    1. Planning the page layout
      3m 47s
    2. Building the header box
      6m 23s
    3. Positioning with HTML
      3m 36s
    4. Positioning with CSS
      8m 21s
    5. Foreground vs. background content
      6m 39s
  5. 25m 44s
    1. Building the menu box
      5m 7s
    2. Adding the menu links
      4m 58s
    3. Formatting the menu with CSS
      6m 43s
    4. Positioning the menu with CSS
      8m 56s
  6. 21m 42s
    1. Adding the middle column
      6m 29s
    2. Creating a CSS rule for the column
      6m 20s
    3. Adding CSS rules for the column
      8m 53s
  7. 19m 49s
    1. Adding the right column and inserting images
      7m 33s
    2. Completing the right-column content
      4m 18s
    3. Formatting the right column using CSS
      7m 58s
  8. 26m 14s
    1. Understanding the float property
      6m 5s
    2. Applying the floats
      6m 1s
    3. Finishing the floats
      6m 24s
    4. Adding CSS properties to the right column
      7m 44s
  9. 30m 59s
    1. Setting up for background colors
      5m 49s
    2. Adding a footer
      8m 50s
    3. Adding the background colors
      7m 20s
    4. Positioning the footer
      9m 0s
  10. 16m 38s
    1. Comparing the web page to the graphic design
      6m 50s
    2. Adjusting the web page as needed
      4m 25s
    3. Adding the final touches
      5m 23s
  11. 2m 43s
    1. Closing thoughts
      2m 43s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
Please wait...
Exploring CSS Positioning
3h 57m Beginner May 24, 2012

Viewers: in countries Watching now:

CSS enables you to control the look and layout of a web page much more precisely than you could with HTML alone, but it can be time-consuming to learn. In this workshop, expert developer Candyce Mairs makes styling a quick and easy process, walking you through the process of adding content to a web page and using CSS to position that content. Candyce explains CSS positioning concepts like the CSS box model, floats, and clears and demonstrates how HTML and CSS work together to create the look of your web page. By speaking the same language as the browser, you can learn to work with the browser to place content accurately and easily.

Topics include:
  • Previewing pages in browsers
  • Customizing the HTML editor
  • HTML vs. CSS: which does what?
  • Building the header area
  • Adding the navigation menu
  • Positioning using a float
  • Adding background colors and images
  • Comparing the web page to the graphic design
Subjects:
Web Web Design video2brain
Software:
CSS
Author:
Candyce Mairs

Adding the right column and inserting images

My web page now has three divs attached to the page, and it's fairly obvious to see them once I've put this page in the browser. And what I'm going to do, is continue to build the divs with content inside of them,and once that's completed, I go ahead and add the positioning piece. So what I'm going to do next is, I have a menu here, I have a left column. And what I want to do, is add a right column that will ultimately end up on this right-hand side underneath the header.

So I'm going to build the right column div. I'll go back to CoffeeCup to do that. Here is my header div, my menu div, and my left div, and my right div is going to go directly below that. So let me make a space down here in order to add that, and I'll go ahead and copy the header div, just because it's easy to do.

There's only a single image inside of it, so it makes it simple to copy and paste it. I pasted it right there. Now that I have that all set up, it's a matter of removing the image itself, or this particular image, and placing the real content that I want inside of this area. Let me rename this area first, so I don't get confused about what I'm doing. Now you can see this little box pops up as I'm inside the id area.

This is a CoffeeCup feature. Quite a few HTML editors do this, as well. What's happening is, I'm adding a new id, so I'm ignoring this. What this little box is doing, and it's usually referred to as a code hint, it's showing me the ids that I have created in CSS already. So if I want to use one of those, I can just double-click it here. Since I don't have an id created for right, it's not showing up inside this box.

I'm just typing it in and ignoring the box. As soon as I click out of that id area, the box goes away automatically. Now within this right-hand column, I have three images and some text I'm going to display. So instead of removing this image tag, what I'm actually going to do, is copy it twice more. And then it's just a matter of pasting in the actual images I want to use. So I'll go ahead and copy this, and I'll paste it right here. I want to make sure that this image that I just pasted is inside my div tag. All content to go inside this column must be located inside my div. I'll go ahead and paste the next one, and I'll do it so you can see what I'm doing. And it's just a matter of, what images am I going to place in this area? So within the right column, the first thing I have are three images. Those three images I'm going to place inside here, are orange clam, and if I move this up, you'll be able to see it.

Let me try and get this in the right spot. There we go. It's the orange clam, the sea horse, and the yellow fish. Now the yellow fish is going to be the first image, so I'll just change this to yellow fish. The next image is going to be orange clam, and I can always change this if I need to in terms of the sequence. So I'll put these in and if they're not quite right, I can just swap them around. And the seahorse.

So I'll put in my seahorse, and there will be some text underneath these images that I'll be placing in here, as well. But let me take a look at my images first. Now I do need to change the Alt text for these images, as well. But let me take a look at this page at this point, before I change anything else. Let's see how our page is doing. Oh my goodness, that looks very interesting, don't you think? (LAUGH) My images are all being stretched.

The reason they're being stretched, is because I used this particular dimension for those images. I need to correct the width and height for these specific images. And if I just remove this, the browser will figure out the width and height automatically. This isn't exactly the way I want to go about doing things. So how else can I do it, so I don't have to figure out the width and height? Well, I can also just drag them out from here.

So if I drag out yellow fish, you can see how it automatically gives me the correct width and height. So what I'm going to do, is put these in the same order, but just drag them out from here. So if you're going to use a previously displayed image, you do have to watch that the width and height are correct for your specific images. I can now delete these three that have the wrong width and height, and I don't have to go back and try to figure out what these correct widths and heights are.

And in this Alt Text, let me see, the yellow fish. It's just a matter of describing it. So for now, I'll just say, fish swimming within coral. And the next one, will be orange clam. And the last one, I'll just say, seahorse. Now normally, I would expand upon these a little bit further, but for the sake of time, I'll just drop that in for now. Now it's a matter of putting my content below this, so let's take a look at the page.

I'll go out to Firefox, once again. Scroll down, and that looks much better. So what I've done, is added the images inside of the div for the right column. It doesn't look at all like it's going to become a right column, but I have the images on the page in the box that I need, and that's what I was trying to do. Get the content into the box, and get the HTML added. Now it's a matter of dropping in whatever else I want within that right column, and we can take it from there. I like to get all of the HTML onto the page prior to adding the CSS piece, just like I've done with all of the other divs on the page. This is the same process I do for every div, no matter where it's located. So that is the right div that will become the right column, with three images located inside of it.

There are currently no FAQs about Exploring CSS Positioning.

Share a link to this course
Please wait... Please wait...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Exploring CSS Positioning.

Return to your organization's learning portal to continue training, or close this page.


OK

Course retiring soon

Exploring CSS Positioning will be retired from the lynda.com library on April 24, 2014. Training videos and exercise files will no longer be available, but the course will still appear in your course history and certificates of completion. For updated training, check out CSS: Page Layouts in the lynda.com Online Training Library.


Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Welcome to the redesigned course page.

We’ve moved some things around, and now you can



Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked