12.09.2015 Views

Boot Camp

Web Authoring Boot Camp - StudioBast

Web Authoring Boot Camp - StudioBast

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Page Layout Code, Part 1<br />

14<br />

Page Layout Code – Part 1<br />

We’ve been learning about HTML elements, attributes, and values in web pages. We’ve<br />

even seen some really basic web pages, but they have been pretty straightforward up-anddown<br />

text that looks very little like anything you like looking at on the web. How do we<br />

get from here to there?<br />

Small steps, grasshopper.<br />

Seriously, we get to start working toward solid web page builds. One big step is in building<br />

web page layout structures, like we discussed eons ago in an earlier chapter. Now that<br />

we’ve covered tables, we’ll learn how to use them to set up a straightforward web page<br />

layout.<br />

A word about this first. HTML/XHTML has been moving towards as much cascading<br />

styling (CS) as possible. Web page layouts are an important part of this movement, and<br />

professional web authors focus on as much CS as possible. Despite this, a web author in<br />

today’s work market is as likely to inherit existing and unstyled work, in content management<br />

systems and company sites that are too big and entrenched to redesign from scratch.<br />

They will inherit small, low-paying freelance gigs where they get to maintain and update<br />

existing websites. And in many of these cases, the site has been built using tables for the<br />

site’s layout structure.<br />

Our goal in this chapter is to learn a clean, efficient, and well-commented way to build<br />

web page layouts using tables, and how to nest other tables inside these page layout tables.<br />

The cool thing is that when we get to the transition from table layout to CS division<br />

layout, your attention to detail here will help you easily translate your table into the CS<br />

format.<br />

Measurements<br />

A key thing the web author needs to decide, when designing a website, is how wide it<br />

will be in relation to the open browser window. As you look at examples on the Internet,<br />

you will see all sorts of layouts, from flexible full-width to fixed 80% width (like many<br />

Wordpress blog layouts).<br />

• Pixel measure results in fixed or static content<br />

131

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!