Grow your CSS skills. Land your dream job.

WordPress sidebar elements.

  • # December 19, 2008 at 3:41 pm

    Hi.

    I installed a fresh copy of WP 2.7 with default theme and add content to the sidebar with some divs, then a 2 column with 2 divs floating each other and then a last div with more stuff.

    The problem is that the last div goes all the way down matching the body content, when the body content ends, that div in the sidebar starts. Leaving me a huge space between the 2 columns in the sidebar and that.

    All the other content is ok, the first divs and the two columns, but that div does not show the content after the 2 columns, any idea how to fix this and move it up ?

    Thanks.

    Rob
    # December 19, 2008 at 7:19 pm

    have you floated them left? div’s are classed as block elements – they default to a new line unless you tell them not to.

    Float:left on each box should line them up. If it still wont go its probably because you dont have enough space :)

    Some code would be really useful if you could post them :D

    # December 20, 2008 at 6:09 am
    "Robskiwarrior" wrote:
    have you floated them left? div’s are classed as block elements – they default to a new line unless you tell them not to.

    Float:left on each box should line them up. If it still wont go its probably because you dont have enough space :)

    Some code would be really useful if you could post them :D

    Thanks Robskiwarrior.

    Actually floating left the last div, pushed it up.

    The first divs does not have floats, just the ones to make the left-right column and after those, left for the last one and done, its up.

    Thanks :D

    Rob
    # December 20, 2008 at 7:48 am

    Do you have a live site so we can have a look? its a bit hard trying to guess… :)

    # December 26, 2008 at 10:23 am
    "Robskiwarrior" wrote:
    Do you have a live site so we can have a look? its a bit hard trying to guess… :)

    Hi Robskiwarrior, I have it local, but your previous answer fixed the issue.

    Thanks.

    Rob
    # December 26, 2008 at 2:16 pm
    "polle" wrote:
    "Robskiwarrior" wrote:
    Do you have a live site so we can have a look? its a bit hard trying to guess… :)

    Hi Robskiwarrior, I have it local, but your previous answer fixed the issue.

    Thanks.

    Ahh cool, you’re all sorted :) excelent :)

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".