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

Exploring CSS Positioning

Adding the middle column


From:

Exploring CSS Positioning

with Candyce Mairs

Video: Adding the middle column

At this point in building my page, I have a header and a navigation menu on the page. And what I'm going to do next, is add this left column right here of content. So I'm going to begin to build the second column of content. The first column was the navigation menu which is set up right here. So that's where we're heading, is, this particular column of content.
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 middle column

At this point in building my page, I have a header and a navigation menu on the page. And what I'm going to do next, is add this left column right here of content. So I'm going to begin to build the second column of content. The first column was the navigation menu which is set up right here. So that's where we're heading, is, this particular column of content.

Putting that piece together. And this is where CSS positioning starts to get very interesting. So let's take a look at setting this page up. And right now I have a split-view set up, and I created that by going to views, split-screen preview. And I can always get rid of that view, either by sliding it down, kind of out of the way so I can grab it as needed, or, within the view area, just to the right of that preview, is the shortcut for that particular preview. So what it does is toggle it.

So, as you can see on the PC, this is F12. So if I toggle F12 on and off, you can see that view shows and then disappears. So I'll hit F12 to make that disappear. As of right now, here's my HTML page. And what I have are two div tags. So I have the first two boxes on the page, the header box, and the menu box. Now within this menu area, I've created hyperlinks for the various words on the page.

At this point, I do not know what these page names are. So I set up the hyperlink with the anchor tags and I'll just drop in the page names here. So at least it registers as a hyperlink in the HTML piece. So what I need to do is basically this same thing But add content into it, in the form of text. So I will go up here and copy my header div, just because it makes it a little bit easier, I don't have to type it out.

And I'll paste that directly underneath my menu. So you can see each one of these boxes I'm creating, go right in sequence within the HTML side. And this one I'm going to name left because it's the left column. Now within this area I'm not going to have my image. So, I will delete that. What I want to put inside here, is the actual text for that column.

And that text is located in a file called text left column, within your course files. Now, I already have the HTML tags set up within this area, so within code view I'm going to copy all of that content, and I will paste it. So I'll copy it from this page, go over to the header page, and paste this in. So there's my content. It's not perfectly lined up, so what I can do is select this text that isn't in a perfect line of indentation, and just use the tab key to move it over so it's even.

Now you can see this doesn't perfectly want to line up with everything. Each HTML editor kind of has it's own way to go about working with this. What I'm going to do is just use a simple backspace cause it's just an extra space. So there's my content for the left column. Let's take a look. I'll save this, whoops, wrong one. We'll go up to save, and let me put his in the browser and let's check out how it looks now. I'll open this up and there's our page.

Now our page was looking pretty good with just the header and menu but notice what happened to this content. It went down below the menu and goes all the way across the page. That is exactly what a div tag is designed to do. A div tag will place content in its own area on the page. Beginning on its own line and it will go all the way across the page by default. So what you're looking at is exactly what HTML will do using the div tag that we set up.

So we did the div tag here, giving it a name of left, and we also assigned paragraphs within it. So this box is going to go all the way across the page. Now that's something that has to be modified using CSS. Because what you're looking at is exactly what HTML will do. It's what we've told HTML to do by using this div tag and placing these paragraphs inside of it.

And this is the piece that generally tends to throw new people to CSS positioning. The page was looking good by just adding these two, but all of the sudden my page isn't looking so good when you add that third piece. Now this is being pushed down below our content, so we will have to use some kind of CSS in order to modify that. But right now this page is doing exactly what I told it to do within HTML. So I have added the extra div, the third div for the left column. And I've dropped in all the text within that div in order to get the HTML piece set up.

Now it's just a matter of moving on to add the CSS positioning so it doesn't extend all the way across the page, but that is adding the left column within the left field text.

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