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 3 of 3

Thread: setting w/css

  1. #1
    Senior Member mikeycorn's Avatar
    Join Date
    Mar 2003
    Posts
    272
    Member #
    891
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Figures and Animals from the Gallery of Fred Huddleston</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr> 
        <td height="30" colspan="3"><h3>figures and animals</h3></td>
        <td colspan="3"><h3 align="right"><a href="../index.html">return to fhuddleston.com</a></h3></td>
      </tr>
      <tr> 
        <td width="16%" height="110"><a href="fig/fig001.html"><img src="fig/fig001_tn.jpg" width="96" height="67"></a></td>
        <td width="16%"><a href="fig/fig002.html"><img src="fig/fig002_tn.jpg" width="96" height="66"></a></td>
        <td width="16%"><a href="fig/fig003.html"><img src="fig/fig003_tn.jpg" width="96" height="83"></a></td>
        <td width="16%"><a href="fig/fig004.html"><img src="fig/fig004_tn.jpg" width="77" height="96"></a></td>
        <td width="16%"><a href="fig/fig005.html"><img src="fig/fig005_tn.jpg" width="96" height="68"></a></td>
        <td width="16%"><a href="fig/fig006.html"><img src="fig/fig006_tn.jpg" width="96" height="77"></a></td>
      </tr>
      <tr> 
        <td height="110"><a href="fig/fig007.html"><img src="fig/fig007_tn.jpg" width="96" height="77"></a></td>
        <td><a href="fig/fig008.html"><img src="fig/fig008_tn.jpg" width="60" height="96"></a></td>
        <td><a href="fig/fig009.html"><img src="fig/fig009_tn.jpg" width="71" height="96"></a></td>
        <td><a href="fig/fig010.html"><img src="fig/fig010_tn.jpg" width="68" height="96"></a></td>
        <td><a href="fig/fig011.html"><img src="fig/fig011_tn.jpg" width="96" height="72"></a></td>
        <td><a href="fig/fig012.html"><img src="fig/fig012_tn.jpg" width="96" height="70"></a></td>
      </tr>
    </table>
    </body>
    </html>
    All the cells need to be centered. I tried setting <tr class = "centered"> with the following in my .css file (and I did link to the .css file properly, I think.)

    Code:
    .centered {
    	text-align: centered;
    }
    WHY NO WORK?
    ~ mikeycorn
    With over 72,000 questions worth of user submitted quizzes, it's the world's most popular quiz creation software:
    PEST - The Personal Exam Self-Tester

  2.  

  3. #2
    Senior Member mikeycorn's Avatar
    Join Date
    Mar 2003
    Posts
    272
    Member #
    891
    The answer is:

    Code:
    .centered {
    	text-align: center;
    }
    (not "centered")

    The funny part is that I got that bit from a Dreamweaver template . . .
    ~ mikeycorn
    With over 72,000 questions worth of user submitted quizzes, it's the world's most popular quiz creation software:
    PEST - The Personal Exam Self-Tester

  4. #3
    Member Black Vivi's Avatar
    Join Date
    Apr 2003
    Location
    UK
    Posts
    75
    Member #
    1072
    change ".centered {" to "td {" in the css

    and just to make sure you know, the code to include a css file is this:
    Code:
    <link rel="stylesheet" href="FILENAME" />
    Download Firebird now!


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 09:41 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com