Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5

Thread: CSS Help

  1. #1
    Junior Member
    Join Date
    May 2013
    Posts
    6
    Member #
    36292
    I am trying to convert my site from 4.01 Transitional to HTML5. I am not a web programmer so this is a challenge. It takes a long time for me to get anything done but I am progressing nonetheless in these early stages. Here is my current challenge.

    The validator.w3.org tells me to put all the table formatting in a CSS file. Could someone give me the proper CSS 3.0 code for the table formatting ?

    <div id="nav">
    <TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD COLSPAN=9>
    <IMG NAME="patterns_header" SRC="../images/patterns_header.jpg" WIDTH=800 HEIGHT=114 ALT="" ALIGN="bottom"></TD>
    </TR>
    <TR>
    <TD ROWSPAN=2>
    <IMG NAME="patterns_02" SRC="../images/patterns_02.jpg" WIDTH=131 HEIGHT=43 ALT=""></TD>
    <TD>
    <A HREF="http://www.c2knits.com/" TARGET="_self"
    ONMOUSEOVER="changeImages('patterns_header', '../images/patterns_header-t-but-0_ove.jpg', 'patterns_02', '../images/patterns_02-t-but-0_over.jpg', 't_but_0', '../images/t-but-0-over.jpg', 't_but_1', '../images/t-but-1-t-but-0_over.jpg', 'patterns_11', '../images/patterns_11-t-but-0_over.jpg'); return true;"
    ONMOUSEOUT="changeImages('patterns_header', '../images/patterns_header.jpg', 'patterns_02', '../images/patterns_02.jpg', 't_but_0', '../images/t-but-0.jpg', 't_but_1', '../images/t-but-1.jpg', 'patterns_11', '../images/patterns_11.jpg'); return true;">
    <IMG NAME="t_but_0" SRC="../images/t-but-0.jpg" WIDTH=81 HEIGHT=28 BORDER=0 ALT="" ></A></TD>
    <TD>
    <A HREF="patterns.html" TARGET="_self"
    ONMOUSEOVER= ................................................ET C

    Thank you in advance for your assistance. I really appreciate it. I'll try to pay it forward.

  2.  

  3. #2
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    If you;'re trying to go to HTML5 - get rid of the tables. Tables are meant to display tabular data, they are not meant to be used for layout. Read up on how to use <div> tags and CSS for layout - here are a couple of links for you;
    http://learncss.tutsplus.com/
    http://www.beginnersguidetohtml.com/...ayout/div-tags
    SUP2morrow and TheGAME1264 like this.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  4. #3
    Junior Member
    Join Date
    May 2013
    Posts
    6
    Member #
    36292
    Quote Originally Posted by AlphaMare, post: 251212, member: 20289
    If you;'re trying to go to HTML5 - get rid of the tables. Tables are meant to display tabular data, they are not meant to be used for layout. Read up on how to use <div> tags and CSS for layout - here are a couple of links for you;
    http://learncss.tutsplus.com/
    http://www.beginnersguidetohtml.com/...ayout/div-tags
    Thank you for your reply. I was hoping to continue to use tables to make this process proceed a little faster. But I will take the time to learn this stuff I guess. Thanks again.

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    It won't make it any faster. If anything, it'll slow you down because of the extra markup.

    If you want to speed up the process, think of a page as a cake. Would you eat the whole cake at once? No. You'd cut it up into slices, and take one slice at a time. Your page can be "cut up' the same way...header, column 1, column 2, ... column n, footer. Do one "slice" at a time, then move on to the next.

    This is the thing that slows people down the most...they try to do too much at once. I'm just as guilty of this as anyone else, though.
    SUP2morrow likes this.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  6. #5
    Junior Member
    Join Date
    May 2013
    Posts
    6
    Member #
    36292
    Quote Originally Posted by TheGAME1264, post: 251222, member: 428
    It won't make it any faster. If anything, it'll slow you down because of the extra markup.

    If you want to speed up the process, think of a page as a cake. Would you eat the whole cake at once? No. You'd cut it up into slices, and take one slice at a time. Your page can be "cut up' the same way...header, column 1, column 2, ... column n, footer. Do one "slice" at a time, then move on to the next.

    This is the thing that slows people down the most...they try to do too much at once. I'm just as guilty of this as anyone else, though.
    OK. thanks for the additional hints - they will give me a place to start. Appreciate it.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:14 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com