Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS Behaves Different on MAC vs PCI C Re: CSS Behaves Different on MAC vs PCI C

#50639
mikes
Member

At a glance I noticed that you are missing a closing brace at the end:

Code:
.text
{
align:left;

Also, if you don’t mind a suggestion, you might restructure your css a bit.
1. You are referencing a table with "table table table table" which will work but is unclear and will affect every table nested four deep. This will accomplish the same thing and is less prone to get you into trouble:

Code:
TABLE.marginTop { margin: 120px; }
-and-

2. You are assigning a color code to a number of classes named for various colors (white, black, red, etc). First off, what’s the point of naming one white and one black if the color is neither?

A better method would be naming them for their use:

.highlight { font-weight: 700; background-color: #ffff00; }
.handwriting { color: #8080ff; font-style: italic; }
etc.

My names aren’t the best semantic examples but I think you get the idea.
Just an observation. hth.