You’ll have to use inline at least partially. In order to make an
element center in the page without using the Freeway Inspector to
center the entire page, you have to leave the page alignment at none
(which means the page will be as wide as its widest element in the
browser, and will by default align left).
If you try this very simple layout, you will see what I’m talking about.
- New page, Alignment: none.
- Draw an HTML box at the top of the page from left to right, about
200px tall. Give it a color, think of it as your header. Set the width
to 100% - Draw another colored HTML box as your footer, also 100% width.
- Preview in a browser. Note how it stretches to fill the screen.
Now to add the middle part.
- Draw a third box in between the first two, also 100% width, but no
background. - Double-click inside that box and choose Insert / HTML Item from the
main menu. - Drag that new box out to fill the box you drew in the first step,
and use the Inspector to set its Margin to Auto. - Give this inner box a color so you can see it.
- Preview again, and stretch the browser around to see the effect.
So finally, if you wanted to stay out of the whole Inline/Box Model
wasteland at this point, you could simply draw all of your page
elements as positioned children[1] of the center colored box. This
would cause them to center in the browser, but maintain their relative
position to one another and their nearest parent. That center box
doesn’t have to stay colored for the trick to work, but you could if
you want to. You can also use background images, suitably tiled,
instead of the color fills that make this quick demo look like
something other than a blank screen.
What you give up by not going all the way into a true Inline layout is
the ability of the layout to stretch and grow when your visitors mess
with text sizes or zoom levels in their (non-Safari) browsers. So
there’s still a lot of value in learning inline construction and using
it, but if you want to take it one step at a time, you can do this
limited inline layout first.
Walter
- To position an element as a child of another element, click first
on the item you wish to be the parent, then choose the HTML tool and
draw your child element directly over the parent. You must begin and
end the drag that draws the child entirely over the parent. Once you
begin to draw, you will notice that the cursor becomes a [ + ] shape,
and the edges of the parent element glow blue to indicate you are
targeting that element with your child. You can also change the
heritage of elements by dragging their names around in the site panel
(after expanding the hierarchy by clicking on the little triangle to
the left of the page name in the list).
On Apr 21, 2010, at 10:03 AM, Colm Tuite wrote:
Yeah I guess that’s what I need. I was wondering, I tried resizing
to 100% but my html box just reduced to 30px (the width of my
background).I’ll have a look at that thread. Am I right in saying this page
would have been made with inline construction, since you have a full
width header and footer?
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options