• hutchism

    (@hutchism)


    Hi all. I’m currently just exploring wordpress and creating a site for a local drama group as a learning experience.

    I’ve created a child theme of Twentyeleven. Currently I’m using static pages and I have used some div statements in a child theme to layout blocks of text. Struggling to get even simple div-borders to work:

    #ad11right {
    float: right;
    width: 30%;
    border:2px solid #cccccc;
    }

    The above statement will control the layout, but will not add the border. Can’t really understand why this isn’t working, can anyone advise?

Viewing 5 replies - 1 through 5 (of 5 total)
  • futurepocket

    (@futurepocket)

    Perhaps a link to your website so we can troubleshoot the problem? Try adding !important to the border and see if that makes a difference.

    Michael

    (@alchymyth)

    #ad11right is not a default css id in Twenty Eleven; so what are you trying to achieve?

    try and work with a tool such as Firebug to investigate the formatting problems; http://getfirebug.com/

    Thread Starter hutchism

    (@hutchism)

    I created the #ad11right in a child CSS so I would could add div statements independently and control the layout via these.

    Basically all I want to be able to do is control the layout in a single page by invoking these ID’s

    http://www.abbeydrama.com

    Michael

    (@alchymyth)

    you have missed to close } the one style:

    should be like so:

    #ad11content {
      float: left;
      width: 63%;
      text-align: center;
    }
    
    #ad11right {
      float: right;
    ....
    Thread Starter hutchism

    (@hutchism)

    Doh! Thanks alchymyth! Guess thats what happens when your fumbling around with code at 2am! Was staring at the #ad11right code without noticing that I’d forgotten to close the above id.

    Much appreciated, for the easy fix! 🙂

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

The topic ‘Twentyeleven – div/borders/css’ is closed to new replies.