Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
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.
Now that we have got our content and our images in place in this document, it's time to get the content area itself in shape. We said we wanted a left column and a right column, and right now we have graphic, which is the commitment to the environment graphic which is going all the way across the page, and underneath of that is our other content. So we need to get these floated side-by-side. So let's start by editing the left column. This is of course a CSS problem, so we are going to click on our CSS icon and we are going to go to the left ID and we are going to go to Box.
We will set the width of our box to 173 pixels. That's because that's the width of the graphic that we have inside of the left column. See how the red lines have just tightened up right around that graphic? We are going to assign some padding to the left side as well. We will put 20 pixels of padding at the top and we will put 20 pixels of padding on the left, so that our graphic doesn't run right up against the edge of the page. Finally we are going to float this to left by going to Float and choosing Left.
What a Float does is it takes the div that was in place before and it pulls it out of what's called the normal flow of the document. That means that it floats in place and the rest of the document that is within the normal flow flows around the floated element. That's what you see going on here. You can see our content flows around our column just like this. Now there is nothing wrong with what we have done here. We could certainly leave it like this.
We would probably want to put a little padding in between the graphic and the text and there is nothing wrong with going with a design like this. But what our graphic designer specified was actually something that looks like a left column and a right column. So we are going to need to do a little bit more work here so that our text doesn't wrap around that left column. That in fact they are separate. So I am going to come back to the content div and for the content div I am going to give it a width as well. We will make it 660 pixels, and I am going to set the background color to whitish, which is f8f8f8.
I am going to give it some padding. Let's put 20 pixels of on all sides, and finally I am going to float this to the right. So you see now that we have our left column and our right column. Notice too something is going on in the back here. That's actually our footer that is showing up behind the content area here. Probably not what we really intended. We really wanted the footer to be at the bottom, but again since we have pulled our left column and our content out of the normal flow, the rest of the document is tightening up behind it.
What we need to do with our footer is tell it to clear so that it will fall in after the floated elements. So we are now going to go to footer and we are going to tell it to clear both. That will move our footer back down to the bottom of the page and I am going to say OK, so that I can scroll down and show you we now have a footer at the bottom of the page. And see how nicely that's all cleaned up, which is really terrific. The next thing we want to do is style the content where we have the headings and the links to clean that up and make that look a little bit better than the default look and we have right now.
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.