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


Table Gradient troubles

I have a table that has a gradient that is white, light grey, dark grey. The gradient restarts with every row. When my page is wide, 1000px, it works fine. However when I shrink it down, the text in the cells wrap but the gradient doesn't expand. Any suggestion? I think the root cause is the image it is referencing isn't very tall.

If there is a video to refer to, I'd gladly go check it out!

    <style type="text/css">
    .compare-grey-row {
    MARGIN: 0px;
    BACKGROUND: url(https://cc.cnetcontent.com/vcs/lenovo/data/css_resources/ISS_Static_images_lenovo_common_css_backgrounds-R5_compare-table-rowgrey.gif) repeat-x left center


[[ed. note:]] Added markdown to fix code formatting

SOLVED: Added an internal style based on this http://ie.microsoft.com/testdrive/graphics/cssgradientbackgroundmaker/default.html

2 Answers

James Barnett
James Barnett
39,199 Points

Do you have a link to the site, that this is happening on, so we can see the bigger picture?