Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

New to teamtreehouse and have HTML question

Hi guys, i'm new to treamhouse and i have an html question.

the text and image on www.tntenergydrink.nl/product displays correctly in Chrome. But in Internet Explorer it displays incorrectly as you can see.

How can i fix this? Is this a CSS thing?

thanks, Jeremy

I am still learning myself, but this is what I think may be correct.

This may be a CSS thing. Browsers are all capable of varying degrees of understanding code, Chrome being considered one of the most 'up to date' and IE being considered widely as one of the worst.

Depending on what version of IE you're using, a lot of the CSS may not be supported, making creating websites across 5 different browsers, with 30 different versions quite challenging!

I don't believe something like the markup for HTML img tags has changed all that much from previous incarnations of HTML, so I don't imagine that it is that HTML affecting the image, but indeed something in the CSS.

2 Answers

It most likely is CSS like Garrett stated. Different browsers interpret code differently. If the site was not created using a universal type of template it can have issues in different browsers. Some browsers just don't work with certain fonts or stylings, but going through some of the html/CSS/javascript courses on this site, they always try to encourage using universal coding that will work with as many browsers as efficiently as possible (it is basically impossible to have every version of every browser display exactly the same way)

Okay thank you!