SlideShare a Scribd company logo
1 of 2
Download to read offline
80                                                                            Technique



     Any version of
     Dreamweaver
        Making
     your HTML                                                                                                                         02         We had better check what we



     site shine
                                                                                                                                       have so far in a browser. Click the globe
                                                                                                                                       icon in the Dreamweaver navigation bar
                                                                                                                                       and select ‘Preview in Firefox’ (although
                                                                                   01          Let’s get set up. Copy the              any web browser is fine for this tutorial).

         Kleber’s Ben Wise                                                         tutorial files from this issue’s disc to
                                                                                   your computer. There’s a finished version
                                                                                                                                       You should see the basic version of our
                                                                                                                                       imaginary website. There’s a header, a

     shows you how to add
                                                                                   and some partial files for following                sidebar with a menu and a large
                                                                                   through the tutorial. Launch                        subscribe link, as well as a main column
                                                                                   Dreamweaver and open index.html                     containing a blog post. Graphically it
     extra polish and                                                              from the partial files folder.                      looks a bit blocky, so let’s improve it.


     interactivity to your site
                 The web is an incredibly fast-moving place when it
     comes to design and style trends. Only a couple of years ago the
     majority of sites were either intricately programmed Flash sites
     complete with custom interactivity or conversely something more
     functional and minimal, like Yahoo, Amazon and so on. Arguably the
     web is now driven more by rapid information flow rather than
     heavily styled user experiences, but nevertheless users are still very
     sensitive to interface ‘polish’, and getting the right level of styling can
     make or break a site.
                 This tutorial will give you some ideas on how to add
     polish to your HTML site with CSS rounded corners and jQuery
     colour-fading backgrounds, to make it just that touch more
     appealing without detracting from its immediacy or ease of use.




                                                                                   03          Switch back to Dreamweaver and into to Code View if it’s not already set.
                                                                                   Hopefully the various HTML elements in index.html should all be familiar. Open main.css
                                                                                   in a tab or via the handy Related Files button underneath the tabs if you’re using CS4.




     Ben Wise                   On the disc                Time needed
         A ‘hybrid’ web         The files you need to      45 minutes
     developer/designer         complete this
     (in his words, a           tutorial can be found      Skills
     ‘devigner’) working        at DiscContents               Using CSS3 to
     at Kleber, Wise is a       Resources                     round box
     whiz at building
     sites using Apple
                                Dreamweaver                    corners
                                                               Embedding
                                                                                   04          Add some CSS3 rounding rules to
                                                                                   smooth off some edges; lines 108-123 in the
     hardware, Adobe
     software and
                                                               jQuery and
                                                               adding colour       screenshot (you can find all code in the                 05         Save, switch back to
     open-source                                               transitions         ‘finished’ folder if you wish to copy and paste          your web browser and refresh. We
     programming                                               Awareness           it). These rules are for the header, the post box        should see some nicely rounded
     languages. See                                            of browser          edges, the menu tabs (rounded on two                     corners, adding a drop of polish to
     his work at www.                                          implications        corners) and the menu below them (rounded                our design. But there’s still the
     kleber.net                                                and fixes/
                                                               alternatives
                                                                                   on three corners.)                                       large pink block in the sidebar.



     Computer Arts August 2009                                                                                                                          www.computerarts.co.uk




ART164.tut_dw 80                                                                                                                                                             11/6/09 5:33:8 pm
81




                                                                                  07         So far so good, but to really        08         For this demo we’re going to
                                                                                  bring our page to life we need a bit more       use three different instances of the
         06         CSS rounding can be of any size, right up to a full           interactivity. We’re going to create some       effect – one on the header, one on the
         circle. Add the rules in lines 125-127. If you’re typing, don’t forget   scripted colour fading now. Embed               menu and one on the pink circle. Copy in
         Dreamweaver’s auto-prompting by hitting Ctrl/Cmd+Space bar               jQuery and its Effects plug-ins into            lines 9-31, which are doing almost the
         inside the curly braces. Save and switch back to the web browser         index.html, as shown in the screenshot          same thing three times but to the
         to see a nice big dot, breaking up the boxy nature of our page.          lines 7-8.                                      different page elements.




                                                                                                                          Future watch
                                                                                                                          A successful web designer has to keep one eye
                                                                                                               on the future (modern specifications like CSS3) and one
                                                                                                               eye on the past (legacy browser compatibility like IE6/7).
                                                                                                               It’s a wonder they don’t go cross-eyed!




                                                                                                         10         In lines 13-27, try editing the colour references to see
         09         Save, head back to your web browser and refresh. If everything has gone to           what happens, and the ‘500’ number (these are milliseconds)
         plan, any mouse activity over the header, menu and circle should be yielding some               for faster or slower fades. This is just the tip of the iceberg
         nifty effects. This kind of polish might seem a little superfluous, but it really helps to      when it comes to jQuery effects and, hopefully, you’ll enjoy
         engage your visitor and create a ‘rich user experience’.                                        exploring them in the future.


                                                                                                                                                         12           Save and
                                                                                                                                                         test in IE7. You’ll see
                                                                                                                                                         the rounding
                                                                                                                                                         stand-in graphics.
                                                                                                                                                         The colour effects
                                                                                                                                                         have already worked
                                                                                                                                                         due to jQuery’s
                                                                                                                                                         rigorous cross-
                                                                                                                                                         browser support.
                                                                                                                                                         Job done!


         11        So far we’ve had everything easy, but sadly there’s
         one messy job left: to approximate our CSS3 rounding in older
         browsers like IE, which don’t support it. We’ll need to insert
         some pre-made graphics to round off the corners. Add lines
         129-134 to main.css, and lines 30-45 to index.html.



         www.computerarts.co.uk                                                                                                                   Computer Arts August 2009




ART164.tut_dw 81                                                                                                                                                      11/6/09 5:33:10 pm

More Related Content

Similar to ART164_tut_dw

New ways to present your images
New ways to present your imagesNew ways to present your images
New ways to present your images
tutorialsruby
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
tutorialsruby
 
TERMINALFOUR t44u 2009 - University of St Andrews Case Study
TERMINALFOUR t44u 2009 - University of St Andrews Case StudyTERMINALFOUR t44u 2009 - University of St Andrews Case Study
TERMINALFOUR t44u 2009 - University of St Andrews Case Study
Terminalfour
 
5a329780735625624 ch10
5a329780735625624 ch105a329780735625624 ch10
5a329780735625624 ch10
harkesh singh
 
BADCamp 2012 -Beginner Best Practices
BADCamp 2012 -Beginner Best PracticesBADCamp 2012 -Beginner Best Practices
BADCamp 2012 -Beginner Best Practices
meghsweet
 
Apress.html5.and.java script.projects.oct.2011
Apress.html5.and.java script.projects.oct.2011Apress.html5.and.java script.projects.oct.2011
Apress.html5.and.java script.projects.oct.2011
Samuel K. Itotia
 
Just Enough Web Design.doc.doc
Just Enough Web Design.doc.docJust Enough Web Design.doc.doc
Just Enough Web Design.doc.doc
butest
 

Similar to ART164_tut_dw (20)

Smooth CoffeeScript
Smooth CoffeeScriptSmooth CoffeeScript
Smooth CoffeeScript
 
New ways to present your images
New ways to present your imagesNew ways to present your images
New ways to present your images
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
 
Desktop apps with node webkit
Desktop apps with node webkitDesktop apps with node webkit
Desktop apps with node webkit
 
TERMINALFOUR t44u 2009 - University of St Andrews Case Study
TERMINALFOUR t44u 2009 - University of St Andrews Case StudyTERMINALFOUR t44u 2009 - University of St Andrews Case Study
TERMINALFOUR t44u 2009 - University of St Andrews Case Study
 
Porfolio
PorfolioPorfolio
Porfolio
 
Os php-wiki1-pdf
Os php-wiki1-pdfOs php-wiki1-pdf
Os php-wiki1-pdf
 
Dreaweaver cs5
Dreaweaver cs5Dreaweaver cs5
Dreaweaver cs5
 
Stc 2015 preparing legacy projects for responsive design - technical issues
Stc 2015   preparing legacy projects for responsive design - technical issuesStc 2015   preparing legacy projects for responsive design - technical issues
Stc 2015 preparing legacy projects for responsive design - technical issues
 
5a329780735625624 ch10
5a329780735625624 ch105a329780735625624 ch10
5a329780735625624 ch10
 
BADCamp 2012 -Beginner Best Practices
BADCamp 2012 -Beginner Best PracticesBADCamp 2012 -Beginner Best Practices
BADCamp 2012 -Beginner Best Practices
 
Makefile
MakefileMakefile
Makefile
 
The Superhero’s Method of Modern HTML5 Development by RapidValue Solutions
The Superhero’s Method of Modern HTML5 Development by RapidValue SolutionsThe Superhero’s Method of Modern HTML5 Development by RapidValue Solutions
The Superhero’s Method of Modern HTML5 Development by RapidValue Solutions
 
Yahoo! On Microsoft .NET 3.0 and Microsoft Expression
Yahoo! On Microsoft .NET 3.0 and Microsoft ExpressionYahoo! On Microsoft .NET 3.0 and Microsoft Expression
Yahoo! On Microsoft .NET 3.0 and Microsoft Expression
 
High Performance on Drupal 7
High Performance on Drupal 7High Performance on Drupal 7
High Performance on Drupal 7
 
Dw cs3-introduction
Dw cs3-introductionDw cs3-introduction
Dw cs3-introduction
 
Fewd week7 slides
Fewd week7 slidesFewd week7 slides
Fewd week7 slides
 
Apress.html5.and.java script.projects.oct.2011
Apress.html5.and.java script.projects.oct.2011Apress.html5.and.java script.projects.oct.2011
Apress.html5.and.java script.projects.oct.2011
 
Transforming the web into a real application platform
Transforming the web into a real application platformTransforming the web into a real application platform
Transforming the web into a real application platform
 
Just Enough Web Design.doc.doc
Just Enough Web Design.doc.docJust Enough Web Design.doc.doc
Just Enough Web Design.doc.doc
 

More from tutorialsruby

<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
tutorialsruby
 
TopStyle Help & <b>Tutorial</b>
TopStyle Help & <b>Tutorial</b>TopStyle Help & <b>Tutorial</b>
TopStyle Help & <b>Tutorial</b>
tutorialsruby
 
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
tutorialsruby
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
tutorialsruby
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
tutorialsruby
 
Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0
tutorialsruby
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
tutorialsruby
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
tutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
tutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
tutorialsruby
 

More from tutorialsruby (20)

<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
 
TopStyle Help & <b>Tutorial</b>
TopStyle Help & <b>Tutorial</b>TopStyle Help & <b>Tutorial</b>
TopStyle Help & <b>Tutorial</b>
 
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
 
Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
 
xhtml-documentation
xhtml-documentationxhtml-documentation
xhtml-documentation
 
xhtml-documentation
xhtml-documentationxhtml-documentation
xhtml-documentation
 
CSS
CSSCSS
CSS
 
CSS
CSSCSS
CSS
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
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
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 

ART164_tut_dw

  • 1. 80 Technique Any version of Dreamweaver Making your HTML 02 We had better check what we site shine have so far in a browser. Click the globe icon in the Dreamweaver navigation bar and select ‘Preview in Firefox’ (although 01 Let’s get set up. Copy the any web browser is fine for this tutorial). Kleber’s Ben Wise tutorial files from this issue’s disc to your computer. There’s a finished version You should see the basic version of our imaginary website. There’s a header, a shows you how to add and some partial files for following sidebar with a menu and a large through the tutorial. Launch subscribe link, as well as a main column Dreamweaver and open index.html containing a blog post. Graphically it extra polish and from the partial files folder. looks a bit blocky, so let’s improve it. interactivity to your site The web is an incredibly fast-moving place when it comes to design and style trends. Only a couple of years ago the majority of sites were either intricately programmed Flash sites complete with custom interactivity or conversely something more functional and minimal, like Yahoo, Amazon and so on. Arguably the web is now driven more by rapid information flow rather than heavily styled user experiences, but nevertheless users are still very sensitive to interface ‘polish’, and getting the right level of styling can make or break a site. This tutorial will give you some ideas on how to add polish to your HTML site with CSS rounded corners and jQuery colour-fading backgrounds, to make it just that touch more appealing without detracting from its immediacy or ease of use. 03 Switch back to Dreamweaver and into to Code View if it’s not already set. Hopefully the various HTML elements in index.html should all be familiar. Open main.css in a tab or via the handy Related Files button underneath the tabs if you’re using CS4. Ben Wise On the disc Time needed A ‘hybrid’ web The files you need to 45 minutes developer/designer complete this (in his words, a tutorial can be found Skills ‘devigner’) working at DiscContents Using CSS3 to at Kleber, Wise is a Resources round box whiz at building sites using Apple Dreamweaver corners Embedding 04 Add some CSS3 rounding rules to smooth off some edges; lines 108-123 in the hardware, Adobe software and jQuery and adding colour screenshot (you can find all code in the 05 Save, switch back to open-source transitions ‘finished’ folder if you wish to copy and paste your web browser and refresh. We programming Awareness it). These rules are for the header, the post box should see some nicely rounded languages. See of browser edges, the menu tabs (rounded on two corners, adding a drop of polish to his work at www. implications corners) and the menu below them (rounded our design. But there’s still the kleber.net and fixes/ alternatives on three corners.) large pink block in the sidebar. Computer Arts August 2009 www.computerarts.co.uk ART164.tut_dw 80 11/6/09 5:33:8 pm
  • 2. 81 07 So far so good, but to really 08 For this demo we’re going to bring our page to life we need a bit more use three different instances of the 06 CSS rounding can be of any size, right up to a full interactivity. We’re going to create some effect – one on the header, one on the circle. Add the rules in lines 125-127. If you’re typing, don’t forget scripted colour fading now. Embed menu and one on the pink circle. Copy in Dreamweaver’s auto-prompting by hitting Ctrl/Cmd+Space bar jQuery and its Effects plug-ins into lines 9-31, which are doing almost the inside the curly braces. Save and switch back to the web browser index.html, as shown in the screenshot same thing three times but to the to see a nice big dot, breaking up the boxy nature of our page. lines 7-8. different page elements. Future watch A successful web designer has to keep one eye on the future (modern specifications like CSS3) and one eye on the past (legacy browser compatibility like IE6/7). It’s a wonder they don’t go cross-eyed! 10 In lines 13-27, try editing the colour references to see 09 Save, head back to your web browser and refresh. If everything has gone to what happens, and the ‘500’ number (these are milliseconds) plan, any mouse activity over the header, menu and circle should be yielding some for faster or slower fades. This is just the tip of the iceberg nifty effects. This kind of polish might seem a little superfluous, but it really helps to when it comes to jQuery effects and, hopefully, you’ll enjoy engage your visitor and create a ‘rich user experience’. exploring them in the future. 12 Save and test in IE7. You’ll see the rounding stand-in graphics. The colour effects have already worked due to jQuery’s rigorous cross- browser support. Job done! 11 So far we’ve had everything easy, but sadly there’s one messy job left: to approximate our CSS3 rounding in older browsers like IE, which don’t support it. We’ll need to insert some pre-made graphics to round off the corners. Add lines 129-134 to main.css, and lines 30-45 to index.html. www.computerarts.co.uk Computer Arts August 2009 ART164.tut_dw 81 11/6/09 5:33:10 pm