• charlesferrer

    (@charlesferrer)


    Hi guys,
    Im completely new to wordpress and im kind of lost on a situation using images to style the page, i have created my own theme for word press and have manaaged to style the page how exactly i want it to be, apart from one issue im having trouble to solve, which is the background of the image, since i have used a background image in the body css for the header section i am having trouble trying to figure out a way to write out a code for a background image with in the content section as you would do using div tags, if anybody has come accross this or have a suggestion that would be greatly appreciated.

    p.s the example below is how my div tags are structured.

    <body>
    <div id=”container”>
    <div id=”header”>
    <div id=”navigation”>
    .
    .
    .
    .
    <div>
    </div>
    <div id=”content”>
    This is where i would add my background image which expands on the y axes when its filled with content.
    </div>
    </body>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael

    (@alchymyth)

    what does not work if you use:

    #content { background: url(images/content_bg.jpg) center top repeat-y; }

    http://www.w3schools.com/css/css_background.asp

    if the background image does not stretch down the content, you may have problems with unceared floats; search the web for ‘clearing floats’…

    (for any more suggestions, you need to post a link to your site)

    Thread Starter charlesferrer

    (@charlesferrer)

    Hi alchymyth

    I think i might have explained it wrong in my structure,

    what i meant to say is that i usually follow the structure listed above when working with just html and css, but because in wordpress you have different php documents i am not sure how i can stylise a background image which wraps around the content of the webpage, i have one left content in one php document and one right content in another php document, which i need to have a background which wraps around the left and right content.

    Sorry im working on a local server at the moment, what other suggestion you think i could do?.

    Thanks for you help.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Background image using div tag and css’ is closed to new replies.