www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > CSS

    CSS Discussion and technical support relating to Cascading Style Sheets.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 04-01-2007, 04:25 AM
    NotionCommotion NotionCommotion is offline
    Registered User
     
    Join Date: Dec 2005
    Posts: 233
    Setting table column width

    Can anyone let me know how to set the width of all columns to 50px except the first row which should be 100px? I thought I would first set them all to 50, and then assign a class to the first row and set that one to 100, but it doesn't seem to work (see below). Thanks

    Code:
    #table_id td {border: 1px solid; width: 50px;}
    td.first_column { width: 100px; font-weight: bold; }
    .top_row td {font-weight: bold; }
    Reply With Quote
      #2  
    Old 04-01-2007, 09:37 AM
    Fang's Avatar
    Fang Fang is offline
    Resistance is futile
     
    Join Date: Apr 2003
    Location: Netherlands
    Posts: 18,435
    Specificity
    Code:
    #table_id td.first_column { width: 100px; font-weight: bold; }
    __________________
    At least 98% of internet users' DNA is identical to that of chimpanzees
    Reply With Quote
      #3  
    Old 04-01-2007, 12:14 PM
    NotionCommotion NotionCommotion is offline
    Registered User
     
    Join Date: Dec 2005
    Posts: 233
    Thanks Fang!
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 02:55 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.