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 How to Make a Website Styling Web Pages and Navigation Make a CSS Image Gallery

Lusako Njwaba
Lusako Njwaba
1,064 Points

#gallery { margin= 0; padding= 0; list-style= none; } Trying to remove margin, padding, and bullet points

I am trying to remove the padding, margins, and bullet points from the gallery id to no avail. HELP!

gallery {

margin= 0; padding= 0; list-style= none; }

css/main.css
a {
  text-decoration: none;
}

#wrapper {
  max-width: 940px;
  margin: 0 auto;
}

#logo {
  text-align: center;
  margin: 0;
}

h1, h2 {
  color: #fff;
}

nav a {
  color: #fff;
}

nav a:hover {
  color: #32673f;
}

h1 {
  font-family: โ€˜Changa Oneโ€™, sans-serif;
  font-size: 1.75em;
  font-weight: normal;
}

img {
  max-width: 100%
}

#gallery {
  margin= 0;
  padding= 0;
  list-style= none;
}

3 Answers

Hi Lusako!

Pretty simple this one:

try using : instead of =

Best of luck! Saskia

Lusako Njwaba
Lusako Njwaba
1,064 Points

Um! Let me go bathe in shame now. Thanks.

don't be so hard on yourself :D

Things like that happened to me, too XD

When things like this happen to me, I take a step back. It is usually a sign that you are at a max for efficient input of information. Stand up, take a walk for 5 minutes, grab something to drink and/or a snack.

It's healthy to take a break when you know that your mind and body need it.

Lusako Njwaba
Lusako Njwaba
1,064 Points

@Brandon, thanks. I'll take your advice, but the addiction is kicking in. I am 13 hours in and my head is full of "unfinished" coding I have to complete. I am also taking a python and C++ course. I bet you 5 to 10 years down the line there will be mental disease called "Coding Anti-deficit Disorder" i.e. ACD disease.

OH, I've already been diagnosed with that (self-diagnosis, lol).

Trust me, I get it. On another learning site I was taking on PHP, Ruby, and full stack JS...

I learned the hard way to take breaks. I was plowing through 13 hour days, forgetting to eat "lunch" until 5pm, lol... then lying awake at night... just running through problem solving, ideas, etc. It is an addiction. Feed the beast for sure, and don't let the passion burn out... but that also means to not let yourself get burned out.

I forced myself to take a 5 minute break after every hour until I've had 5 hours of work... then take a 15 minute break. I work a max of 10 hours then force myself to stop, eat, spend time with the lady of the house while watching a movie or something. I sleep a lot better and wake up the next morning able to take in much more information, efficiently.

You just have to find the formula that works for you and allows you to run at your maximum efficiency level for as long as you can...and remain... (key word of the day) efficient. :P

Lusako Njwaba
Lusako Njwaba
1,064 Points

@Brandon lol! thanks for the advice, I'll formulate a way to have a life/work balance system; but it seems as if your mind gets hardwired or rewired to think more in a step-wise way. It's like every issue in life "should" have an algorithm or is missing a "correctable" part of the "program" 's syntax i.e. a standardized way to solve it. Your mind gets mired in logic, and we all know life is a bit more complicated than concrete semantics and syntax.... going back to biking and Muay Thai hasta pronto!

Nah, I do have a rather scientific way of thinking of things... but science accounts for variables. For the unexpected... either make it fit... or just roll with it.

I mean more or less for the work / study side of things. There is just a point where you mind / body won't let you take in any more information in an effective way. It's about keeping a balance so that you can keep fresh, but bring in as much as you can.

Trust me... a fiance and an 11 month old son throw quite a lot of variables into the mix. I even have a day or two that I just don't touch a computer so that we can all spend time together.

Anyway, I hope you find your balance... and happy coding...and happy everything else as well.