Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

Adding a border to a container

Go to End

2 Posts   1163 Views


Community Member, 7 Posts

15 August 2009 at 4:07am

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?



Community Member, 712 Posts

15 August 2009 at 12:21pm

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.