Skip Navigation

[Resolved] .container full image background

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to apply a certain full background rule to a body HTML class?

Solution:
CSS background properties are described here:
http://www.w3schools.com/css/css_background.asp

For not repeating background property use this:

body {
    background-image: url("img_tree.png");
    background-repeat: no-repeat;
    background-position: center center;
} 
This support ticket is created 8 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 4 replies, has 2 voices.

Last updated by famaraM 8 years, 1 month ago.

Assisted by: Beda.

Author
Posts
#369140

Hello
I am trying to set a background image for the container and i want the background to apply to all the website layout but instead of that it is repeating the background for each row i'm using the starter theme
If someone can help about this that would be great
Thank you !

#369223

I understand you want a Background Image applied to your entire Site/page, with CSS background property, is that correct?

CSS background properties are described here:
hidden link

For not repeating background property use this:

body {
    background-image: url("img_tree.png");
    background-repeat: no-repeat;
    background-position: center center;
} 

Does that help?

The DOC for Toolset Starter is here, in case you need it:
https://toolset.com/documentation/user-guides/toolset-starter-theme/

Please let me know if you need further infos about this.

Thank you for your patience.

#369347

Hello Beda Thank you for your reply.

This is the website : hidden link
i'm trying to apply this image hidden link as background to the container not the body background but as you see it repeats the background for each row even if i do a "background-repeat: no-repeat; " when i do a background-position: center center; it seems to use only one background but the background image is not looking the same anymore.

Thanks for your help!

#369593

If you want to address specific elements with CSS you need first to give the HTML a specific Class or ID.

On your provided Site you apply the Background to the Container, that seems to be fine.

If you want it only on a Row, apply the Background to the Row.
The Row will need a specific class or ID to be addressed

If you want it on one container only, also the Container must hold a specific ID or Class, so you can change your CSS pointer.

Instead of .container you will use .container.my-class as example.

This needs to be added to the HTML as a Class or ID first.
In Layouts you can add classes and ID's when editing Rows, Cells and grids.

This is explained here:
https://toolset.com/documentation/user-guides/using-html-css-style-layout-cells//

If you don't use Layouts, you need to edit either your Theme's templates or you can use Content templates on the_content() part.

CSS and HTML are something that Toolset does not provide and are a required ability of the Developer.
You can learn more about this on here:
hidden link
hidden link

Those are 2 amazing good DOC and tutorial parts, that I myself use a lot for reference.

Please let me know if you have further questions regarding the issue mentioned in this Thread

Thank you for your patience.

#375971

Hi

Thank you for your reply i managed to find a solution but the main issue i got was when you set a specific id and set a background using that id every row you add on layouts repeat the background.

Thank you anyway for the links it was very helpful

The forum ‘Types Community Support’ is closed to new topics and replies.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.