Start learning with our library of video tutorials taught by experts. Get started
Viewed by members. in countries. members currently watching.
In Preparing CMS Web Graphics and Layouts Using Open-Source Tools, Jen Kramer shows how developers and graphic designers can collaborate to create a great site design that integrates with a content management system (CMS) like WordPress, Drupal, or Joomla!, all using open-source software. This workflow is based on two existing open-source design tools, KompoZer and GIMP. Jen shows how to modify web graphics and create slices with GIMP, and then place these in an HTML page integrated with CSS in KompoZer. Along the way, she discusses web design best practices and special challenges that might arise when designing for CMS software. Exercise files are included with this course.
Just to remind you, this is the webpage that we are now going to build in KompoZer. Now that we have sliced up the big graphic into smaller graphics and we've taken a look at KompoZer and we've got it all set and ready to go. I'd like to draw a picture of what exactly I'm going to build in terms of the way the divs are going to nest inside of this webpage. Some people call it the box model, and I have sketched that out for us here so you can refer to this as we go along.
So we're going to have a big outside div. It has an ID of wrapper. Remember that pound sign in front of any of these words indicates that it's an ID. And these are going to be ID names that we'll assign to the div tags that will hold this content. Remember that a div tag is a block level tag and that it's a generic box tag into which you can put just about anything. That's opposed to the span tag, which is an inline tag. It can also hold anything, but it's designed for inline elements whereas a div is designed for block level elements.
If you don't remember any of that, be sure you go back and watch the HTML titles at lynda.com to come back up to speed on those aspects of HTML. So we have the wrapper div on the outside. Inside we are going to have four divs: header, nav, contentwrapper and footer. Then inside of contentwrapper, we are going to have a div called left and a div called content. So that's the way we are going to set this site up, and now we are ready to get that started in KompoZer.
If you don't already have KompoZer open, go ahead and open it up. The way I am going to start is typing out a line of dummy text for each one of those divs. So. This is the wrapper. This is the header. This is the nav. This is the content wrapper. This is left. This is content, and This is the footer.
Now what I am going to do is I am going to highlight all of this text and I am going to set these all to paragraphs, just like that. All right! Now what I am going to do is I am going to highlight the line for wrapper, and I am going to set this to a div by going down Generic container (div) tag here in this dropdown. Then I am going to highlight all of this text, which ultimately I want to live inside of the wrapper. So I'm going to Edit > Cut and then Edit > Paste.
Now what I am going to do is highlight header, nav, and contentwrapper, and so forth and I am going to set all of these to be divs, like so. If you're following along over here on the side, inside of our outside div, which we'll have to remember for now that it's called wrapper. Notice that there's no IDs assigned yet. This is the first step to getting this process done. And then we're going to have to go and assign these all IDs, so we can tell them apart.
So this first div here is wrapper, inside of that will be header, nav and here's contentwrapper. This is left and content. So what I am going to do now is I am going to take left and content and put those into the contentwrapper. So I am going to highlight these, Edit > Cut, put it into the content wrapper and Edit > Paste. Now I am going to highlight these words again, and I am going to go to the div tag.
So now, once again if we go over here, we have the header, the nav and the contentwrapper, inside of which is left and content. This div is no longer needed. If I come down to the bottom screen here in the breadcrumb and I right-click or Command+click on it, I can just remove the tag right here. Finally, we have our tag called footer at the bottom. So once again, wrapper, header, nav, contentwrapper, left, content and footer.
Now that we have all of our divs in place, let's go ahead and save this. So I am going to click the Save icon at the top of the page. It's going to ask me for the page title. This is the HTML title for our page. I am going to call it Hansel and Petal. It will ask me where I want to save it. I am going to save it right here in Chapter 3, so I am going to call this file index.html, and we are going to save it. All right, now that we have our general structural outline for our webpage, we are in good shape and we are getting ready to assign IDs to all of these divs.
Then we'll drop in graphics and we'll be looking very good by that point.
There are currently no FAQs about Preparing CMS Web Graphics and Layouts Using Open Source Tools.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
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.