+ Reply to Thread
Results 1 to 9 of 9

Thread: Html tables messed up when i use css

  1. #1
    thecarver is offline x10Hosting Member thecarver is an unknown quantity at this point
    Join Date
    Jan 2006
    Location
    France
    Posts
    55

    Html tables messed up when i use css

    I'm completely new to CSS, and i tried putting some into my site, it all worked fine except for one thing: the tables
    all the table fonts are really big, and when i change the font-size attribute for my page, it changes everything except the tables...
    can anyone help me please?
    thanks

  2. #2
    randomize's Avatar
    randomize is offline x10 Lieutenant randomize is an unknown quantity at this point
    Join Date
    Mar 2006
    Posts
    337

    Re: Html tables messed up when i use css

    change your css to the following

    Code:
     
    body, td, th
    {
    font-size: 10px;
    }
    OR

    Code:
    .table
    {
    font-size: 10px;
    }
     
    .........
     
     
    <table class="table" ....>
    Regards,
    Randomize


    Click the animation above to go to the site where they are created!

    \ /
    (.) (.)
    /_
    \_____/
    The Evil Guy will take over all Signatures. Please help him to do this by copying and pasting him into your Signature.
    Thank you For Helping Evil!

  3. #3
    thecarver is offline x10Hosting Member thecarver is an unknown quantity at this point
    Join Date
    Jan 2006
    Location
    France
    Posts
    55

    Re: Html tables messed up when i use css

    thanks for your help
    Last edited by thecarver; 06-30-2006 at 08:00 AM.

  4. #4
    devmaster is offline x10Hosting Member devmaster is an unknown quantity at this point
    Join Date
    Jul 2006
    Posts
    3

    Re: Html tables messed up when i use css

    Quote Originally Posted by thecarver
    I'm completely new to CSS, and i tried putting some into my site, it all worked fine except for one thing: the tables
    all the table fonts are really big, and when i change the font-size attribute for my page, it changes everything except the tables...
    can anyone help me please?
    thanks
    table based designs are a thing of the past css-positioned divs are the future :cool:
    Last edited by devmaster; 07-05-2006 at 05:40 AM.

  5. #5
    jensen's Avatar
    jensen is offline x10 Lieutenant jensen is an unknown quantity at this point
    Join Date
    Nov 2005
    Location
    At my desk
    Posts
    438

    Re: Html tables messed up when i use css

    CSS has been made to replace tables for layouts. So if you are learning CSS, you can learn to make websites without the tables.

    Tables are now mostly used to present data and not for layouts.
    "For I am not ashamed of the gospel of Christ: for it is the power of God unto salvation to every one that believeth" Romans 1:16

  6. #6
    Spartan Erik's Avatar
    Spartan Erik is offline Retired Spartan Erik is an unknown quantity at this point
    Join Date
    Aug 2005
    Posts
    3,382

    Re: Html tables messed up when i use css

    Lol I initially started with HTML based div's; moved on to CSS after that, but never liked it. Tables are easier, for me anyway, as opposed to CSS coded div's

  7. #7
    jensen's Avatar
    jensen is offline x10 Lieutenant jensen is an unknown quantity at this point
    Join Date
    Nov 2005
    Location
    At my desk
    Posts
    438

    Re: Html tables messed up when i use css

    what's your website. Can I try changing it to CSS for you and show you a sample?
    Will just do one pageof course.
    "For I am not ashamed of the gospel of Christ: for it is the power of God unto salvation to every one that believeth" Romans 1:16

  8. #8
    randomize's Avatar
    randomize is offline x10 Lieutenant randomize is an unknown quantity at this point
    Join Date
    Mar 2006
    Posts
    337

    Re: Html tables messed up when i use css

    I originally designed the sites with tables, but recently, I have been messing about with Divs and CSS etc, and it seems to be going ok.

    http://codingfreakz.x10hosting.com/v1

    This is like a test layout that I have been messing around with, using CSS and DIVs, and I must admit, it is easy once you get to know it, except at the moment I am having just a few problems with this, Lol.

    Regards,
    Randomize


    Click the animation above to go to the site where they are created!

    \ /
    (.) (.)
    /_
    \_____/
    The Evil Guy will take over all Signatures. Please help him to do this by copying and pasting him into your Signature.
    Thank you For Helping Evil!

  9. #9
    jensen's Avatar
    jensen is offline x10 Lieutenant jensen is an unknown quantity at this point
    Join Date
    Nov 2005
    Location
    At my desk
    Posts
    438

    Re: Html tables messed up when i use css

    Your site looks ok on the IE6 browser. Except that the menu on the right side seems to be a little further away than it should be. Yesterday on the IE7 beta2 browser your lefthand menu was overlapping the main section.

    Looking at your source shows you are in love with DIV's but it's overdone. Looks more like tables in DIV format.

    You can put all the menu on the left into one div and then put nested div's just for each group of items. So you can move them as a whole group. Try visiting www.cssplay.co.uk for ideas, stu has lots of great CSS work arounds and very into CSS.

    ok here's randomize's page with less DIV's (with compliments)
    http://www.jensen.x10hosting.com/test/randomize1.html
    Last edited by jensen; 07-10-2006 at 09:19 PM.
    "For I am not ashamed of the gospel of Christ: for it is the power of God unto salvation to every one that believeth" Romans 1:16

+ Reply to Thread

Similar Threads

  1. Hybrid's HTML Lessons
    By Hybrid in forum Tutorials
    Replies: 18
    Last Post: 11-28-2009, 02:12 PM
  2. showing html on website
    By swirly in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 12-04-2005, 08:03 PM
  3. [IPB] Contiguous Board Index
    By phenetic in forum Tutorials
    Replies: 5
    Last Post: 09-18-2005, 10:31 AM
  4. What is XML!
    By wizeman in forum Tutorials
    Replies: 6
    Last Post: 08-27-2005, 12:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers