- Posts: 16
- Thank you received: 0
Space between the rows & background beaneth them.
-
Baudoin57
Inactive member - Topic Author
- New Member
Less
More
10 years 7 months ago #38822
by Baudoin57
Space between the rows & background beaneth them. was created by Baudoin57
Hi ! Could you tell me if it's possible to get spaces between the rows and set a large background beneath them ?
I made a simulation with GIMP. You can see what i would like to do with the picture I linked.
Best regards
I made a simulation with GIMP. You can see what i would like to do with the picture I linked.
Best regards
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 7 months ago #38830
by ivan.milic
Replied by ivan.milic on topic Space between the rows & background beaneth them.
Container of item content has class:
.items-row {
...
}
and it is 100 in width. You can set background on it and set top and bottom padding. Second roblem is that you probably don't want to do same for all items or you want different backgrounds. Css nth chield may come useful for this:
www.w3schools.com/cssref/sel_nth-child.asp
.items-row {
...
}
and it is 100 in width. You can set background on it and set top and bottom padding. Second roblem is that you probably don't want to do same for all items or you want different backgrounds. Css nth chield may come useful for this:
www.w3schools.com/cssref/sel_nth-child.asp
Please Log in to join the conversation.
-
Baudoin57
Inactive member - Topic Author
- New Member
Less
More
- Posts: 16
- Thank you received: 0
10 years 7 months ago - 10 years 7 months ago #38836
by Baudoin57
Replied by Baudoin57 on topic Space between the rows & background beaneth them.
Thanks for your quick reply. the issue with your solution is that it does not work after the welcom row. The welcom row as a content which is set on 100% width and no padding. But after that, the other row are centered and everything i put in it can't reach the sides of my screen. Could you help me with some idea i got. In the welcome row i add an image at the bottom, as you see in my picture from my first post. The issue is : the nexts row dont allow me to put an image in full width like the first one, is there any solution to do this and "simulate a backgroung" by adding it in pieces at the end of each row ?
Obviously i would like to keep the rest of the content of the rows like it is already. thank you.
Obviously i would like to keep the rest of the content of the rows like it is already. thank you.
Last edit: 10 years 7 months ago by Baudoin57.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 7 months ago #38844
by ivan.milic
Replied by ivan.milic on topic Space between the rows & background beaneth them.
Instead of padding on .items-row you can use margin on child element:
.items-row .item{
margin-top:30px;
margin-bottom:30px;
}
.items-row .item{
margin-top:30px;
margin-bottom:30px;
}
Please Log in to join the conversation.
Time to create page: 0.205 seconds