View Full Version : how would i do this?
03-07-2009, 05:18 AM
i want to make a page that looks like this http://i104.photobucket.com/albums/m184/COUTUREE_x3/example.jpg?t=1236402867
i know how to go about making the divs but how exactly do i get the space in between the divs while there within a container?
an example of page that i found similar to my image is this website
Drop Dead Clothing (http://shop.iheartdropdead.com/)
03-07-2009, 05:53 AM
There would be many ways to do it. You could absolute positioning or float, etc.
Here's one example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
03-07-2009, 06:56 AM
For a design like that, I'd probably cheap out and use tables... but I'm lazy like that :P. I'd go with something along the lines of:
<br><br><table align="center" border="0" width="80%">
<td align="center" colspan="3">header image or text or whatever, across the top</td></tr>
<td colspan="3" height="30"></td></tr>
<td align="center" width="10%">Sidebar.<br>
<td align="center" width="87%">Main page thing</td></tr></table>
Again, there's probably about a million ways better to do this, but this is the first one that came to mind for me. And of course, the widths can be made a solid, unchanging number for everything there, or adjusted as needed. Course, it all depends on what you're using it for, too.
03-07-2009, 07:00 AM
never use tables lol crazy bugger
03-07-2009, 07:04 AM
Like I said... lazy and cheaping out :P
03-07-2009, 07:41 AM
Like I said... lazy and cheaping out :PNever use tables for layout. See "Why tables for layout is stupid (http://www.hotdesign.com/seybold/)?" and some good CSS based layouts at http://www.bonrouge.com/2c-hf-fixed.php
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.