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
themixedcoder
@themixedcoder
js
tadm123
@tadm123
very strange, read here if you want more info
jampcat9
@jampcat9
I'm working on the personal portfolio page project, can anyone help me out? I'm trying to put two paragraphs side by side
Julius Robinson
@Julius-R
@jampcat9 either use float or flexbox
jampcat9
@jampcat9
I used float: right, for some reason it only moved it to the center of the page. no clue why
Julius Robinson
@Julius-R

I always use developer tools to see if there is any padding or margins from a child element. Also,

border: 2px solid #111;

That's perfect for showing all of your borders in css

jampcat9
@jampcat9
so showing the borders might help me see why it's not moving to the spot I want it to?
Julius Robinson
@Julius-R
Yes, it'll show you if there is some padding or margin from a close by element that was affected by the float
jampcat9
@jampcat9
awesome thanks @Julius-R
CamperBot
@camperbot
:cookie: 88 | @julius-r |http://www.freecodecamp.com/julius-r
jampcat9 sends brownie points to @julius-r :sparkles: :thumbsup: :sparkles:
aleksaknezevic
@aleksaknezevic
hey can someone look at my first project and tell me what do you think :) https://codepen.io/aleksaknezevic/full/OWwjNZ/
namanpandita
@namanpandita
nice @aleksaknezevic but your images are not centered
aleksaknezevic
@aleksaknezevic
idk how to center it can you help me?
Johnny
@jtan3
try img{text-align: center}
in css
aleksaknezevic
@aleksaknezevic
https://codepen.io/aleksaknezevic/full/OWwjNZ/ No i just dont know how to center everything and thats it
namanpandita
@namanpandita
img {
display: block;
margin-left: auto;
margin-right: auto;
}
or google some other method like I did
aleksaknezevic
@aleksaknezevic
it wont works
i tried
Johnny
@jtan3
forgot the ; after center
aleksaknezevic
@aleksaknezevic
haha yes but again thats not the problem :/
Johnny
@jtan3
you have display on block
your div is on display: block
if you style your page in css it might be easier
you have some style elements in the html as well
@aleksaknezevic look at my codepen
aleksaknezevic
@aleksaknezevic
@jtan3 hey the problem
:center">
Johnny
@jtan3
and try margin: auto;
aleksaknezevic
@aleksaknezevic
no
<div style=" width: 50%; font-size:20px;text-align:center">
this line
i set width to 50% so half page is only
@jtan3 thanks :)
CamperBot
@camperbot
aleksaknezevic sends brownie points to @jtan3 :sparkles: :thumbsup: :sparkles:
:cookie: 298 | @jtan3 |http://www.freecodecamp.com/jtan3
Johnny
@jtan3
is it better?
aleksaknezevic
@aleksaknezevic
yes, i will send you just to finish
i set to big images for small screen but on full it looks ok?
Johnny
@jtan3
its better
instead of doing the styling in html
its easier to do it in css
it can get all the images at once instead of doing it one by one
aleksaknezevic
@aleksaknezevic
i know but i wanted to do it in html
Johnny
@jtan3
oh