Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
Josh Bailey
@joshbailey0
Maybe I need to go back and revise before this current lesson
Chase
@Athabasco
@whizcat make a new class for the margin left and right
Josh Bailey
@joshbailey0
@Athabasco .center-class {
margin-right: auto;
margin-left: auto;
}
Chase
@Athabasco
now apply it to your top div
Josh Bailey
@joshbailey0
alright
@Athabasco Still no change in apperance
@Athabasco I saved the current state if you want to refresh it
Chase
@Athabasco
.center-class {
  margin-right: auto;
margin-left: auto;
  width: 1040px;
  margin-top: 60px;
}
get rid of body
put body in that
Josh Bailey
@joshbailey0
@Athabasco That fixed it, thanks
CamperBot
@camperbot
whizcat sends brownie points to @athabasco :sparkles: :thumbsup: :sparkles:
:warning: whizcat already gave athabasco points
Chase
@Athabasco
great! good luck
dont do the personal page yet
to make it look any amount professional, you need to know js and jquery
Josh Bailey
@joshbailey0
@Athabasco Thanks for the advice!
CamperBot
@camperbot
whizcat sends brownie points to @athabasco :sparkles: :thumbsup: :sparkles:
:warning: whizcat already gave athabasco points
Chase
@Athabasco
no problem :P
Josh Bailey
@joshbailey0
@Athabasco Thanks a lot for your help, I think my previous code got me stuck for solutions. Maybe a better approach for me is to undo what I have done from now on and have another go at it instead of trying to bandaid the problem
CamperBot
@camperbot
whizcat sends brownie points to @athabasco :sparkles: :thumbsup: :sparkles:
:warning: whizcat already gave athabasco points
Josh Bailey
@joshbailey0
@Athabasco Do you know of a way to get the caption underneath the image like in the example page and also have the white background for the caption?
Chase
@Athabasco
@whizcat yeah, put it in a padding
@whizcat class in a div
@whizcat better explained like this, make class with padding-bottom and put the image in the same div as the text
anyways its 1:30 am im off to bed!
Josh Bailey
@joshbailey0
@Athabasco Ah great! night
Ajay Tanwar
@ajayt365
https://codepen.io/ajayt365/pen/RRYOdk . why crossorigin.me is not working
kirbyedy
@kirbyedy
stopped working I think
Why my content below img is not center ?
Is there problem with this div class? <div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
Marianissimus
@Marianissimus
@Prezess maybe, because sm-8 + sm-2 = 10 not 12, BUT where did you tell it to be centered? nowhere. that's the default alignment
Joris Labie
@labiej
Indeed, you should look into the text-* classes
For your goal text-center should do what you want
@Marianissimus The offset is correct, to center a div with a width md-8 you want 2 columns on both sides hence the offset of 2 columns
Marianissimus
@Marianissimus
@labiej doesn't offset just move columns to the right? Here's from bootstrap: Move columns to the right using .col-md-offset- classes. These classes increase the left margin of a column by columns. For example, .col-md-offset-4 moves .col-md-4 over four columns.
anyway, he should just tell add the text-center class, like he did before. Or do you want to center-align the text? @Prezess
Joris Labie
@labiej
It does, but it moves the left edge over that many columns. So if you move it by 4 columns the right edge of an 8 column wide div will touch the browsers edge.
Marianissimus
@Marianissimus
@labiej yes, but that's not centering it. OK, we actually agree but see different problems:)
Joris Labie
@labiej
I guess we do. I don't like bootstrap or any other frameworks though. Materialize is somewhat okay because the form-fields have a great default markup + it has a lot of colours built in.
Chris Cullen
@123xylem

QUick Question: I made a reset() function but when I use it it gives me this error message : Uncaught TypeError: reset is not a function
at HTMLButtonElement.<anonymous> (random.js:53)

This is the reset function

function reset(){
    player1Score=0;
    p1s.textContent=player1Score;
    p1s.classList.remove("winDisplay");
    player2Score=0;
    p2s.textContent=player2Score;
    p2s.classList.remove("winDisplay");
    gameOver=false;
}

reset.addEventListener("click",function(){
reset();
});


max.addEventListener("change",function(){
reset();
score.textContent=max.value;
winningScore=max.value;
})
Why wouldnt it think reset is a funcion
playingwithinfinity
@playingwithinfinity
Hey guys. Why isn't 1 getting outputted when I click on it? http://codepen.io/jimpix/pen/zNNBZr
Waqas Abbasi
@Waqas909

@playingwithinfinity Because

parseInt($("#display").html()) = Nan

 console.log(parseInt($("#display").html()));
I think that's why it's not outputting it
playingwithinfinity
@playingwithinfinity
@Waqas909 No, I was using .html instead of .val