I’m using (what I think is) the same css sprite code on two different places on my page. One is a slightly different image. They are image links to go home, but for some reason, the link text shows up on one but not the other.
It all needs to work with css styles off because it’s a mobile site. This is my first time working with sprites… can anyone identify what is going right on the bottom home button, but wrong on the top?
The problem is the use of the deprecated align=“right” elements which will align the text to the right so no amount of text-indent is going to make them disappear
The reason (I hope) for the non semantic and wonkiness of my code is because I’m just learning css - and it seems like for every one thing I finally understand, I find out about 4 more things I had no idea about! lol. I’ve been at it 3 months now and things are all slowly falling into place… I’m sure I’ll get better in time, thanks in big part to people like you giving up tidbits that help me a lot - I had no idea the align was deprecated, for one!
I’ll use your recommendation for the float too, thanks!
It’s deprecated in strict doctypes but allowed in transitional doctypes however you should avoid it’s use as it’s purely presentational. It will fight with your existing styles anyway so it’s best avoided altogether
Keep plugging away I’m sure you’ll get there in the end. It’s a steep learning curve at first but eventually it all falls into place (most of it anyway ;)).