• Hi,

    how to add three background images ? one should be on the top no-repeat, one at the bottom no-repeat and one in the middle repeat-y…

    if someone can tell me the method for the style.css

    Thanks a lot !

Viewing 5 replies - 16 through 20 (of 20 total)
  • First off, no esmi did not say that you could divide a div with CSS. She said (twice) you could do what you want (i.e. this) with CSS — which is true — but that this is not a WP topic — which is also true.

    But irregardless of that, as I said earlier, you have to have 3 sections that are divided on the outermost div of the page — i.e. a three-part wrapper that is coded to be the full width of the page — so that when you put the background images (each image into each section) — the background appears the same way as putting the background image in the body tag). The current html structure of the page is not like that — so you would need to recode all the php template files to make it work.

    Where you would need to divide the page into sections depends on the images — i.e. the height of the top and bottom images that you want to use.

    If you put the background images in the .hentry divs – that’s where the background will be — not behind the whole page. So no, you are not correct on that.

    Thread Starter vihegay

    (@vihegay)

    No, sorry, you did not understood the whole thing… i do not want to touch the background image : the background image OF THE PAGE (a wall with a big red texte, black everywhere around). It is well done, i am not talking about it…

    I talk about the background image OF THE ARTICLES (i say that all the time) ! Did you look at my webpage ? At the moment the articles have a kind of light sand-yellow background image (with light scratches and with a saxophonist at the top) which is scrolled together with the articles (normal : it is the bg image OF THE ARTICLES). I am talking about that image. I try to explain again : this image should be devided in three parts (right now it is in two parts).

    In my previous message i said that i want all the contents in the middle division. It is not right. IF I CAN DIVIDE THE .hentry : I would like the upper meta tag (date, author) and the post title in the header div of the .hentry, the texte of the articles in the middle div, and the footer meta tags (footer of the AERTICLES), social icons, categories, tags, permalink, etc. in the 3rd bottom div.

    You, you are talking about the whole web page, i am talking about the .hentry (Firebug can help you, you will see that the articles are in the .hentry element.

    If you do not understand, do not worry about it, i will try to find someone else who knows the answer…

    If you say that esmi is right, ie. you can do the division with CSS, tell me how to do it pls ! You just said the contrary (like me) : you said that the PHP files must be recoded… so i said the same, you can not divide elements with CSS, you must give a class to the div in a PHP file and the CSS is linked to it. For example : “.hentry”, which is normally declared in a PHP file. THIS IS WHAT I AM LOOKING FOR : which PHP file and what are the codes to put in. Correcte me pls if i am not right !

    You still do not know how to read. Yes, I thought you meant the entire page — because you were totally unclear in the first several posts of this thread. But it is also possible to do what you describe now — with whatever section of the page you want, and yes, it will involve a good amount of php and CSS coding to make it work right. Perhaps you should hire someone to do it since you seem rather confused.

    Thread Starter vihegay

    (@vihegay)

    Honey, i am not confused at all, i know from the beginning what i want, that is why i came here and i still want the same thing. ??

    In the first several posts i asked a question in general because i did not know that it is so complicated, i thought that we should deal with backgrounds in all divs the same. But beeing confused, i wasn’t at all, sorry…

    You say to hire someone, this is the second time you propose it to me. Thanks but i am here to find someone who knows this question. If you do not know what to do, you are not obliged to tell me to hire someone, just do not open my post again !

    I am wondering in the meantime because already at the first minute esmi proposed me to go to hell with my very simple css question, it seems this question gives now a head acke for many people… maybe it was just perfect to post it here, we could learn a lot from it…

    We don’t teach basic CSS here. Try a dedicated CSS resource such as https://www.css-discuss.org/ instead.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘How to add 3 images as background’ is closed to new replies.