osCmax v2.5 User Manual
Results 1 to 8 of 8

Can anyone walk me through css for tables

This is a discussion on Can anyone walk me through css for tables within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I am trying to make my product data look the same and I believe this should be done by css, ...

      
  1. #1
    Member
    Join Date
    Feb 2009
    Location
    UK
    Posts
    85
    Rep Power
    4


    Default Can anyone walk me through css for tables

    I am trying to make my product data look the same and I believe this should be done by css, but I only have experience of editing stylesheet.css to alter colours etc, not actually referncing it.

    The following pages of tables from my site were entered and editted usig fceditor, but I want all the data tables on my pages to look like this centred one:

    Immune Systems Ltd : Bovine Casein ELISA Kit [E-10CAS] - £266.13

    instead of this left hand aligned table:

    Immune Systems Ltd : Bovine Haptoglobin ELISA Kit [E-10HPT] - £266.13
    I realise I can do this by referencing stylesheets, but can anyone walk me through (i) what I need to put in the stylesheet.css to apply a centred table, and (ii) what code/reference I need to put in the source code of the fceditor to tell it to apply the class from the stylesheet.css

    There are a host of other styles I want to apply, but I figure I can add other styles later once I am shown the basics.

    Thanks for any help.

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Lightbulb Re: Can anyone walk me through css for tables

    Here's a source of useful info.
    W3Schools Online Web Tutorials
    Hosting plans with installation, configuration, contributions, support and maintenance.

  3. #3
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    indiana
    Posts
    640
    Blog Entries
    1
    Rep Power
    27


    Default Re: Can anyone walk me through css for tables

    And after you're done there, try to get on path to convert your tables to divs unless they need to be tables (such as with tabular data). Other than that controlling blocks of space should be div centric. using styles="" is excellent for CSS and using ID="" is excellent for running javascript/jquery/ajax actions.

    One of my favorite web sites I recommend to anyone is
    A List Apart

    They're CSS articles are golden.

    bh

  4. #4
    Member
    Join Date
    Feb 2009
    Location
    UK
    Posts
    85
    Rep Power
    4


    Default Re: Can anyone walk me through css for tables

    OK, had a look, added a stylesheet (datatable.css) with formating that is specific for my data tables, but whenever I add

    <link rel="stylesheet" type="text/css" href="datatable.css" /> at the top of my product data in source mode in the FCKeditor, then look at source mode again this line has gone. What is the syntax for referencing an external stylesheet in the editor?

    Cheers.

  5. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Can anyone walk me through css for tables

    You cannot add that in FCKeditor, it must be added in your template's <head> section. The best way to do this is to simply add your new styles into your template's main stlyesheet.css, just use comments to describe the custom block for easy reference later.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  6. #6
    Member
    Join Date
    Feb 2009
    Location
    UK
    Posts
    85
    Rep Power
    4


    Default Re: Can anyone walk me through css for tables

    Thanks Michael. I will try this later.
    Running oscMax 2.0.25
    Mainly tabular format data website
    Not a programmer !

  7. #7
    Member
    Join Date
    Feb 2009
    Location
    UK
    Posts
    85
    Rep Power
    4


    Default Re: Can anyone walk me through css for tables

    Great. Got some of this to work but it seams CSS cant be used to format column text (ie to get ALL of column 1 in bold) from the table class.

    Cheers.
    Running oscMax 2.0.25
    Mainly tabular format data website
    Not a programmer !

  8. #8
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Lightbulb Re: Can anyone walk me through css for tables

    Code:
    <span class="column1">.....</span>
    Hosting plans with installation, configuration, contributions, support and maintenance.

Similar Threads

  1. Prefix for Database Tables
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 09-09-2009, 10:00 AM
  2. Terrible tables and doubel div in IE8
    By sebakPL in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 08-07-2009, 06:12 AM
  3. Design with CSS instead of tables
    By simplex in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 05-07-2007, 04:42 PM
  4. Paypal setup walk through needed
    By zues in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 10-22-2006, 07:21 AM
  5. Tables not installing
    By Arpit in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 08-26-2003, 09:51 AM

Bookmarks

Posting Permissions

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