How to design a good site layout

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

How to design a good site layout

Post by aceconcepts »

Hi,

Currently I use dreamweaver templates to cater for contant aspects of the site such as headers and footers and also left-aligned vertical menus.

I've tried using includes but it proves a bit tricky when it comes to vertical menus.

I was just wondering if there was a better way of laying out a site.

I would appreciate any insight.

Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

A template engine?

Template Lite and Smarty are fairly popular.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How to design a good site layout

Post by Christopher »

aceconcepts wrote:I've tried using includes but it proves a bit tricky when it comes to vertical menus.
Why have you found this tricky?
(#10850)
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Post by aceconcepts »

When I say i've tried using includes, I mean includes without a template structure.

Trying to use an include in order to display a vertical menu (ideally on the left) does not display inline with the content region (using tables to display the data).

e.g.

The only way I can display includes correctly is by placing an include in <td></td> of a template.

Code: Select all

<!--TEMPLATE STRUCTURE-->
<table width="100%">
<tr>

<td><? include"leftVerticalMenu"; ?></td>

<td><? include"contentRegion"; ?></td>

</tr>
</table>
I was just wondering if there was another way of doing this without a table template.

Thanks, hope you get my point.
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

I think this is more a client side question. If you show us the output (html/css) we can help some more.
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Post by aceconcepts »

I was just wondering how one might layout a site's structure alternate to using table templates.

I probably am posting this in the wrong place.

Thanks anyway.
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

An alternative is using CSS (cascading style sheets). Most of the times you will wrap your main content area's in divs and position those with rules in your stylesheet.
Post Reply