Auto width
Use: Ddrag and drop on the page. Adjust the file list. Copy to the all
pages of this set.
This tweak allows you to create multiple versions of your page with
different page width. When user opens the page, a best variant for his
browser window width is loaded.
The snippet selects the widest page variant that fits to the users
browser window.
1. First of all, you have to create a set of pages which are variants of
the same page with different page width. Set the page width in the
“Page size” tab of Options dialog.
2. Set the filenames for every page in the set (Web properties dialog,
Page tab, “Page filename” field).
3. Drag and drop the “Auto width” tweak to one of these pages and open
the placeholder code (Web properties dialog / Placeholder tab / HTML
code (body)).
4. Scroll down until you see the default list of pages.
5. Replace filenames with file
names of your pages, and width
with correct width of the page.
Important! You have to enter
precisely the same width as is set
in the “Page size” tab.
6. You can add or remove as many
variants as you wish. When you
applied your changes to the
script, copy and paste this
placeholder object to all page variants.
Xara Web Designer
7
Premium
Tweak Set
v.3.0 (April 30, 2011)
© 2009-2011 John W. Horn