GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   CSS question (https://gfy.com/showthread.php?t=237847)

X37375787 02-16-2004 09:49 PM

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. :helpme

jayeff 02-16-2004 09:51 PM

add

vertical-align: middle;

to your style settings

Doctor Dre 02-16-2004 09:51 PM

For some reason when I use CSS with tables on TGPS my prod always drop of like 5-10 % . Just letting you know :)

The Truth Hurts 02-16-2004 09:55 PM

doh.

X37375787 02-16-2004 09:55 PM

Quote:

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? :helpme

jayeff, it worked for vertical alignment...

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

jayeff 02-16-2004 09:56 PM

Quote:

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...

Ash@phpFX 02-16-2004 10:35 PM

Quote:

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


All times are GMT -7. The time now is 05:02 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123