- CMS support
- CSS Inspection tool
- CSS Enable.Disable
- Adobe BrowserLab
- PHP Code Hinting
Creating easy-to-use mobile navigation is very important because you want users to read your content and not be frustrated by content that’s difficult to access. The hit target for mobile navigation should be large enough for touchscreens and easy to read. You’ll add these styles now.
1 Click the phone.css button in the Related Files toolbar. In the CSS Styles panel, click the New CSS Rule button, and then in the Selector Type menu, choose ID. In the Selector name box, type #navigation and click OK.
In the next dialog box, and within the Type category, click the menu to the right of the Font-size field. Choose the keyword medium to override the 36 pixel value set in the original style sheet and use the browser’s sizing. This action prevents issues when there are differences between device screen resolutions.
2 Click the Positioning category, click the Height menu, and choose Auto to override the fixed height of 36 pixels from the original style sheet. Click OK to create these styles.
You will need to do more work to make the navigation look better. There are often several different rules for CSS navigation menus, so you also need to modify these.
3 In the CSS Styles panel, click the New CSS Rule button, and then in the Selector Type menu, choose Compound. In the Selector name box, type #navigation ul li. This targets the style of the list items.
Create a compound selector to make a style for the navigation list items.
Click OK. In the CSS rule definition window, click the Box category, click the Float menu, and choose none. This overrides the float:left rule set in your original style sheet. Click OK.
4 Click the Source Code button to switch to your HTML page, and then click the Multiscreen button. Notice that by setting the float property of the list items to none, the list reverts to its default positioning, which is vertical.
Changing the float value of list items to none creates a vertical navigation instead of a horizontal one.
Your page is starting to improve: the navigation is now a single column. Place your cursor over the links and notice that the original hover styles are still present. One of the benefits of CSS3 Media Queries is that the original styles that have no overrides are still used.
Scroll down and notice you still need to improve other areas: the main content and the sidebar still appear broken, but this is relatively easy to fix.
5 Close the Multiscreen Preview window, and then click the phone.css button in the Related Files toolbar.
6 In the CSS Styles panel, click the New CSS Rule button, and then in the Selector Type menu, choose ID. In the Selector name box, type #main. This targets the style of the list items.
Click OK. In the CSS rule definition window, click the Box category, click the Float menu, and choose none. This overrides the float:left property and value set in your original style sheet.
7 Click the Width property menu and choose auto.
Set the float value of the main column to none and the width to auto.
8 Click OK and repeat steps 6 and 7 and use the Selector name #sidebar.
9 Choose File > Save All Related Files, click the Source Code button, and click the Multiscreen button. Scroll down your page and notice that your content section and sidebar now fill the screen from edge to edge. Also notice that by removing the floats, your sidebar is now located below the main content.
10 Close the Multiscreen Preview menu window. You can test your page in Dreamweaver’s Live View. First, click the Design button to switch to this view. Then click the Live View button. Live View uses the WebKit rendering engine, which is the same as Apple Safari and Google Chrome browser. In Dreamweaver, you can see the exact dimensions of the window size at the bottom of your document window.
11 Grab the bottom right corner of your document and reduce the width. Watch the Window Size dimensions: when the first value reaches 320 pixels or less, your layout should change and use the phone.css styles.
In Live View, you can see the values of your Window Width; when the
You can also preview your page in the browser and reduce the width of the window. Note that some browsers will not let you make the window that small. The phone.css is designed for phone browsers, not desktop browsers.
You can create and add other styles to the phone style sheet. You now have the foundations of how to create different layouts using media queries in Dreamweaver CS5.5, and apply this foundation to the table style sheet.
The Multiscreen Preview option and the related CSS3 Media Queries are perhaps the biggest change in Dreamweaver CS5.5, but there are several other new additions, many of which are related to mobile design and development.
Dreamweaver CS5.5 has added to its internal library of code many of the new HTML5 elements and CSS3 styles. Examples of HTML5 elements now available include <header>, <nav>, <aside>, and others. In previous versions of Dreamweaver, there was no code that indicated the use of these elements.
Users could still add the elements, but they were not readily available in Dreamweaver’s code-hinting interface.
You can easily create HTML5 pages in Dreamweaver with
Similarly, CSS3 includes several new styles to help you enhance your pages, including features such as rounded corners, gradients, border images, and more. These CSS3 properties are now readily available in Dreamweaver’s code-hinting library. (This library also includes the vendor-specific prefixes needed to ensure that styles are visible on specific browsers, such as Firefox, Chrome, Safari, and Internet Explorer.)
You can easily add CSS3 styling in Dreamweaver with
You can create a site optimized for mobile by choosing File > New Page From Sample > jQuery Mobile to open a layout that has placeholder content and several built-in user interface features. Some examples of these built-in interface features are a multi-page design with styles formatted for mobile, animated pages and collapsible panels, and buttons designed for the touch-sensitive capabilities of smartphones, tablets, and other touch-enabled screens.
The default layout for a jQuery Mobile project includes page elements targeted for touchscreen interfaces.
You can build an entire site as a native application by choosing Site > Mobile Applications > Build. For the Android operating system, Dreamweaver helps install the necessary SDKs on your system using the Easy Install option. For iOS, you need to install Apple’s Xcode or the Apple iOS SDK manually to compile the applications from Dreamweaver.
Designers and developers have long used the World Wide Web Consortium (W3C) as a resource to help them troubleshoot problems. The W3C provides a free service that will check your HTML, XHMTL, and CSS documents for syntax errors. In the past, you would have had to go to the W3C website and either upload your file or copy and paste your code into their web interface. Dreamweaver CS5.5 now allows you to send your file directly by clicking the W3C button at the top of your document window. The results then appear within a W3C Validation window in Dreamweaver.
Learn Dreamweaver with this Adobe Dreamweaver Tutorial based on the book written by AGI's Adobe Certified Instructors and used in AGI's Adobe Dreamweaver training classes. This Dreamweaver tutorial is provided free of charge for you to learn Dreamweaver on your own and to see the quality of the Dreamweaver book, Dreamweaver training, and Dreamweaver tutorials created by AGI. To learn Dreamweaver with the help of one of our expert instructors please visit AGI's training website. If you are interested in buying this Dreamweaver training book you can buy it on-line at Amazon.com or at your favorite local book store. The team at AGI hopes that you find this Adobe Dreamweaver tutorial a useful way to learn Dreamweaver.