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

CSS

ian izaguirre
ian izaguirre
3,220 Points

Making a fluid layout question

Hi the website I am working on is (http://MyWallet.Pw/) ..... I want to make the home screen fluid which it is but the only thing that is not fluid is the main entry content which contains the login box and H1 header that's on top of the overlay. So I though about it and my solution was to create a div that would contain all the entry content on the page. I named it "ian-grid "

and this is what is has :

   div.ian-grid {
    color: #FFFFFF !important;
    max-width: 890px !important;
    min-width: 50px !important;
    width: 100% !important;
}

But it does not change anything when I play with my browser window ???

I have played with various numbers to get it to work and I get nothing for some reason.

My thinking was this :

  • The max width is 890px because that's what the page is at default ( I saw this width my using firebug) so then its max should be what it is on default.

  • The min should be 50px because anything lower then that then it looks too off ?

  • The width should be 100% because by doing this it should take the maximum width of the browser window when it changes sizes like on a mobile phone window.

What am I doing wrong ? I keep look at the team tree house lesson but I cant figure it out. Thank you for any help :-)

3 Answers

.post.category-featured is messing with your layout. In your custom styles.css add

.post.category-featured { width: 100%; }
ian izaguirre
ian izaguirre
3,220 Points

is my ian-grid css fine Or should I remove the div all together? Thanks for helping

Looking at it on mobile width, it looks like you may want to remove the width param entirely. That seems to fix the issue on all resolutions.

ian izaguirre
ian izaguirre
3,220 Points

is my ian-grid css fine Or should I remove the div all together? Thanks for helping

ian-grid css should be fine if that is where you are putting your custom css rules.

ian izaguirre
ian izaguirre
3,220 Points

Thank you , yea I might as well exclude it all together because I see it makes no differences regardless if its there or not, I see no affects.