Override, Don’t Troubleshoot

Just had an issue where an image was aligning differently within a table cell on two different pages. All the style attributes and markup seemed to be the same.

Rather than spending too much time troubleshooting it, I just explicitly set the alignment on the table cell. Did a similar fix with a font-sizing issue in CSS recently, as well.

It’s probably not a good idea to do hacks instead of troubleshooting a CSS/display bug. But sometimes it can be a good idea to do a non-hack explicit value, rather than troubleshoot. Comment if you disagree =]

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: