Jump to:

23491 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Adding a border to a container

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 825 Views
  • Naex
    Community Member
    7 Posts

    Adding a border to a container Link to this post

    I'm modifying blackcandy, and want to have a border around the content. The code I have

    ----------------------------------------- */
    #BgContainer {
    width: 800px;
    margin: 0 auto;
    #Layout {
    width: 760px;
    clear: both;
    overflow: hidden;
    margin: 15px auto;
    #Content {
    width: 460px;
    float: left;
    margin: 0;
    text-align: left;
    background: #f9eab4;
    border-color: ##F7941D; //This doesn't work
    border-width: 10px; //Neither does this

    Is there another code, or a way to get at the table that #Content represents?


  • Hamish
    Community Member
    712 Posts

    Re: Adding a border to a container Link to this post

    You need to give it a style too:

    border-style: solid;

    A simpler way to do it:

    border: 2px solid #333;

    FYI, #Content is a div, not a table.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.