![]() |
#1 | ||
![]() ![]() ![]() Join Date: Jul 2005
Posts: 1,127
|
![]() 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 | * * * * * * * | |_______________| Code:
|?????| * *|?????????????| | * * | * *| * * * * * * | | * * | * *| * * * * * * | | * * | * *| * * * * * * | | * * | * *| * * * * * * | |_____| * *|_____________| * ^ * * * * * * * * * ^ * | * * * * * * * * * *| Nav * * * * *Blog-ish thing |
||
![]() ![]() |
|
![]() |
#2 | ||
![]() ![]() ![]() ![]() Join Date: Nov 2004
Location: Afrim, Albania
Posts: 2,113
|
![]() Just use table....
Code:
<table border="0" width="100%"> *<tr> * *<td width="100">nav</td> * *<td width="700">blogish thing</td> *</tr> </table> |
||
![]() ![]() |
|
![]() |
#3 | ||
![]() ![]() ![]() Join Date: Dec 2004
Location: Eindhoven, Netherlands
Posts: 1,508
|
![]() 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! |
||
![]() ![]() |
|
![]() |
#4 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
![]() 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. |
||
![]() ![]() |
|
![]() |
#5 | ||
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Oct 2005
Location: ,
Posts: 113
|
![]() 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). |
||
![]() ![]() |
|
![]() |
#6 | ||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: May 2005
Location: Nitra, Slovakia
Posts: 6,533
|
![]() Quote:
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..)
__________________
![]() |
||
![]() ![]() |
|
![]() |
#7 | ||
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Oct 2005
Location: ,
Posts: 113
|
![]() 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.
|
||
![]() ![]() |
|
![]() |
#8 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
![]() I've used frames on my website. The result is much easier navigated, and somewhat better looking.
|
||
![]() ![]() |
|
![]() |
#9 | ||
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Oct 2005
Location: ,
Posts: 113
|
![]() Quote:
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. |
||
![]() ![]() |
|
![]() |
#10 | ||
![]() ![]() ![]() Join Date: Dec 2004
Location: Eindhoven, Netherlands
Posts: 1,508
|
![]() 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). |
||
![]() ![]() |
|
![]() |
![]() |
||||
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 |
Thread Tools | |
Display Modes | |
|
|
||
  |