Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By webdev100 on
Hello,
I have fluid two column display suite page. Left has an image (large) and right has 3 small images in 3 rows. I like to have space between left and right. I did try below.
.ds-2col-fluid > .group-right {
float: right;
width: 50%;
margin-left:15px;
}
Margin pushes out the group right images to next row. Padding is also not doing right. How can I have a space between left and right region? So it looks good. I am using bootstrap subtheme.
Thanks.
Comments
.group-right should have a
.group-right should have a 'content' div that you apply the margin to. If you can provide a link to the page I can be more specific.
site link is already given.
site link is already given. Please see the above link.
How about
How about
Without the first rule, the margin will not show.
Beaten by nevets, but I've
Beaten by nevets, but I've written it now so here you are:
If you are using LESS with bootstrap then you could use:
If you're not using LESS then
BlueFusion.co.nz
Both worked fine. Thanks a
Both worked fine. Thanks a lot.
All worked fine before. Now I
All worked fine before. Now I just changed the layout to bootstrap display suite two columns stacked layout. I am having problem.
#1 // I had this before and it worked.
.ds-2col-stacked-fluid img {
max-width: 100%;
margin:3px;
margin-bottom:14px;
border-top-left-radius: 2em; border-top-right-radius: 2em;
}
How can I have the same styling for the images on the node/6? I can do it using img but I don't want to apply to all images of the site.
# 2 //I had this before it worked.
.ds-2col-stacked-fluid > .group-right div.field {
margin-left:125px;
}
//I had this before it worked.
.ds-2col-stacked-fluid > .group-left div.field {
margin-left:15px;
}
//I had this before it worked.
.ds-2col-stacked-fluid > .group-footer div.field {
margin-left:15px;
}
Now, i inspect the page I don't see any group elements. Can you please help me how can I style the same? What would be the class names?
Changing the layout will
Changing the layout will change the generated html and associated classes.
For the latter part you want something like
Note if things are responsive, the last one does not make sense to me.
If you want these to apply on to this page, you will want
. page-node-6 .row
instead of just.row
For the first part try
Note if you fix the issue with images not being responsive you will want to remove max-width possibly.
I added the code you provided
I added the code you provided, it did not do anything. I was looking for space between left and right regions. Also some margin between all the images. After that i inspected the page, i dont even see the code that I added. Cleared the cache too. If you inspect my page, you will notice that bootstrap uses .col-sm-6 div classes. I am just confused.
Can you please help?
Can you please help?