Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • arthurjohnston Friend
    #206181

    I am using the following block for a slideshow. How can I center the block on the page, using BS3?


    <div class="wrap ja-slideshow" id="new_slideshow">
    <div class="container">
    <div class="row">
    <div class="center-block col-sm-12 col-md-8 col-lg-8">
    <div class="main-slideshow">
    <jdoc:include type="modules" name="<?php $this->_p('slideshow') ?>" style="raw" />
    </div>
    </div>
    </div>
    </div>
    </div>

    arthurjohnston Friend
    #570078

    Sorry the question is:

    I am using the following block for a slideshow. How can I center the block HORIZONTALLY on the page, using BS3?

    Thank you,

    arthurjohnston Friend
    #735150

    Sorry the question is:

    I am using the following block for a slideshow. How can I center the block HORIZONTALLY on the page, using BS3?

    Thank you,

    Saguaros Moderator
    #570121

    Hi

    Kindly check the number of grids you define for this slideshow: http://prntscr.com/73xjxn


    <div class="col-sm-12 col-md-8 col-lg-8">
    <div class="main-slideshow">

    Currently, if you don’t have any extenion in the section called ‘main-siderbar’


    <div class="col-xs-12 col-sm-4 col-lg-4">
    <div class="main-siderbar">

    you can change the number of grids for the slideshow to 12 (“col-sm-12 col-md-12 col-lg-12”)

    The slideshow will display in center then.

    arthurjohnston Friend
    #570232

    <em>@Saguaros 472802 wrote:</em><blockquote>Hi

    you can change the number of grids for the slideshow to 12 (“col-sm-12 col-md-12 col-lg-12”)

    The slideshow will display in center then.</blockquote>

    if I change the number of grids for the slideshow to 12 (“col-sm-12 col-md-12 col-lg-12”), it does not center the slideshow but causes the slideshow to fill the entire block.

    **I wish to retain the current size of the slideshow and center the slideshow horizontally within the block.***

    arthurjohnston Friend
    #735304

    <em>@Saguaros 472802 wrote:</em><blockquote>Hi

    you can change the number of grids for the slideshow to 12 (“col-sm-12 col-md-12 col-lg-12”)

    The slideshow will display in center then.</blockquote>

    if I change the number of grids for the slideshow to 12 (“col-sm-12 col-md-12 col-lg-12”), it does not center the slideshow but causes the slideshow to fill the entire block.

    **I wish to retain the current size of the slideshow and center the slideshow horizontally within the block.***

    arthurjohnston Friend
    #570268

    <em>@arthurjohnston 472927 wrote:</em><blockquote>if I change the number of grids for the slideshow to 12 (“col-sm-12 col-md-12 col-lg-12”), it does not center the slideshow but causes the slideshow to fill the entire block.

    **I wish to retain the current size of the slideshow and center the slideshow horizontally within the block.***</blockquote>

    I modified the (“col-sm-12 col-md-12 col-lg-12″) which centered the slideshow horizontally within the block, as follows:

    <div class=”col-sm-12 col-md-6 col-md-offset-3 col-lg-6 col-lg-offset-3”>

    While the above does center the slideshow horizontally, it modified the slideshow’s top-margin. What can I use to adjust the top-margin?

    arthurjohnston Friend
    #735334

    <em>@arthurjohnston 472927 wrote:</em><blockquote>if I change the number of grids for the slideshow to 12 (“col-sm-12 col-md-12 col-lg-12”), it does not center the slideshow but causes the slideshow to fill the entire block.

    **I wish to retain the current size of the slideshow and center the slideshow horizontally within the block.***</blockquote>

    I modified the (“col-sm-12 col-md-12 col-lg-12″) which centered the slideshow horizontally within the block, as follows:

    <div class=”col-sm-12 col-md-6 col-md-offset-3 col-lg-6 col-lg-offset-3”>

    While the above does center the slideshow horizontally, it modified the slideshow’s top-margin. What can I use to adjust the top-margin?

    Saguaros Moderator
    #570283

    If you want to set top margin for the slideshow, you can add rule:


    div#new_slideshow.container {
    margin-top: 10px; <<< or change to your desired value
    }

    Saguaros Moderator
    #735349

    If you want to set top margin for the slideshow, you can add rule:


    div#new_slideshow.container {
    margin-top: 10px; <<< or change to your desired value
    }

    arthurjohnston Friend
    #570482

    Thank you that did the trick. Just a few more adjustments and the front page will be all set!

    Best wishes,

    arthurjohnston Friend
    #735546

    Thank you that did the trick. Just a few more adjustments and the front page will be all set!

    Best wishes,

Viewing 12 posts - 1 through 12 (of 12 total)

This topic contains 12 replies, has 2 voices, and was last updated by  arthurjohnston 9 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum