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
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
CamperBot
@camperbot
aleksaknezevic sends brownie points to @jtan3 :sparkles: :thumbsup: :sparkles:
aleksaknezevic
@aleksaknezevic
@jtan3 thanks :)
CamperBot
@camperbot
: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
aleksaknezevic
@aleksaknezevic
i want to learn it better
with bootstrap i can make my page for small screens?
Johnny
@jtan3
yeah
aleksaknezevic
@aleksaknezevic
col-md-5 col-lg-2 and similar?
you can learn many things here but you cant learn to use it all at once
Johnny
@jtan3
are you only learning on fcc?
aleksaknezevic
@aleksaknezevic
no i watch tutorials on yt
Johnny
@jtan3
oh
aleksaknezevic
@aleksaknezevic
you?
Johnny
@jtan3
i think codecademy html/css is pretty good
aleksaknezevic
@aleksaknezevic
i will try it
Johnny
@jtan3
they have bootstrap too
aleksaknezevic
@aleksaknezevic
if you want to learn on yt quentin watt tutorials