I’m creating a very simple ‘website’ for a school project, and I’ve come across a slight problem that I could really use some help with.
I have two different classes of links defined in the css. One is the typical a:link class and the other is a.small:link.
Now the css shows up fine for these links in the HTML page, but the text-align property isn’t picked up and the links are aligned to the left even though they should be centered (see css below). Interestingly, all the other properties e.g. color, size, font etc. are fine.
Well, tag a is inline display – it isn’t block, so text-align property you should give to parent of this tag, in this case: body tag. In tag a the content is aligned in right way, just it doesn’t seem like.