Log in

View Full Version : div or tables



Son Of UAE
08-11-2009, 04:21 PM
hi , i use to make template ,designing it , then i cut the designs into slices , then i use Microsoft Expression Web 2 to make the template using tables and some css
but i find out that their is some other way not tables , but some professional way , so i am asking what is it and how to use it

davelf
08-12-2009, 12:48 AM
i don't think there are junior way or professional way to make a layout in website, as long your web layout look good and all the function work, it's good right.
I use table and css too, when making a layout

beside the table and css, we can use frameset, but i still think table and css is better.:)

Son Of UAE
08-12-2009, 02:07 PM
will , for example let me put some codes from joomla template

<div id="wrapper">

<div class="wrapper-container-t">
<div class="wrapper-tl"></div>
<div class="wrapper-tr"></div>
<div class="wrapper-t"></div>
</div>

<div class="wrapper-b">
<div class="wrapper-l">
<div class="wrapper-r">
<div class="wrapper-bl">
<div class="wrapper-br">
<div class="wrapper-container">

<?php if ($this->countModules('top + top-equal + top-goldenratio')) : ?>
<div id="top">
<div class="floatbox ie_fix_floats">

<?php if($this->countModules('top')) : ?>
<div class="topblock width100 float-left">
<jdoc:include type="modules" name="top" style="yoo" />
</div>
<?php endif; ?>

<?php if ($pos = $yootools->getModulePosition(array('top-equal', 'top-goldenratio'))) : ?>
<?php while ($param = $yootools->renderModulePosition($pos)) : ?>
<div class="topbox <?php echo $param['width'].' '.$param['separator']; ?> float-left">
<jdoc:include type="modules" name="<?php echo $param['name']; ?>" style="yoo" order="<?php echo $param['order']; ?>" />
</div>
<?php endwhile; ?>
<?php endif; ?>

</div>
</div>


you can see here "div id="wrapper"

their is id for each Div which we can use i think for 3d party language like java c# or AJAX
i don't know , i am just saying

davelf
08-13-2009, 03:34 AM
i just think it's more difficult to place all of your frame at the right position, like the example you gave, than using the traditional way with table + css. But everybody have it's own style. thx for your information:)