12.09.2015 Views

Boot Camp

Web Authoring Boot Camp - StudioBast

Web Authoring Boot Camp - StudioBast

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Styled and Commented Left Navigation Layout Table<br />

Page Layout Code, Part 1<br />

<br />

<br />

<br />

<br />

<br />

<br />

Banner Segment<br />

<br />

<br />

<br />

<br />

Navigation Segment<br />

<br />

Content Segment<br />

<br />

<br />

<br />

<br />

Footer Segment<br />

<br />

<br />

<br />

Now, you may be wondering why we have not set any height to any of the cells? If you<br />

code this in your text browser, you will see a flattened-looking screen-wide table with no<br />

borders. Huh?????<br />

We do not add height to the cells because, for the most part, it is superfluous. Why? Because<br />

the height of your layout table will be determined by how much content you have<br />

in the longest table data cell. Heights are also not supported in HTML 4.01 Strict and<br />

XHTML 1.0.<br />

Consider this: your banner and footer segments may only contain 1-inch high content,<br />

and your navigation segment might only look like it has three inches of text or image<br />

links. However, the content segment, if it has ten inches of height in text and images, will<br />

push the the page downward so it becomes longer.<br />

135

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

Saved successfully!

Ooh no, something went wrong!