Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 1 of 2 12 LastLast
Results 1 to 15 of 23

Thread: HTML Tables

  1. #1
    New Coder
    Join Date
    May 2005
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question HTML Tables

    If anyone knows laying out webpages with tables...I need some help.
    What I have is 2 rows 2 columns. The 2nd row 1st column is the cell
    used for all the links on the webpage. In the 2nd row 2nd column, I
    have a nested table to be the body of the website, where all the
    content goes. It's the basic layout, a top, left side navigation and
    right side content.


    What is not working is the links. When you click on a link in the
    table, it is supposed to open up in the nested table cell, but instead
    it opens up in a whole new window. I've got this to work a while ago,
    so I know it can be done, I'm just not sure how I got it to work, hehe.


    I am new to making webpages and I know that frames are not the way to
    go when laying out webpages. I heard that tables were better to use
    when laying out webpages. Like I said though...I am new to making
    webpages. If any of you can help, I'd appreciate it a lot! Thanks!

    -Matt

  • #2
    Regular Coder
    Join Date
    May 2005
    Posts
    220
    Thanks
    1
    Thanked 2 Times in 2 Posts
    You know, in all honesty I disagree with the fact that frames is not as good as tables. Frames allow you to open a site within that area. Here is what I suggest.

    Make 2 websites that you want. Then merge them together using frames and it will work. If you need help with frames and/or attributes I will list them below:

    <frameset></frameset>
    Replaces the <body> tag in a frames document; can also be nested in other framesets
    <frameset rows="value,value">
    Defines the rows within a frameset, using number in pixels, or percentage of w idth
    <frameset cols="value,value">
    Defines the columns within a frameset, using number in pixels, or percentage of width
    <frame>
    Defines a single frame — or region — within a frameset
    <noframes></noframes>
    Defines what will appear on browsers that don't support frames


    <frame src="URL">
    Specifies which HTML document should be displayed
    <frame name="name">
    Names the frame, or region, so it may be targeted by other frames
    <frame marginwidth=#>
    Defines the left and right margins for the frame; must be equal to or greater than 1
    <frame marginheight=#>
    Defines the top and bottom margins for the frame; must be equal to or greater than 1
    <frame scrolling=VALUE>
    Sets whether the frame has a scrollbar; value may equal "yes," "no," or "auto." The default, as in ordinary documents, is auto.
    <frame noresize>
    Prevents the user from resizing a frame

    I hope this helps you.

    -vapor

  • #3
    New Coder
    Join Date
    May 2005
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This helps a lot with frames. I realize frames will work fine, and am familiar with them also. However, I was looking to get away from frames.

    Any other opinions on frames vs. tables vs. any other ways to layout webpages? Or if what I previously mentioned will even work.

    I am new to making webpages and would like to know how others go about structuring the overall layout of their site. I.E. frames, tables, divs, etc.

    Thanks.
    -Matt

    If need-be I will use frames, but from what I have read of books and others, frames are an old way of making websites, and when having a lot of content, loads slower. That's why I'm a little confused and would like your opinions. Thanks again!

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Wait what? Opening a link inside a table cell? Are you using an iframe? Why are you even using tables? They aren't for web design. If you are trying to move away from frames then why not move away from tables as well? Show us your code and we will be able to provide more answers.

  • #5
    New Coder
    Join Date
    May 2005
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The reason I am using tables is so the webpage resizes automatically. Also, it will be viewable from any device, not just a computer. People will be able to view it from a PDA, Phone, etc. without any viewing troubles. I don't know of any other way right now to get webpages to auto-resize.

    I did figure out the problem why the links weren't working (opening up in another cell). You create a template page with a parent table, then nest another table where you want the content of the webpage to go (the body). All the pages you create from then on have to include the parent table, and it has to be exactly the same. You can do whatever inside the nested table, but the parent table (# of cells and stuff) has to be the same in order for the links to work properly. I don't know why, but that is how it has to work.

    -Matt

  • #6
    Smokes a Lot
    Join Date
    Jul 2003
    Location
    CA, USA
    Posts
    1,594
    Thanks
    5
    Thanked 20 Times in 20 Posts
    I hate to break this to ya, but pda's are a reason to not use tables. Take aero's advice and post your code and let someone have a look. It's valuable info.

    Basscyst
    Helping to build a bigger box. - Adam Matthews

  • #7
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts

    Internet Explorer

    Quote Originally Posted by _Aerospace_Eng_
    Why are you even using tables? They aren't for web design.
    LOL!

    What are you talking about?
    <div> - putting your mind in a box since 1997

  • #8
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by ArcticFox
    LOL!

    What are you talking about?
    He means that tables are for tabular data - numerical data etc rather than for website layouts. Website layouts are supposed to be done via CSS. Website layouts do not constitute tabular data.

    Jamie.

  • #9
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts

    Internet Explorer

    OMG! Blah, blah, blah-bla, blaaaaaaaaa......

    CSS people really need to get off your high-horses. "CSS only", "validated", "no tables", "no frames", plain boring easter-looking dictionarystyle blah blah bla... man, next you'll be dressing in bedsheets and telling everyone they have to be just like you.


    Spankinator: it's your site. You can design it however you like; tables, frames, iFrames, etc. Don't listen to these CSS cultists. If it shows up good in major browsers, then it doesn't matter how you get there. These people want you to code for their browsers - browsers no one's ever heard of. And they do it just to cry about MS/IE.

    Plugging my site as always: http://arctic.ithium.net/
    Frames, iFrames, tables, JS, png images... validator violator, and cross browser compatible IE4.01-IE6/NS4+/FFox/Moz1.6+/Opera7+
    <div> - putting your mind in a box since 1997

  • #10
    Regular Coder
    Join Date
    May 2005
    Posts
    109
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's true. CSSers are a bit wacko. I mean, I dunno why anyone would want to make a page easier to edit, compatible on more devices, user stylable, more accessible, quicker to download, and a little different from every tables+photoshop site stinking up the web.

    yeah, total cultish freaks.

    Where's a good place to buy bedsheets anyway?


    Will

  • #11
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by syrupcore
    It's true. CSSers are a bit wacko. I mean, I dunno why anyone would want to make a page easier to edit, compatible on more devices, user stylable, more accessible, quicker to download, and a little different from every tables+photoshop site stinking up the web.
    Thanks

    One of the reasons why people use CSS for layout rather than tables is because we want websites to be accessible to a lot of people in different browsers and platforms. Another reason is because CSS is, in a way, easier to code. Who wants slow loads, hard to design websites all the time? Wouldn't you prefer a faster loading, accessible, easy to update/maintain website?

    People who know the benefits XHTML/CSS only advise people, they dont *make* them follow web standards.

    just my views on this...

    Jamie.
    Last edited by JamieR; 05-28-2005 at 08:55 PM.

  • #12
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yea I don't wana turn this into a CSS vs ... thread, but since using CSS my sites are much faster, rank highly in search engines, and are far easier to update - one file versus changing each page individually. Once you make the change, you'll see why you'd want to use it.

  • #13
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Quote Originally Posted by ArcticFox
    OMG! Blah, blah, blah-bla, blaaaaaaaaa......

    CSS people really need to get off your high-horses. "CSS only", "validated", "no tables", "no frames", plain boring easter-looking dictionarystyle blah blah bla...

    If it shows up good in major browsers, then it doesn't matter how you get there. These people want you to code for their browsers - browsers no one's ever heard of. And they do it just to cry about MS/IE.
    You're kidding right? You don't really believe that the push towards CSS is only to have things look good in browsers?

    Maybe you need to have a good read on web standards and realize that the web is not all about displaying correctly on a computer monitor.

    Like it or not, the Web is a technology--a constantly evolving communal one--and CSS "cultists" are only one of many who want to see it evolve in the proper direction.

    Considering your website keeps touting forward-thinking science and technology I'd think you would understand that.

    Oh, and I can think of at least fifty CSS-only sites that look so much better than yours, which breaks in my browser, BTW.

  • #14
    Regular Coder
    Join Date
    Nov 2004
    Location
    The Netherlands
    Posts
    551
    Thanks
    0
    Thanked 0 Times in 0 Posts
    To make a long story short: go take a look at a site like ebaumsworld and look at their code. Now look at a css site, eg stu's site for the code. Also look at his archive for the different styles.

    Stu has no images on his pages, and still his site looks more professional then any other common table site.

    Just code is a reason to go CSS for me. And i'm not even talking about the other benefits...
    CATdude about IE6: "All your box-model are belong to us"

  • #15
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts

    Angry

    Looks like another boring blog.

    Looks like every other blog I've ever seen.

    Looks like every other CSS/validated site I've ever seen.

    Show me something new, exciting, different.
    Show me a site where I couldn't tell it was done entirely in CSS.
    Show me a site done entirely in CSS, that's validated, and that doesn't look like a home for the easter bunny.
    <div> - putting your mind in a box since 1997


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •