-
AuthorPosts
-
arthurjohnston Friend
arthurjohnston
- Join date:
- November 2010
- Posts:
- 170
- Downloads:
- 152
- Uploads:
- 16
- Thanks:
- 58
- Thanked:
- 27 times in 2 posts
May 8, 2015 at 5:38 am #206181I 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 Friendarthurjohnston
- Join date:
- November 2010
- Posts:
- 170
- Downloads:
- 152
- Uploads:
- 16
- Thanks:
- 58
- Thanked:
- 27 times in 2 posts
May 11, 2015 at 3:55 am #570078Sorry 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 Friendarthurjohnston
- Join date:
- November 2010
- Posts:
- 170
- Downloads:
- 152
- Uploads:
- 16
- Thanks:
- 58
- Thanked:
- 27 times in 2 posts
May 11, 2015 at 3:55 am #735150Sorry 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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 11, 2015 at 8:35 am #570121Hi
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 Friendarthurjohnston
- Join date:
- November 2010
- Posts:
- 170
- Downloads:
- 152
- Uploads:
- 16
- Thanks:
- 58
- Thanked:
- 27 times in 2 posts
May 12, 2015 at 2:50 am #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 Friendarthurjohnston
- Join date:
- November 2010
- Posts:
- 170
- Downloads:
- 152
- Uploads:
- 16
- Thanks:
- 58
- Thanked:
- 27 times in 2 posts
May 12, 2015 at 2:50 am #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 Friendarthurjohnston
- Join date:
- November 2010
- Posts:
- 170
- Downloads:
- 152
- Uploads:
- 16
- Thanks:
- 58
- Thanked:
- 27 times in 2 posts
May 12, 2015 at 6:11 am #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 Friendarthurjohnston
- Join date:
- November 2010
- Posts:
- 170
- Downloads:
- 152
- Uploads:
- 16
- Thanks:
- 58
- Thanked:
- 27 times in 2 posts
May 12, 2015 at 6:11 am #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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 12, 2015 at 7:28 am #570283If 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
}
1 user says Thank You to Saguaros for this useful post
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 12, 2015 at 7:28 am #735349If 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
}
1 user says Thank You to Saguaros for this useful post
arthurjohnston Friendarthurjohnston
- Join date:
- November 2010
- Posts:
- 170
- Downloads:
- 152
- Uploads:
- 16
- Thanks:
- 58
- Thanked:
- 27 times in 2 posts
May 14, 2015 at 1:25 am #570482Thank you that did the trick. Just a few more adjustments and the front page will be all set!
Best wishes,
arthurjohnston Friendarthurjohnston
- Join date:
- November 2010
- Posts:
- 170
- Downloads:
- 152
- Uploads:
- 16
- Thanks:
- 58
- Thanked:
- 27 times in 2 posts
May 14, 2015 at 1:25 am #735546Thank you that did the trick. Just a few more adjustments and the front page will be all set!
Best wishes,
-
AuthorPosts
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