I would love it if there were built-in tables in Sandvox, and I know I'm not alone: but just at the moment I'd settle for the ability set tab stops and to use 'tab' characters to line text up. AFAIK this doesn't work, indeed the tab character doesn't seem to be part of the character set recognised by Sandvox (tabs seem to skip to the next part of the page). The suggestion in the Help section that you can do this by using TextEdit to create the effect you want and then paste the result into Sandvox doesn't work for me, as the tab settings don't seem to transfer across and so the spaces created by them don't show up.
Does anyone know of a quick way of creating columns either by setting tabs or importing formatted text from another package? I have gone down the HTML-injection path for a full-blown table but this seems overkill for such a simple requirement.
The problem is that tabs essentially don't exist in HTML. Just as multiple spaces do not. HTML collapses all of that "white space" to a single character. You can use non-breaking spaces, but the width of those change depending on the font used. A table editor is on our list for the future. (We have made progress. Bullet lists were first.)
Thanks, I wasn't aware that HTML doesn't have a proper white space management system, although I do no some of the history of markup languages so I should have guessed. For the present I will either give up on the idea or insert another HTML table via an intermediate 'constructor' site like quackit as suggested in the Sandvox documentation. The only thing about this is the bag of warnings you get that your HTML is somehow old-fashioned - but it works.
Sounds as if you should be using CSS. With that you can make liquid columns easily enough. Trouble is, I don't know if you can easily insert that sort of CSS into a Sandvox document and expect it to remain there during updates and the like.
macdafydd: that's what Site Code Injection, Style Sheet tab is for: put your CSS changes there, not in the design package so that the CSS changes travel with the document, not within the application/designs.
Thank you, Terrence.
So there you are, Livfoss, some CSS for columns; much nicer than tables.
Here's an example of a simple three-column layout, created in Sandvox, using CSS and HTML, with no recourse to tables:
Site Code Injection was used to insert the CSS and the data was placed with Edit Raw HTML. (The text I used was merely copied and pasted from one of my sites: the underlining is because each title is also a link.)
It's all based on Matthew James Taylor's excellent http://matthewjamestaylor.com/blog/ulti … pixels.htm (and he offers plenty of other interesting CSS tips).
Last edited by macdafydd (October 2, 2011 8:14 am)
I have downloaded this from Mathew James Taylor. Does anyone know how or where to be able to use it?
http://matthewjamestaylor.com/blog/perf … t-menu.htm
Matthew's code is not specific to Sandvox. Matthew provides CSS code and an example of HTML which makes use of this CSS. You have to extract the appropriate CSS from the downloaded file screen.css (iy's the part form the /* column container comment to the /*Footer styles comment) and insert it into your Sandvox document, which you do with Edit>Site Code Injection… (or Page Code Injection…, depending on whether you want the CSS to apply to the whole site or just the page you are working on), then select the Stylesheet tab and paste the CSS in the resulting field. Close the Injection window (there's no Save, this being done automatically).
Now you work in the page you want the two-column layout to appear. Place a Raw HTML object there, select it and use the menu Edit>Edit Raw HTML… Replace the default HTML with the HTML copied and adapted to your own contents from Matthew's own page HTML: basically this is the part from <div class="colmask rightmenu"> up to and including the >/div> on the line preceding <div id="footer">.
Remember that Matthews own page actually makes use of both the CSS and HTML coding, so it's up to you to remove his text parts and replace them with your own, as required by yourself.
Here's a quickie I've just made, so you can see what it looks like in Sandvox:
(Just one caveat: the fixed sizes of Sandvox designs preclude the liquidity of Mattews designs, which is a pity. To get an idea of what this means, take a look at my page http://davidneale.eu/elvis/originals/ and see what happens when you reduce the width of the window.)
Last edited by macdafydd (October 2, 2011 1:04 pm)
To make things somewhat easier, I have started a small site regarding the use of columns. No doubt I shall add other musings in the future. See it at http://davidneale.eu/sandvox/