Forum Moderators: not2easy

Message Too Old, No Replies

text-align:center in tables

Y! cache support problem

         

keyplyr

9:38 pm on Jun 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Moved from: [webmasterworld.com...]

Yahoo/Google's cached copy of my page is not fully supporting my CSS.

Links contained in td, with table class="blah":

table.blah a {
background:transparent;
font:12px verdana, arial, sans-serif;
text-align:center;
}

are defaulting to left, not center. IE supports the text-align:center; just fine this way, but since Yahoo/Google's cache is not centering the text, I am questioning it. Do I need to add the "td" element to the class? Example:

table.blah td a {
background:transparent;
font:12px verdana, arial, sans-serif;
text-align:center;
}

(Can't just try it and view immediate results since Yahoo may take a week or longer to cache the page again.)

Thanks

BlobFisk

9:01 am on Jun 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm wondering whether the centering is needed on the anchors?

Is all the text within the <td> centered? Or do you just want the links to be centered? If all the content of that <td> is to be centered, just specify the text-align for the <td> and everything within it will be aligned to the centre...

keyplyr

6:46 pm on Jun 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Is all the text within the <td> centered? Or do you just want the links to be centered? If all the content of that <td> is to be centered, just specify the text-align for the <td> and everything within it will be aligned to the centre...

There are currently 15 cells, each containing 1 text link but no other text (this is a SSI navigation footer.) Not sure if the added bloat would be worth it to id class (or hard code) every <TD> since the number of cells is sometimes much higher.

I'd like to know why Yahoo/Google's cache is NOT centering it?

drbrain

7:08 pm on Jun 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you sure your stylesheet is getting loaded properly from the cache?

Did any of the markup change from the original to the cached version?

Why not take a look at the page in Mozilla's DOM Inspector, to see if the rule is getting picked up and is applied.

keyplyr

7:37 pm on Jun 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks - All other elements of my style sheet are rendering properly. As for using Mozilla's DOM Inspector, can't do it from this machine.

As far as I know, my CSS syntax is correct and compliant with the CSS1 standard. If I were using CSS2 elements, I would understand some glitches in various browsers. I'd like to know what Yahoo/Google uses to cache?