Go Back   Forums > Community Chatterbox > Tech Corner
Memberlist Forum Rules Today's Posts
Search Forums:
Click here to use Advanced Search

Reply
 
Thread Tools Display Modes
Old 09-03-2006, 10:09 AM   #1
Bobbin Threadbare
Not quite dead.
 
Bobbin Threadbare's Avatar

 
Join Date: Jul 2005
Posts: 1,127
Unhappy

How do you make a seperate table next to another one?

It normally appears like this:

(all this code tagged stff is best viewed in 1280x1024)
Code:
|?????|
| * * |
| * * |
| * * | <--Nav
| * * |
|_____|

|???????????????|
| * * * * * * * |
| * * * * * * * | <--Blog-ish thing
| * * * * * * * |
|_______________|
However, I want it like this:

Code:
|?????| * *|?????????????|
| * * | * *| * * * * * * |
| * * | * *| * * * * * * |
| * * | * *| * * * * * * |
| * * | * *| * * * * * * |
|_____| * *|_____________|

 * ^ * * * * * * * * * ^
 * | * * * * * * * * * *|
Nav * * * * *Blog-ish thing
Help me.
__________________
Bobbin Threadbare is offline                         Send a private message to Bobbin Threadbare
Reply With Quote
Old 09-03-2006, 11:11 AM   #2
Rogue
10 GOSUB Abandonia
20 GOTO 10
 
Rogue's Avatar

 
Join Date: Nov 2004
Location: Afrim, Albania
Posts: 2,113
Default

Just use table....

Code:
<table border="0" width="100%">
 *<tr>
 * *<td width="100">nav</td>
 * *<td width="700">blogish thing</td>
 *</tr>
</table>
In this example nav is 100 px wide, while blog-ish thing is 700. So you're overall width is 800. Play with that to create best view.
Rogue is offline                         Send a private message to Rogue
Reply With Quote
Old 09-03-2006, 11:11 AM   #3
Reup
10 GOSUB Abandonia
20 GOTO 10
 
Reup's Avatar

 
Join Date: Dec 2004
Location: Eindhoven, Netherlands
Posts: 1,508
Default

The evil thing is to make another table that encapsulates both the tables. So you'll get nested tables, which is evil because it's a b!tch to maintain. Make a single row, three cells, put the first table in the first cell, second one is your seperator, third cell contains your second table.

An alternative, which is better from a design point of view is to use stylesheets to position the tables (using the left, top and position attributes). This requires some experimenting but leads to much cleaner code!
Reup is offline                         Send a private message to Reup
Reply With Quote
Old 09-03-2006, 02:36 PM   #4
The Fifth Horseman
FUTURE SCIENCE BASTARD
 
The Fifth Horseman's Avatar


 
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
Default

Also the much loathed and misunderstood FRAMES can be used.

They aren't as bad as people think.
I use them on my own site in fact, and can say that they have quite helped.
__________________

"God. Can't you people see I'm trying to commit a crime against science and nature here?"
-- Reed Richards
The Fifth Horseman is offline                         Send a private message to The Fifth Horseman
Reply With Quote
Old 09-03-2006, 03:00 PM   #5
plix
Game freak

 
Join Date: Oct 2005
Location: ,
Posts: 113
Default

If you're going to use CSS to do it you might as well do it correctly and not use tables at all. Tables are for tabular data, not for layout. A pretty good rule of thumb when creating them is to ask yourself "Would this make sense if I put it into Excel?"

Frames may be misunderstood by some, but they're loathed for good reason. They break printing, semantics, back/forward-button flow, hyperlinking, and a few other things. I'd actually be quite interested in hearing what valid reason they do have for existing (and, in fact, have been eliminated in XHTML strict DTDs and exist only in the transitionals).
plix is offline                         Send a private message to plix
Reply With Quote
Old 09-03-2006, 04:24 PM   #6
_r.u.s.s.
I'm not Russ
but an ex-alektorophobic
 
_r.u.s.s.'s Avatar


 
Join Date: May 2005
Location: Nitra, Slovakia
Posts: 6,533
Default

Quote:
Originally posted by the_fifth_horseman@Mar 9 2006, 03:36 PM
Also the much loathed and misunderstood FRAMES can be used.

They aren't as bad as people think.
I use them on my own site in fact, and can say that they have quite helped.
hey, i love frames
i thnk that whole problem of ppl who dont understand is that most of newbees put source(i mean<body> stuff of frames) in to "frameset" HTML file (some index.htm for example)

so if you whish to use frames

// <-is note if you wont figure it out=)
Code:
<HTML>
<HEAD>
<TITLE>bobbins site</TITLE>
</HEAD>


<FRAMESET COLS="10%,*" BORDER=0> //COLS meants that you ll have vertical frames (you can use ROWS too, which means tha you are making horizontal frames); i have defined size of frame in percents but you can use pixels too(likeCOLS="100" ); borders.. are borders=)(size of it)

 *<FRAME SRC="c:\..blahblah.htm" NAME="1st frame" SCROLLING=AUTO NORESIZE>//put file you want to be shown in first(left) frame; name is used to acces frame from any other(like <A HREF="site.htm" TARGET="1st frame" >); i think you have figured out what scrolling is=]; noresize is that you wont be able to resize on "mouse over border of frame", man just put it there, cuz all the sites look very n00bish without noresize frame property
 *<FRAME SRC="c:\..blahblah2.htm" NAME="2nd frame" SCROLLING=AUTO NORESIZE>//second frame

</FRAMESET>


<NOFRAMES>
<BODY>
for explorers without frame support there will be some text
</BODY>
</NOFRAMES>
</HTML>

dont put anything else in to this file (except noframes part, if you wish..)
__________________
_r.u.s.s. is offline                         Send a private message to _r.u.s.s.
Reply With Quote
Old 09-03-2006, 04:45 PM   #7
plix
Game freak

 
Join Date: Oct 2005
Location: ,
Posts: 113
Default

HTML comments are started with <!-- and ended with --> (SGML comments are a touch different, but that's beside the point). However, all you've done is explain how to use frames rather than why you'd want to. Frames are even more egregious than improperly used tables because they don't have any valid use and I have yet to hear a reasonable argument to the contrary.
plix is offline                         Send a private message to plix
Reply With Quote
Old 09-03-2006, 05:19 PM   #8
The Fifth Horseman
FUTURE SCIENCE BASTARD
 
The Fifth Horseman's Avatar


 
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
Default

I've used frames on my website. The result is much easier navigated, and somewhat better looking.
__________________

"God. Can't you people see I'm trying to commit a crime against science and nature here?"
-- Reed Richards
The Fifth Horseman is offline                         Send a private message to The Fifth Horseman
Reply With Quote
Old 09-03-2006, 05:48 PM   #9
plix
Game freak

 
Join Date: Oct 2005
Location: ,
Posts: 113
Default

Quote:
Originally posted by the_fifth_horseman@Mar 9 2006, 01:19 PM
I've used frames on my website. The result is much easier navigated, and somewhat better looking.
Looks-wise the same thing can easily be accomplished with fixed positioning (which is a little tricky to get working in IE, but it's still quite possible).

Navigation-wise I highly disagree. Frames really screw up the back-button and they screw up linking. Linking to a specific page on a site which uses frames for navigation is quite troublesome and very messy. That is to say, frames break my (i.e. the user's) natural forward-back button navigation and they screw up one of the most important features of the web: hyperlinking. Furthermore, that's only addressing the invariable suckyness -- it's a lot worse when you start getting into all the ways people make frames suck in practice.
plix is offline                         Send a private message to plix
Reply With Quote
Old 09-03-2006, 05:49 PM   #10
Reup
10 GOSUB Abandonia
20 GOTO 10
 
Reup's Avatar

 
Join Date: Dec 2004
Location: Eindhoven, Netherlands
Posts: 1,508
Default

I agree with Plix. Don't use frames. Avoid them at all cost.
Use CSS for everything that's not content (take a look at CSS Zen Garden for great examples).
Reup is offline                         Send a private message to Reup
Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Html Calendar Nick Programming 2 15-10-2006 07:54 AM
Html Scroll To: Bobbin Threadbare Tech Corner 2 28-02-2006 05:48 AM
Html Question Kon-Tiki Programming 21 19-02-2006 01:08 AM
Java/html - Two Questions ... swiss Programming 12 12-02-2006 10:57 AM
Html Problem punch999 Programming 6 16-12-2005 09:07 PM


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump
 


The current time is 09:25 AM (GMT)

 
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.