treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Wordpress sidebar elements.

  • 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.
  • 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
  • "Robskiwarrior" said:
    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
  • Do you have a live site so we can have a look? its a bit hard trying to guess... :)
  • "Robskiwarrior" said:
    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.
  • "polle" said:
    [quote="Robskiwarrior"]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.[/quote]

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