18591 Posts in 4875 Topics by 2285 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 637 Views |
-
Adding a border to a container

15 August 2009 at 4:07am
I'm modifying blackcandy, and want to have a border around the content. The code I have
/* CONTAINER
----------------------------------------- */
#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;
padding-left:7px;
padding-right:7px;
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?
Thanks,-Naex
-
Re: Adding a border to a container

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.
| 637 Views | ||
|
Page:
1
|
Go to Top |


