Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #475364

    Hi,

    I’d like to change:

    layout.css

    .content, .sidebar{
    padding-top:0px;
    padding-bottom:0px;

    and grid.css

    .container {
      position: relative;
      width: 100%;
      margin: 0 auto;
      padding: 0px;
      clear: both;
    }

    only for page ID 2? How do I achieve this with CSS?

    #475386

    Hi,

    Just add the page id before the class.

    For example,

    .page-id-2 .content, .sidebar{
    padding-top:0px;
    padding-bottom:0px;

    .page-id-2 .container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0px;
    clear: both;
    }

    Hope this helps!

    FYI – you can also make CSS specific to element using custom class.

    #475639

    Hi!


    @etheravion
    , please refer to @user877 suggestion.

    Regards,
    Rikard

    #489798

    Just to update the solution works.

    #489937

    awesome ;)

    #489939

    Hi!


    @user877
    Thanks :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Change padding for a specific page only’ is closed to new replies.