| CSS (Cascading Style Sheet) Templates in ImageReady CS |
|
Here's a few simple steps to publishing your web layouts CSS (Cascading Style
Sheet) driven directly with ImageReady before it even reaches your favorite html
editor. Now, create a simple layout from a 'Make Website' action preset from the
actions list.
Note: Make sure you have a blank document open as mentioned earlier,
otherwise you will be prompted with a serious of error messages related to the
action.(Which requires to be run on an active document) Click above image for a larger view! This action creates a ready made layout design, complete with 2-state roll-over navigational buttons and with slices. (As indicated by the blue/green border areas) An Important Note with this template to be aware of is that once you
'Save Optimized As' to generate the html file for the browser, this template
generates not only one html file, but 6 html files. One for the 'File Name'
preference you give it in the 'Save Optimized As' dialog box. The remaining 5
html files are automatically created for each button navigational item.
Hit the 'Next' button on the right to go to the 'Saving Html Files'
preference (As captured below), and the option to 'Output Multiple Files' is
what produces the above extra navigational bottoms on the fly.
Back to the web layout and creating the .css elements for the html pages. You may have noticed it already if you wondered through the above settings. To set up for css compatibility, go back to that same 'Output Settings' menu button (Highlighted in Red), and from the list choose 'Other'. (As I have captured below)
Hit the 'Next' button until you get to the 'Slices' options. Then simply,
then simply activate the 'Generate CSS' feature, choosing one of the three style
options(ID, Inline, By Class). (As I have captured below)
Now with this feature active, the next time you go to 'Save Optimized As',
ImageReady will include all the necessary .css style information embedded into
your html file.
As the above indicates, the 'Generate Table' option produces the standard
Table/Td/Tr tags to the layout scheme based on the template slice positions. If you viewed this action preset web page layout in your default browser with
the 'Generate Table' option activated, everything appears as it should.
This occurred only due to the nature of how this action driven Create Web
page was built. I quickly fixed this problem by going to the 'Table' Palette and
changed the 'W' (Width) parameter from 'Percent to Pixels. (This fixed the top
overlapping Blue Band) Now lets say you want to use this css output capability at any given time.
Again browse (hit the 'Next' button, to the 'Slices' area and activate
'Generate CSS'.
So, now the next time you want to use this css preset, go back to 'Output Settings' menu command and in the list is the new one just created. (As captured below) Select it and 'Save Optimized As' you layout with the new css settings.
Note: Make sure to change the 'Output Settings' from your 'Custom
Name' preset to 'Default' for future layouts that don't require it.
|