Home › Forums › CSS › How to not use the left: -50px and top: -20px › Reply To: How to not use the left: -50px and top: -20px
January 6, 2015 at 4:09 am
#192360
Member
My first question is “Why are you moving things around using positioning in the first place?”
It’s not necessary, What you are trying to do can easily be constructed using more flexible layout methods.
Also, you are massively overusing ID’s. Try using classes as necessary, it’s unwise to give every element an ID…it bloats your HTML, causes CSS specificity issues and is very inflexible. It also means that the IDs cannot be re-used.
In fact, given the nature of the apparent content, I would be very tempted just to use a table
…or at the very least CSS tables.