CSS question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • X37375787
    • Jul 2026

    #1

    CSS question

    I want to adjust some < td > cell attributes and this is the class I have come up with so far:

    < style type="text/css">
    < !--
    .tcell {
    width:100px;
    height:100px;
    }
    -- >
    < /style>

    Which works when I use

    < td class="tcell" >

    But how for heaven's sakes do I adjust the cell (v-)alignment to center/middle? I've tried align, position and other ways, but it still won't recognize it.
  • jayeff
    Confirmed User
    • May 2001
    • 2944

    #2
    add

    vertical-align: middle;

    to your style settings

    Comment

    • Doctor Dre
      Too lazy to set a custom title
      • Jan 2001
      • 51692

      #3
      For some reason when I use CSS with tables on TGPS my prod always drop of like 5-10 % . Just letting you know
      Originally posted by rayadp05
      I rebooted, deleted temp files, history, cookies and everything...still cannot view the news clip. All I see is that fucking gay ass music video from "Rick Roll". Anyone else have a different link to the news clip?

      Comment

      • The Truth Hurts
        Zph7YXfjMhg
        • Nov 2002
        • 15733

        #4
        doh.
        Last edited by The Truth Hurts; 02-16-2004, 08:05 PM.

        Comment

        • X37375787

          #5
          Originally posted by Doctor Dre
          For some reason when I use CSS with tables on TGPS my prod always drop of like 5-10 % . Just letting you know

          Thanks, but... why would that be?

          jayeff, it worked for vertical alignment...

          text-align:center does it for horizontal alignment. case closed. thanks

          Comment

          • jayeff
            Confirmed User
            • May 2001
            • 2944

            #6
            Originally posted by Doctor Dre
            For some reason when I use CSS with tables on TGPS my prod always drop of like 5-10 % . Just letting you know
            IE and Netscape treat quite a lot of things differently: padding, font sizes (pts) and more. If you aren't v careful, something that looks good in IE can be totally screwed in Netscape. Opera, other/old browsers, also have inconsistencies.

            Don't know if that may be part of your problem, but...

            Comment

            • Ash@phpFX
              Confirmed User
              • Nov 2003
              • 4292

              #7
              Originally posted by jayeff


              IE and Netscape treat quite a lot of things differently: padding, font sizes (pts) and more. If you aren't v careful, something that looks good in IE can be totally screwed in Netscape. Opera, other/old browsers, also have inconsistencies.

              Don't know if that may be part of your problem, but...
              this used to be a bigger problem though, the overwhelming majority use IE now

              Comment

              Working...