English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

What does coding a div layout mean? I make good divs but for some retarded reason, I don't know what that means.

2007-04-06 04:54:22 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

Some layouts use tables for structuring a page (e.g. divide a page into a table consisting of a column for the left third and a column for the middle third and a column for the right third). The table is slower to load and *can* be more difficult to make flexible than divs. (Flexible meaning the columns can "shrink" and "expand" when a reader of the screen drags the side of the screen left or right to enlarge the browser window.) Further, divs give you as web page writer a better way to style "groups" of web page elements, like say, the left half of the banner, or the top half of the side bar, or say, if they're the same and you want to keep them that way, the top half of the left sidebar plus the top half of the right sidebar... Because of the way CSS elements "inherit" from named divs, you get easier control over specific elements within a div, too, So that when you name a div, like say, div#happy, then you can set characteristics for div#happy p that will influence paragraphs within *only that div* and you don't have to worry about paragraphs elsewhere in your document... For some really good examples of *one* reason to approach divs see the listed source:

2007-04-06 05:07:33 · answer #1 · answered by fjpoblam 7 · 0 0

fedest.com, questions and answers