SlideShare una empresa de Scribd logo
1 de 4
Descargar para leer sin conexión
Roadmap Series
Issue 1




CSS: The How and The Why
Prepared by Joseph Lowery
1-28-09
CSS: The Why and the How
     CSS: The How and The Why
                                Produced by Joseph Lowery i

                                                th
                                2009 is a big 10 anniversary year. It's been 10 years since Macromedia launched Dreamweaver. WebAssist is entering
                                      th
                                its 10 year of creating world-class level products. And, the push for web standards has been on-going for 10 years. As
                                such, I thought it'd be good to take a step back and remind folks why web standards in general—and CSS in particular—is
                                a good idea, both from a business and artistic point of view. In the spirit of providing a useful roadmap for web designers,
                                this article will be a mix of a broader 10,000 foot view as to why you should create CSS-based sites, and a more practical,
                                step-by-step set of instructions as to how.


                                CSS-based layouts and proper use of CSS are at the root of web standards. While there are many in the community—
                                including myself and WebAssist—constantly beating the drum for wide-spread CSS use and overall compliance to web
                                standards, you need to understand the benefits so you can decide to follow this design path yourself. Sooner or later,
                                you'll need to convince your boss, colleagues or client why a CSS-based approach is the right way to go for a new or
                                redesigned site. Although it involves technology, it's not really a technological decision—it's a practical, business decision.


                                There are a great many advantages to the web standards design, but let's look at the top three: portability, speed and
                                maintenance.


                                Better portability
                                One of the primary tenets of web standards is the separation of content from presentation. A key benefit of this separation
                                is the ability to reshape the content to fit the media. You can, for example, take a site that looks great on the computer
                                screen and reconfigure it for hard copy printer output with a CSS style sheet. With the change of just a few style rules, you
                                can hide areas not pertinent to the page, like a footer of links, or expand a column of text to better fit the printer margins.
                                One of our extensions, Eric Meyer's CSS Sculptor, automatically creates separate style sheets for both screen and print.
                                Most importantly, the portability doesn't stop there. As handheld device technology proliferates, through the iPhone and
                                other devices, cell phone browsing is much more of a reality today. Through a separate CSS style sheet, your sites can
                                look their best no matter the media.

Roadmap Series                  Increased download speed
    Issue 1                     CSS brings with it a “real dollars and cents” cost benefit. Most developers find that the average page weight of a CSS-
                                based layout is half that of a table-based one. Let's look at a basic code comparison. First, here's a simple header,
                                content area with sidebar and footer layout done with tables:

                                <table width="780" border="0" cellspacing="0" cellpadding="0">
                                 <tr>
                                   <td>Header</td>
                                 </tr>
                                 <tr>
                                   <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="31%">Sidebar</td>
                                      <td width="69%">Main Content</td>
                                    </tr>
                                   </table></td>
                                 </tr>
                                 <tr>
                                   <td>Footer</td>
                                 </tr>
                                </table>


                                The nested table used for the content area and sidebar adds a bunch of code, doesn't it? Now, let's look at the same
                                layout with CSS-based design:

                                <div id="header">Header</div>
                                <div id="contentWrapper">
                                       <div id="sidebar">Sidebar</div>
                                       <div id="content">Content</div>
                                </div>




                                                                                                                                                Page 2 of 4
CSS: The How and The Why   <div id="footer">Footer</div>


                                Not only is the code much more readable, and thus easier to update (a subject for another, upcoming paper), but the
                                markup is substantially less. Compare character count of the two methods and you'll find that the CSS-based approach is
                                46% smaller. Naturally, the download times for these particular code snippets would be essentially the same, but if you
                                look at completely developed pages, a notable difference is evident. With major sites—or any site experiencing high
                                traffic—there are actual, significant savings for bandwidth costs. Moreover, designers typically find that the faster
                                download times result in an increased number and length of page visits, which again, can result in a notable increase in
                                revenue, especially if you consider banner and search engine ad placement.


                                Easier maintenance
                                As noted above, the code for a CSS-based site is much easier to read and, therefore, update. Faster changes mean less
                                time which translates into more time designers can spend on other projects, another real, bottom-line benefit. When
                                external style sheets are used, site-wide changes can occur almost instantaneously and even, if appropriate, be user-
                                driven. For a wildly entertaining look at just how different the same content can be, look no further than
                                www.csszengarden.com. Here are two examples of the same content with totally different appearances, all thanks to
                                CSS.




Roadmap Series
    Issue 1




                                First steps
                                Okay, let's say you're totally sold and you're ready to move to CSS-based layouts. What do you do first? Here are three
                                basic steps to help you on your way.


                                Plan for CSS
                                Whether you create a comp in Photoshop or Fireworks, or sketch it out by hand and build it directly in Dreamweaver or
                                another code editor, it really helps to have CSS layout concepts in mind from the beginning. Take a look at your design
                                and figure out where the major sections are–the header, the content area, and the footer, for example. This will help you
                                decide which graphic elements need to be part of the CSS-styled background and which are standard foreground images.
                                You'll also get a clearer sense of the margin values and padding required to place your elements in the desired position.


                                These concepts—and more—serve as the core of our interactive training module, CSS Designer Starter Kit. If you're
                                brand-spanking new to CSS design, it'll give you a good leg up for just a little expense. Another approach is to use your
                                "View Source" browser option liberally and see how designs are recreated in CSS.


                                Use simple building blocks
                                Or, to put it in an aphorism: "Crawl before you walk; walk before you run." Many times, I see designers extend their reach
                                before they're ready and fail to reach their lofty goal. A CSS page layout is, at its most basic, almost literally a series of
                                building blocks. The content "block," also known as a <div> tag, is placed on top of the footer <div> tag and the header




                                                                                                                                                Page 3 of 4
CSS: The How and The Why   <div> element goes on top of the content one. When it comes time to ramp up the complexity and split the content section
                                      into a sidebar and main area, those two "blocks" are side-by-side, in-between the header and footer. In the early stages of
                                      climbing the CSS learning curve, you could do worse than playing with your blocks :-).


                                      Test early and reset
                                      When do newly-minted CSS designers start to pull their hair out? When they've created the perfect design that looks
                                      exactly like they want it to on their browser and then they view it on another browser or system. The more sophisticated
                                      the design—and the greater amount of time spent on its creation—the more hair in their hands. To avoid such unnatural
                                      hair loss, your best bet is to test on the major browsers at every stage of development.


                                      The conventional wisdom is to initially test your web pages in Firefox or Safari, two well-established web standards
                                      compliant browsers. Then, after your site meets your expectations, test in a variety of Internet Explorer versions and
                                      adjust. In my experience, the "build-it-all-first" approach leads to much frustration and longer development times. I find
                                      that if I do a quick check of my initial page design after every major design addition in Internet Explorer, I can more easily
                                      make any modifications necessary. The code is, in essence, fresher in my mind and I can more quickly see where
                                      changes might be needed.
                                      Another essential step, is to use a reset declaration at the top of your CSS to level the playing field between browsers. All
                                      the pages generated by CSS Sculptor, for example, use a subset of a reset declaration developed by CSS expert Eric
                                      Meyer, shown here:

                                      html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6 {
                                        margin: 0;
                                        padding: 0;
                                        border: 0;
                                        outline: 0;
Roadmap Series                          font-size: 100%;
                                      }
         Issue 1
                                      Without a reset declaration, content in an opening <h1> tag will be in an obviously different location when viewed in
                                      Firefox and Internet Explorer.



                                      About WebAssist
                                      WebAssist helps you build better websites faster by offering software, solutions, and training needed to succeed on the
                                      web. WebAssist.com hosts a thriving community of over 300,000 designers, developers, and business owners.
                                      WebAssist's partners include Adobe, Microsoft, and PayPal.




WebAssist.com Corporation
8899 University Center Lane
San Diego, CA 92122
USA
www.webassist.com                                                                                                                                     Page 4 of 4

Más contenido relacionado

La actualidad más candente

Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3Doris Chen
 
Building a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSSBuilding a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSShstryk
 
CSS3 Media Queries
CSS3 Media QueriesCSS3 Media Queries
CSS3 Media QueriesMan Math
 
Design and CSS
Design and CSSDesign and CSS
Design and CSSnolly00
 
CSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive DesignCSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive DesignZoe Gillenwater
 
Make Css easy(part:2) : easy tips for css(part:2)
Make Css easy(part:2) : easy tips for css(part:2)Make Css easy(part:2) : easy tips for css(part:2)
Make Css easy(part:2) : easy tips for css(part:2)shabab shihan
 
CSS3: Simply Responsive
CSS3: Simply ResponsiveCSS3: Simply Responsive
CSS3: Simply ResponsiveDenise Jacobs
 
Advanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & EfficiencyAdvanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & EfficiencyDenise Jacobs
 
High Performance Websites
High Performance WebsitesHigh Performance Websites
High Performance WebsitesAaron Grogg
 
Responsive Web Design with HTML5 and CSS3
Responsive Web Design with HTML5 and CSS3Responsive Web Design with HTML5 and CSS3
Responsive Web Design with HTML5 and CSS3Kannika Kong
 
Advanced CSS Troubleshooting
Advanced CSS TroubleshootingAdvanced CSS Troubleshooting
Advanced CSS TroubleshootingDenise Jacobs
 
Intermediate Dreamweaver (2007)
Intermediate Dreamweaver (2007)Intermediate Dreamweaver (2007)
Intermediate Dreamweaver (2007)Matteo Wyllyamz
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucksTim Wright
 
Elegant Web Typography
Elegant Web TypographyElegant Web Typography
Elegant Web Typographyjeff_croft
 

La actualidad más candente (18)

Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
Building a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSSBuilding a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSS
 
CSS3 Media Queries
CSS3 Media QueriesCSS3 Media Queries
CSS3 Media Queries
 
Design and CSS
Design and CSSDesign and CSS
Design and CSS
 
CSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive DesignCSS3, Media Queries, and Responsive Design
CSS3, Media Queries, and Responsive Design
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
Make Css easy(part:2) : easy tips for css(part:2)
Make Css easy(part:2) : easy tips for css(part:2)Make Css easy(part:2) : easy tips for css(part:2)
Make Css easy(part:2) : easy tips for css(part:2)
 
CSS3: Simply Responsive
CSS3: Simply ResponsiveCSS3: Simply Responsive
CSS3: Simply Responsive
 
Advanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & EfficiencyAdvanced CSS Troubleshooting & Efficiency
Advanced CSS Troubleshooting & Efficiency
 
High Performance Websites
High Performance WebsitesHigh Performance Websites
High Performance Websites
 
Responsive Web Design with HTML5 and CSS3
Responsive Web Design with HTML5 and CSS3Responsive Web Design with HTML5 and CSS3
Responsive Web Design with HTML5 and CSS3
 
Advanced CSS Troubleshooting
Advanced CSS TroubleshootingAdvanced CSS Troubleshooting
Advanced CSS Troubleshooting
 
Intermediate Dreamweaver (2007)
Intermediate Dreamweaver (2007)Intermediate Dreamweaver (2007)
Intermediate Dreamweaver (2007)
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
 
CSS Introduction
CSS IntroductionCSS Introduction
CSS Introduction
 
Elegant Web Typography
Elegant Web TypographyElegant Web Typography
Elegant Web Typography
 
Css tutorial 2012
Css tutorial 2012Css tutorial 2012
Css tutorial 2012
 
Slicing the web
Slicing the webSlicing the web
Slicing the web
 

Destacado

Reverse Engineering the Agency of the Future
Reverse Engineering the Agency of the FutureReverse Engineering the Agency of the Future
Reverse Engineering the Agency of the FutureDigiday
 
Klausz Melinda - Foglalás Facebook-on, Instagramon? IGEN!
Klausz Melinda - Foglalás Facebook-on, Instagramon? IGEN!Klausz Melinda - Foglalás Facebook-on, Instagramon? IGEN!
Klausz Melinda - Foglalás Facebook-on, Instagramon? IGEN!Klausz Melinda
 
Building the Right Team for Native - WTF Native NYC, 11/3/15
Building the Right Team for Native - WTF Native NYC, 11/3/15Building the Right Team for Native - WTF Native NYC, 11/3/15
Building the Right Team for Native - WTF Native NYC, 11/3/15Digiday
 
Brasil al día agosto 2011, Cámara deComercio Brasil-España en Aragón. Vargas ...
Brasil al día agosto 2011, Cámara deComercio Brasil-España en Aragón. Vargas ...Brasil al día agosto 2011, Cámara deComercio Brasil-España en Aragón. Vargas ...
Brasil al día agosto 2011, Cámara deComercio Brasil-España en Aragón. Vargas ...Carmen Urbano
 
Harbin Ice And Snow Sculpture Festival
Harbin Ice And Snow Sculpture FestivalHarbin Ice And Snow Sculpture Festival
Harbin Ice And Snow Sculpture FestivalNubia **
 
CAPITULO 4 TEORIA DE LOS SITEMAS
CAPITULO 4 TEORIA DE LOS SITEMAS CAPITULO 4 TEORIA DE LOS SITEMAS
CAPITULO 4 TEORIA DE LOS SITEMAS jorge banda cambron
 

Destacado (15)

Y todos a bailar
Y todos a bailarY todos a bailar
Y todos a bailar
 
Reverse Engineering the Agency of the Future
Reverse Engineering the Agency of the FutureReverse Engineering the Agency of the Future
Reverse Engineering the Agency of the Future
 
Klausz Melinda - Foglalás Facebook-on, Instagramon? IGEN!
Klausz Melinda - Foglalás Facebook-on, Instagramon? IGEN!Klausz Melinda - Foglalás Facebook-on, Instagramon? IGEN!
Klausz Melinda - Foglalás Facebook-on, Instagramon? IGEN!
 
Sopa.lletres.6
Sopa.lletres.6Sopa.lletres.6
Sopa.lletres.6
 
Building the Right Team for Native - WTF Native NYC, 11/3/15
Building the Right Team for Native - WTF Native NYC, 11/3/15Building the Right Team for Native - WTF Native NYC, 11/3/15
Building the Right Team for Native - WTF Native NYC, 11/3/15
 
English
EnglishEnglish
English
 
YOUR SL GmbH
YOUR SL GmbHYOUR SL GmbH
YOUR SL GmbH
 
Http
HttpHttp
Http
 
Molly's job
Molly's jobMolly's job
Molly's job
 
La tecnología 4g
La tecnología 4gLa tecnología 4g
La tecnología 4g
 
Reactive Credentials (2012)
Reactive Credentials (2012)Reactive Credentials (2012)
Reactive Credentials (2012)
 
Brasil al día agosto 2011, Cámara deComercio Brasil-España en Aragón. Vargas ...
Brasil al día agosto 2011, Cámara deComercio Brasil-España en Aragón. Vargas ...Brasil al día agosto 2011, Cámara deComercio Brasil-España en Aragón. Vargas ...
Brasil al día agosto 2011, Cámara deComercio Brasil-España en Aragón. Vargas ...
 
Harbin Ice And Snow Sculpture Festival
Harbin Ice And Snow Sculpture FestivalHarbin Ice And Snow Sculpture Festival
Harbin Ice And Snow Sculpture Festival
 
CAPITULO 4 TEORIA DE LOS SITEMAS
CAPITULO 4 TEORIA DE LOS SITEMAS CAPITULO 4 TEORIA DE LOS SITEMAS
CAPITULO 4 TEORIA DE LOS SITEMAS
 
Vik - MB
Vik - MBVik - MB
Vik - MB
 

Similar a Roadmap 01

Media queries and frameworks
Media queries and frameworksMedia queries and frameworks
Media queries and frameworksNicole Ryan
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksAndolasoft Inc
 
Vskills certified css designer Notes
Vskills certified css designer NotesVskills certified css designer Notes
Vskills certified css designer NotesVskills
 
SCSS Implementation
SCSS ImplementationSCSS Implementation
SCSS ImplementationAmey Parab
 
An Introduction to CSS Frameworks
An Introduction to CSS FrameworksAn Introduction to CSS Frameworks
An Introduction to CSS FrameworksAdrian Westlake
 
The CSS Handbook
The CSS HandbookThe CSS Handbook
The CSS Handbookjackchenvlo
 
CSS Frameworks: Faster Layout, Consistent Results
CSS Frameworks: Faster Layout, Consistent ResultsCSS Frameworks: Faster Layout, Consistent Results
CSS Frameworks: Faster Layout, Consistent ResultsSteve Hong
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSSanjoy Kr. Paul
 
Get Started With Tailwind React and Create Beautiful Apps.pdf
Get Started With Tailwind React and Create Beautiful Apps.pdfGet Started With Tailwind React and Create Beautiful Apps.pdf
Get Started With Tailwind React and Create Beautiful Apps.pdfRonDosh
 
MYSQL DATABASE MYSQL DATABASE MYSQL DATABASECSS.pptx
MYSQL DATABASE MYSQL DATABASE MYSQL DATABASECSS.pptxMYSQL DATABASE MYSQL DATABASE MYSQL DATABASECSS.pptx
MYSQL DATABASE MYSQL DATABASE MYSQL DATABASECSS.pptxArjayBalberan1
 
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!Stefan Bauer
 
A Complete Guide to Frontend - UI Developer
A Complete Guide to Frontend - UI DeveloperA Complete Guide to Frontend - UI Developer
A Complete Guide to Frontend - UI Developernariyaravi
 
Web programming css
Web programming cssWeb programming css
Web programming cssUma mohan
 
Best 5 CSS Frameworks You Should Know To Design Attractive Websites .pdf
Best 5 CSS Frameworks You Should Know To Design Attractive Websites .pdfBest 5 CSS Frameworks You Should Know To Design Attractive Websites .pdf
Best 5 CSS Frameworks You Should Know To Design Attractive Websites .pdfAppdeveloper10
 
Intro To Twitter Bootstrap
Intro To Twitter BootstrapIntro To Twitter Bootstrap
Intro To Twitter BootstrapAhmed Haque
 

Similar a Roadmap 01 (20)

Media queries and frameworks
Media queries and frameworksMedia queries and frameworks
Media queries and frameworks
 
Organize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS TricksOrganize Your Website With Advanced CSS Tricks
Organize Your Website With Advanced CSS Tricks
 
Vskills certified css designer Notes
Vskills certified css designer NotesVskills certified css designer Notes
Vskills certified css designer Notes
 
SCSS Implementation
SCSS ImplementationSCSS Implementation
SCSS Implementation
 
An Introduction to CSS Frameworks
An Introduction to CSS FrameworksAn Introduction to CSS Frameworks
An Introduction to CSS Frameworks
 
Css group
Css groupCss group
Css group
 
Css group
Css groupCss group
Css group
 
Css group
Css groupCss group
Css group
 
The CSS Handbook
The CSS HandbookThe CSS Handbook
The CSS Handbook
 
CSS Frameworks: Faster Layout, Consistent Results
CSS Frameworks: Faster Layout, Consistent ResultsCSS Frameworks: Faster Layout, Consistent Results
CSS Frameworks: Faster Layout, Consistent Results
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
Structuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSSStructuring your CSS for maintainability: rules and guile lines to write CSS
Structuring your CSS for maintainability: rules and guile lines to write CSS
 
Get Started With Tailwind React and Create Beautiful Apps.pdf
Get Started With Tailwind React and Create Beautiful Apps.pdfGet Started With Tailwind React and Create Beautiful Apps.pdf
Get Started With Tailwind React and Create Beautiful Apps.pdf
 
MYSQL DATABASE MYSQL DATABASE MYSQL DATABASECSS.pptx
MYSQL DATABASE MYSQL DATABASE MYSQL DATABASECSS.pptxMYSQL DATABASE MYSQL DATABASE MYSQL DATABASECSS.pptx
MYSQL DATABASE MYSQL DATABASE MYSQL DATABASECSS.pptx
 
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!
 
A Complete Guide to Frontend - UI Developer
A Complete Guide to Frontend - UI DeveloperA Complete Guide to Frontend - UI Developer
A Complete Guide to Frontend - UI Developer
 
Web programming css
Web programming cssWeb programming css
Web programming css
 
Full
FullFull
Full
 
Best 5 CSS Frameworks You Should Know To Design Attractive Websites .pdf
Best 5 CSS Frameworks You Should Know To Design Attractive Websites .pdfBest 5 CSS Frameworks You Should Know To Design Attractive Websites .pdf
Best 5 CSS Frameworks You Should Know To Design Attractive Websites .pdf
 
Intro To Twitter Bootstrap
Intro To Twitter BootstrapIntro To Twitter Bootstrap
Intro To Twitter Bootstrap
 

Último

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 

Último (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

Roadmap 01

  • 1. Roadmap Series Issue 1 CSS: The How and The Why Prepared by Joseph Lowery 1-28-09
  • 2. CSS: The Why and the How CSS: The How and The Why Produced by Joseph Lowery i th 2009 is a big 10 anniversary year. It's been 10 years since Macromedia launched Dreamweaver. WebAssist is entering th its 10 year of creating world-class level products. And, the push for web standards has been on-going for 10 years. As such, I thought it'd be good to take a step back and remind folks why web standards in general—and CSS in particular—is a good idea, both from a business and artistic point of view. In the spirit of providing a useful roadmap for web designers, this article will be a mix of a broader 10,000 foot view as to why you should create CSS-based sites, and a more practical, step-by-step set of instructions as to how. CSS-based layouts and proper use of CSS are at the root of web standards. While there are many in the community— including myself and WebAssist—constantly beating the drum for wide-spread CSS use and overall compliance to web standards, you need to understand the benefits so you can decide to follow this design path yourself. Sooner or later, you'll need to convince your boss, colleagues or client why a CSS-based approach is the right way to go for a new or redesigned site. Although it involves technology, it's not really a technological decision—it's a practical, business decision. There are a great many advantages to the web standards design, but let's look at the top three: portability, speed and maintenance. Better portability One of the primary tenets of web standards is the separation of content from presentation. A key benefit of this separation is the ability to reshape the content to fit the media. You can, for example, take a site that looks great on the computer screen and reconfigure it for hard copy printer output with a CSS style sheet. With the change of just a few style rules, you can hide areas not pertinent to the page, like a footer of links, or expand a column of text to better fit the printer margins. One of our extensions, Eric Meyer's CSS Sculptor, automatically creates separate style sheets for both screen and print. Most importantly, the portability doesn't stop there. As handheld device technology proliferates, through the iPhone and other devices, cell phone browsing is much more of a reality today. Through a separate CSS style sheet, your sites can look their best no matter the media. Roadmap Series Increased download speed Issue 1 CSS brings with it a “real dollars and cents” cost benefit. Most developers find that the average page weight of a CSS- based layout is half that of a table-based one. Let's look at a basic code comparison. First, here's a simple header, content area with sidebar and footer layout done with tables: <table width="780" border="0" cellspacing="0" cellpadding="0"> <tr> <td>Header</td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="31%">Sidebar</td> <td width="69%">Main Content</td> </tr> </table></td> </tr> <tr> <td>Footer</td> </tr> </table> The nested table used for the content area and sidebar adds a bunch of code, doesn't it? Now, let's look at the same layout with CSS-based design: <div id="header">Header</div> <div id="contentWrapper"> <div id="sidebar">Sidebar</div> <div id="content">Content</div> </div> Page 2 of 4
  • 3. CSS: The How and The Why <div id="footer">Footer</div> Not only is the code much more readable, and thus easier to update (a subject for another, upcoming paper), but the markup is substantially less. Compare character count of the two methods and you'll find that the CSS-based approach is 46% smaller. Naturally, the download times for these particular code snippets would be essentially the same, but if you look at completely developed pages, a notable difference is evident. With major sites—or any site experiencing high traffic—there are actual, significant savings for bandwidth costs. Moreover, designers typically find that the faster download times result in an increased number and length of page visits, which again, can result in a notable increase in revenue, especially if you consider banner and search engine ad placement. Easier maintenance As noted above, the code for a CSS-based site is much easier to read and, therefore, update. Faster changes mean less time which translates into more time designers can spend on other projects, another real, bottom-line benefit. When external style sheets are used, site-wide changes can occur almost instantaneously and even, if appropriate, be user- driven. For a wildly entertaining look at just how different the same content can be, look no further than www.csszengarden.com. Here are two examples of the same content with totally different appearances, all thanks to CSS. Roadmap Series Issue 1 First steps Okay, let's say you're totally sold and you're ready to move to CSS-based layouts. What do you do first? Here are three basic steps to help you on your way. Plan for CSS Whether you create a comp in Photoshop or Fireworks, or sketch it out by hand and build it directly in Dreamweaver or another code editor, it really helps to have CSS layout concepts in mind from the beginning. Take a look at your design and figure out where the major sections are–the header, the content area, and the footer, for example. This will help you decide which graphic elements need to be part of the CSS-styled background and which are standard foreground images. You'll also get a clearer sense of the margin values and padding required to place your elements in the desired position. These concepts—and more—serve as the core of our interactive training module, CSS Designer Starter Kit. If you're brand-spanking new to CSS design, it'll give you a good leg up for just a little expense. Another approach is to use your "View Source" browser option liberally and see how designs are recreated in CSS. Use simple building blocks Or, to put it in an aphorism: "Crawl before you walk; walk before you run." Many times, I see designers extend their reach before they're ready and fail to reach their lofty goal. A CSS page layout is, at its most basic, almost literally a series of building blocks. The content "block," also known as a <div> tag, is placed on top of the footer <div> tag and the header Page 3 of 4
  • 4. CSS: The How and The Why <div> element goes on top of the content one. When it comes time to ramp up the complexity and split the content section into a sidebar and main area, those two "blocks" are side-by-side, in-between the header and footer. In the early stages of climbing the CSS learning curve, you could do worse than playing with your blocks :-). Test early and reset When do newly-minted CSS designers start to pull their hair out? When they've created the perfect design that looks exactly like they want it to on their browser and then they view it on another browser or system. The more sophisticated the design—and the greater amount of time spent on its creation—the more hair in their hands. To avoid such unnatural hair loss, your best bet is to test on the major browsers at every stage of development. The conventional wisdom is to initially test your web pages in Firefox or Safari, two well-established web standards compliant browsers. Then, after your site meets your expectations, test in a variety of Internet Explorer versions and adjust. In my experience, the "build-it-all-first" approach leads to much frustration and longer development times. I find that if I do a quick check of my initial page design after every major design addition in Internet Explorer, I can more easily make any modifications necessary. The code is, in essence, fresher in my mind and I can more quickly see where changes might be needed. Another essential step, is to use a reset declaration at the top of your CSS to level the playing field between browsers. All the pages generated by CSS Sculptor, for example, use a subset of a reset declaration developed by CSS expert Eric Meyer, shown here: html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; border: 0; outline: 0; Roadmap Series font-size: 100%; } Issue 1 Without a reset declaration, content in an opening <h1> tag will be in an obviously different location when viewed in Firefox and Internet Explorer. About WebAssist WebAssist helps you build better websites faster by offering software, solutions, and training needed to succeed on the web. WebAssist.com hosts a thriving community of over 300,000 designers, developers, and business owners. WebAssist's partners include Adobe, Microsoft, and PayPal. WebAssist.com Corporation 8899 University Center Lane San Diego, CA 92122 USA www.webassist.com Page 4 of 4