Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS centering widgets – I'm obviously doing it wrong

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #243649
    koop
    Participant

    Hi. I’m not very proficient in CSS so I apologize if this is a stupid question but basically, this is the webpage I’m trying to edit: http://bit.ly/29x7x8q

    In the second section, you’ll see three widgets that are a bit off-center. I’m trying to center them. Here’s a screenshot: https://s31.postimg.org/5q3glxerf/center.png

    I see padding of 20px left and 40px right in the inspect element tool so I applied this in the stylesheet:

    .home-widget .widget_gander_widget_html col-md-4 {
    padding: 0;
    }

    as my understanding is that auto isn’t a valid value for the padding property so if I set it to 0, it will apply the theme’s default. But it isn’t working..

    Obviously, I’m doing this all wrong :/

    #243652
    Shikkediel
    Participant

    Try giving .col-md-4 a width: 33% instead, the 330px on line 110 of style.css is throwing things off.

    Edit – probably better even, leave it out altogether. Bootstrap should already take care of it but gets overwritten.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.